summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorWedson Almeida Filho <wedsonaf@gmail.com>2022-11-10 17:41:40 +0100
committerMiguel Ojeda <ojeda@kernel.org>2022-12-04 01:59:16 +0100
commitb9ecf9b9ac5969d7b7ea786ce5c76e24246df2c5 (patch)
tree745d370ce35c2004b4929733476add3f1a0a0850 /virt
parentba20915bae49024dab6ee582abdd4cd8944a3e55 (diff)
rust: types: add `Opaque` typerust-6.2
Add the `Opaque` type, which is meant to be used with FFI objects that are never interpreted by Rust code, e.g.: struct Waiter { completion: Opaque<bindings::completion>, next: *mut Waiter, } It has the advantage that the objects don't have to be zero-initialised before calling their init functions, making the code performance closer to C. Signed-off-by: Wedson Almeida Filho <wedsonaf@gmail.com> [Reworded, adapted for upstream and applied latest changes] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions