aboutsummaryrefslogtreecommitdiff
path: root/rust/kernel/print.rs
diff options
context:
space:
mode:
authorBenno Lossin <[email protected]>2023-04-08 12:26:22 +0000
committerMiguel Ojeda <[email protected]>2023-04-12 18:41:05 +0200
commit692e8935e23efab6c5d5fc4b003816b33c8082f7 (patch)
tree18fe62f03bfdc6475f4e0ab63eb952cc4d98aaa3 /rust/kernel/print.rs
parent8586f1acd314a47d68d189331606ca235a05b972 (diff)
rust: types: add `Opaque::ffi_init`
This function allows to easily initialize `Opaque` with the pin-init API. `Opaque::ffi_init` takes a closure and returns a pin-initializer. This pin-initiailizer calls the given closure with a pointer to the inner `T`. Co-developed-by: Gary Guo <[email protected]> Signed-off-by: Gary Guo <[email protected]> Signed-off-by: Benno Lossin <[email protected]> Reviewed-by: Andreas Hindborg <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Fixed typo. ] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/kernel/print.rs')
0 files changed, 0 insertions, 0 deletions