Lines Matching +full:foo +full:- +full:queue
1 // SPDX-License-Identifier: GPL-2.0
48 /// fn init(_module: &'static ThisModule) -> Result<Self> {
49 /// let foo: i32 = 42;
50 /// pr_info!("I contain: {}\n", foo);
51 /// Ok(Self(foo))
81 /// fn init(_module: &'static ThisModule) -> Result<Self> {
89 /// - `type`: type which implements the [`Module`] trait (required).
90 /// - `name`: ASCII string literal of the name of the kernel module (required).
91 /// - `author`: string literal of the author of the kernel module.
92 /// - `description`: string literal of the description of the kernel module.
93 /// - `license`: ASCII string literal of the license of the kernel module (required).
94 /// - `alias`: array of ASCII string literals of the alias names of the kernel module.
95 /// - `firmware`: array of ASCII string literals of the firmware files of
98 pub fn module(ts: TokenStream) -> TokenStream { in module()
106 /// default implementation for all non-required methods (and the default
147 /// fn foo(&self) -> Result<()> {
151 /// fn bar(&self) -> Result<()> {
156 /// struct Foo;
160 /// impl Operations for Foo {
161 /// fn foo(&self) -> Result<()> {
167 /// assert_eq!(<Foo as Operations>::HAS_FOO, true);
168 /// assert_eq!(<Foo as Operations>::HAS_BAR, false);
173 pub fn vtable(attr: TokenStream, ts: TokenStream) -> TokenStream { in vtable()
231 pub fn concat_idents(ts: TokenStream) -> TokenStream { in concat_idents()
238 /// [pin-project-lite](https://crates.io/crates/pin-project-lite).
242 /// This macro enables the use of the [`pin_init!`] macro. When pin-initializing a `struct`,
259 /// queue: Mutex<KVec<Command>>,
278 /// queue: Mutex<KVec<Command>>,
295 pub fn pin_data(inner: TokenStream, item: TokenStream) -> TokenStream { in pin_data()
318 /// queue: Mutex<KVec<Command>>,
331 pub fn pinned_drop(args: TokenStream, input: TokenStream) -> TokenStream { in pinned_drop()
422 /// $(pub(crate) const fn [<$newname:lower:span>]() -> u32 { [<$prefix $newname:span>] …
457 /// fn [<some_ $name _fn $val>]() -> u32 { $val }
462 /// create_numbered_fn!("foo", 100);
469 pub fn paste(input: TokenStream) -> TokenStream { in paste()
492 pub fn derive_zeroable(input: TokenStream) -> TokenStream { in derive_zeroable()