Skip to content

rust: add support for creating a Buffer from a raw pointer.#581

Merged
wedsonaf merged 1 commit intoRust-for-Linux:rustfrom
wedsonaf:raw-buffer
Dec 2, 2021
Merged

rust: add support for creating a Buffer from a raw pointer.#581
wedsonaf merged 1 commit intoRust-for-Linux:rustfrom
wedsonaf:raw-buffer

Conversation

@wedsonaf
Copy link
Copy Markdown

@wedsonaf wedsonaf commented Dec 1, 2021

This is going to be used in the show method of sysfs files.

Also add a generic conversion from format errors to kernel result errors
so that we can use the ?-operator in functions that return Result.

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

This is going to be used in the `show` method of sysfs files.

Also add a generic conversion from format errors to kernel result errors
so that we can use the `?`-operator in functions that return `Result`.

Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
@wedsonaf wedsonaf merged commit 4349c44 into Rust-for-Linux:rust Dec 2, 2021
@wedsonaf wedsonaf deleted the raw-buffer branch December 2, 2021 00:25
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