diff options
author | Wedson Almeida Filho <wedsonaf@gmail.com> | 2023-01-30 03:44:01 -0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2023-02-01 13:24:07 +0100 |
commit | 0fc4424d24a230c7fb539d5d708c81c68aafa9be (patch) | |
tree | f7ff45a3ee2b205e257225d941c23b5e019789e8 /rust/kernel/lib.rs | |
parent | 4d4692a2ff836487c17960a6211a4cce7094f09c (diff) | |
download | linux-0fc4424d24a230c7fb539d5d708c81c68aafa9be.tar.gz linux-0fc4424d24a230c7fb539d5d708c81c68aafa9be.tar.bz2 linux-0fc4424d24a230c7fb539d5d708c81c68aafa9be.zip |
rust: types: introduce `ForeignOwnable`
It was originally called `PointerWrapper`. It is used to convert
a Rust object to a pointer representation (void *) that can be
stored on the C side, used, and eventually returned to Rust.
Signed-off-by: Wedson Almeida Filho <wedsonaf@gmail.com>
Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Andreas Hindborg <a.hindborg@samsung.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel/lib.rs')
-rw-r--r-- | rust/kernel/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index e0b0e953907d..223564f9f0cc 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -16,6 +16,7 @@ #![feature(coerce_unsized)] #![feature(core_ffi_c)] #![feature(dispatch_from_dyn)] +#![feature(generic_associated_types)] #![feature(receiver_trait)] #![feature(unsize)] |