Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

wedsonaf
Copy link

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 [email protected]

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 <[email protected]>
@ojeda ojeda merged commit cbc76a2 into Rust-for-Linux:rust Nov 17, 2021
@wedsonaf wedsonaf deleted the raw-mut-pointer-wrapper branch November 18, 2021 00:23
Sign up for free to 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