pub struct Handle { /* private fields */ }Available on crate feature
full only.Expand description
A handle representing a userspace resource within the kernel.
Implementations§
Source§impl Handle
impl Handle
Sourcepub fn new(endpoint: TaskRef, oid: u32) -> Arc<Self> ⓘ
pub fn new(endpoint: TaskRef, oid: u32) -> Arc<Self> ⓘ
Creates a new Handle object pointing to the passed server and object ID, and supporting the passed list of protocols.
Sourcepub fn new_system(koid: TaggedNonNull<u64>) -> Arc<Self> ⓘ
pub fn new_system(koid: TaggedNonNull<u64>) -> Arc<Self> ⓘ
Creates a new Handle object pointing to the passed system service.
Sourcepub fn koid(&self) -> TaggedNonNull<u64>
pub fn koid(&self) -> TaggedNonNull<u64>
Returns the object ID for a system handle.