We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6576be commit e0a3d4dCopy full SHA for e0a3d4d
1 file changed
rust/kernel/of.rs
@@ -97,6 +97,11 @@ impl Node {
97
unsafe { &*self.raw_node }
98
}
99
100
+ /// Returns a reference to the underlying C `device_node` structure.
101
+ pub unsafe fn as_raw(&self) -> *mut bindings::device_node {
102
+ self.raw_node
103
+ }
104
+
105
/// Returns the name of the node.
106
pub fn name(&self) -> &CStr {
107
// SAFETY: The lifetime of the `CStr` is the same as the lifetime of this `Node`.
0 commit comments