Skip to content

Commit b3e8654

Browse files
authored
Merge pull request #814 from jbaublitz/export-pointer-wrapper
rust: export PointerWrapper from kernel
2 parents 156dcc5 + 309b7f8 commit b3e8654

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rust/kernel/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pub use build_error::build_error;
107107
pub use crate::error::{to_result, Error, Result};
108108
pub use crate::types::{
109109
bit, bits_iter, ARef, AlwaysRefCounted, Bool, Either, Either::Left, Either::Right, False, Mode,
110-
Opaque, ScopeGuard, True,
110+
Opaque, PointerWrapper, ScopeGuard, True,
111111
};
112112

113113
use core::marker::PhantomData;

rust/kernel/types.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ impl Mode {
4040
/// Used to convert an object into a raw pointer that represents it.
4141
///
4242
/// It can eventually be converted back into the object. This is used to store objects as pointers
43-
/// in kernel data structures, for example, an implementation of [`FileOperations`] in `struct
43+
/// in kernel data structures, for example, an implementation of
44+
/// [`Operations`][crate::file::Operations] in `struct
4445
/// file::private_data`.
4546
pub trait PointerWrapper {
4647
/// Type of values borrowed between calls to [`PointerWrapper::into_pointer`] and

0 commit comments

Comments
 (0)