rust: types: introduce `ForeignOwnable`
authorWedson Almeida Filho <wedsonaf@gmail.com>
Mon, 30 Jan 2023 06:44:01 +0000 (03:44 -0300)
committerMiguel Ojeda <ojeda@kernel.org>
Wed, 1 Feb 2023 12:24:07 +0000 (13:24 +0100)
commit0fc4424d24a230c7fb539d5d708c81c68aafa9be
treef7ff45a3ee2b205e257225d941c23b5e019789e8
parent4d4692a2ff836487c17960a6211a4cce7094f09c
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>
rust/kernel/lib.rs
rust/kernel/types.rs