Skip to content

rust: add PointerWrapper implementation for *mut T. - #557

Merged
ojeda merged 1 commit into
Rust-for-Linux:rustfrom
wedsonaf:raw-mut-pointer-wrapper
Nov 17, 2021
Merged

rust: add PointerWrapper implementation for *mut T.#557
ojeda merged 1 commit into
Rust-for-Linux:rustfrom
wedsonaf:raw-mut-pointer-wrapper

Conversation

@wedsonaf

Copy link
Copy Markdown

The implementation is straightforward: converting to void * and
borrowing are just pointer casts.

This is used by the GPIO subsystem where some context data is controlled
by the C side, so it is necessarily a raw pointer. (This is hidden from
driver writers though.)

Signed-off-by: Wedson Almeida Filho wedsonaf@google.com

The implementation is straightforward: converting to `void *` and
borrowing are just pointer casts.
This is used by the GPIO subsystem where some context data is controlled
by the C side, so it is necessarily a raw pointer. (This is hidden from
driver writers though.)
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
@ojeda
ojeda merged commit cbc76a2 into Rust-for-Linux:rustNov 17, 2021
@wedsonaf
wedsonaf deleted the raw-mut-pointer-wrapper branch November 18, 2021 00:23
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@wedsonaf@ojeda