Lines Matching +full:foo +full:- +full:queue
1 // SPDX-License-Identifier: GPL-2.0
55 /// fn init() -> Result<Self> {
71 /// - `type`: type which implements the [`Module`] trait (required).
72 /// - `name`: byte array of the name of the kernel module (required).
73 /// - `author`: byte array of the author of the kernel module.
74 /// - `description`: byte array of the description of the kernel module.
75 /// - `license`: byte array of the license of the kernel module (required).
76 /// - `alias`: byte array of alias name of the kernel module.
78 pub fn module(ts: TokenStream) -> TokenStream { in module()
86 /// default implementation for all non-required methods (and the default
127 /// fn foo(&self) -> Result<()> {
131 /// fn bar(&self) -> Result<()> {
136 /// struct Foo;
140 /// impl Operations for Foo {
141 /// fn foo(&self) -> Result<()> {
147 /// assert_eq!(<Foo as Operations>::HAS_FOO, true);
148 /// assert_eq!(<Foo as Operations>::HAS_BAR, false);
153 pub fn vtable(attr: TokenStream, ts: TokenStream) -> TokenStream { in vtable()
196 pub fn concat_idents(ts: TokenStream) -> TokenStream { in concat_idents()
203 /// [pin-project-lite](https://crates.io/crates/pin-project-lite).
207 /// This macro enables the use of the [`pin_init!`] macro. When pin-initializing a `struct`,
220 /// queue: Mutex<Vec<Command>>,
229 /// queue: Mutex<Vec<Command>>,
245 pub fn pin_data(inner: TokenStream, item: TokenStream) -> TokenStream { in pin_data()
259 /// queue: Mutex<Vec<Command>>,
272 pub fn pinned_drop(args: TokenStream, input: TokenStream) -> TokenStream { in pinned_drop()
372 /// fn [<some_ $name _fn $val>]() -> u32 { $val }
377 /// create_numbered_fn!("foo", 100);
384 pub fn paste(input: TokenStream) -> TokenStream { in paste()
405 pub fn derive_zeroable(input: TokenStream) -> TokenStream { in derive_zeroable()