Displaying 1 result from an estimated 1 matches for "fbd91a48ff8b".
2024 Jun 07
0
[RFC PATCH 7/8] rust: add firmware abstractions
...r.cast() }
as in the original commit?
> + }
> +
> + /// Returns the raw pointer to the device.
> + pub(crate) fn as_raw(&self) -> *mut bindings::device {
> + self.0.get()
> + }
> +}
> diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs
> index fbd91a48ff8b..dd1207f1a873 100644
> --- a/rust/kernel/lib.rs
> +++ b/rust/kernel/lib.rs
> @@ -28,6 +28,7 @@
>
> pub mod alloc;
> mod build_assert;
> +pub mod device;
> pub mod error;
> pub mod init;
> pub mod ioctl;
> --
> 2.34.1
>