diff options
author | Wedson Almeida Filho <[email protected]> | 2022-11-10 17:41:40 +0100 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2022-12-04 01:59:16 +0100 |
commit | b9ecf9b9ac5969d7b7ea786ce5c76e24246df2c5 (patch) | |
tree | 745d370ce35c2004b4929733476add3f1a0a0850 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | |
parent | ba20915bae49024dab6ee582abdd4cd8944a3e55 (diff) |
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c')
0 files changed, 0 insertions, 0 deletions