Skip to content

Commit

Permalink
Merge pull request raspberrypi#814 from jbaublitz/export-pointer-wrapper
Browse files Browse the repository at this point in the history
rust: export PointerWrapper from kernel
  • Loading branch information
ojeda authored Jul 5, 2022
2 parents 156dcc5 + 309b7f8 commit b3e8654
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/kernel/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub use build_error::build_error;
pub use crate::error::{to_result, Error, Result};
pub use crate::types::{
bit, bits_iter, ARef, AlwaysRefCounted, Bool, Either, Either::Left, Either::Right, False, Mode,
Opaque, ScopeGuard, True,
Opaque, PointerWrapper, ScopeGuard, True,
};

use core::marker::PhantomData;
Expand Down
3 changes: 2 additions & 1 deletion rust/kernel/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ impl Mode {
/// Used to convert an object into a raw pointer that represents it.
///
/// It can eventually be converted back into the object. This is used to store objects as pointers
/// in kernel data structures, for example, an implementation of [`FileOperations`] in `struct
/// in kernel data structures, for example, an implementation of
/// [`Operations`][crate::file::Operations] in `struct
/// file::private_data`.
pub trait PointerWrapper {
/// Type of values borrowed between calls to [`PointerWrapper::into_pointer`] and
Expand Down

0 comments on commit b3e8654

Please sign in to comment.