diff options
| author | Wedson Almeida Filho <[email protected]> | 2022-11-10 16:41:40 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2022-12-04 00:59:16 +0000 |
| commit | b9ecf9b9ac5969d7b7ea786ce5c76e24246df2c5 (patch) | |
| tree | 745d370ce35c2004b4929733476add3f1a0a0850 /lib/debugobjects.c | |
| parent | rust: types: add `Either` type (diff) | |
| download | kernel-b9ecf9b9ac5969d7b7ea786ce5c76e24246df2c5.tar.gz kernel-b9ecf9b9ac5969d7b7ea786ce5c76e24246df2c5.zip | |
rust: types: add `Opaque` type
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 <[email protected]>
[Reworded, adapted for upstream and applied latest changes]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
