Home
last modified time | relevance | path

Searched refs:ARef (Results 1 – 15 of 15) sorted by relevance

/linux-6.15/rust/kernel/block/mq/
H A Drequest.rs11 types::{ARef, AlwaysRefCounted, Opaque},
68 pub(crate) unsafe fn aref_from_raw(ptr: *mut bindings::request) -> ARef<Self> { in aref_from_raw()
72 unsafe { ARef::from_raw(NonNull::new_unchecked(ptr as *const Self as *mut Self)) } in aref_from_raw()
85 pub(crate) unsafe fn start_unchecked(this: &ARef<Self>) { in start_unchecked()
100 fn try_set_end(this: ARef<Self>) -> Result<*mut bindings::request, ARef<Self>> { in try_set_end()
121 pub fn end_ok(this: ARef<Self>) -> Result<(), ARef<Self>> { in end_ok()
H A Doperations.rs13 types::ARef,
31 fn queue_rq(rq: ARef<Request<Self>>, is_last: bool) -> Result; in queue_rq()
/linux-6.15/rust/kernel/fs/
H A Dfile.rs14 types::{ARef, AlwaysRefCounted, NotThreadSafe, Opaque},
253 pub fn fget(fd: u32) -> Result<ARef<LocalFile>, BadFdError> { in fget()
262 Ok(unsafe { ARef::from_raw(ptr.cast()) }) in fget()
297 pub unsafe fn assume_no_fdget_pos(me: ARef<LocalFile>) -> ARef<File> { in assume_no_fdget_pos()
303 unsafe { ARef::from_raw(ARef::into_raw(me).cast()) } in assume_no_fdget_pos()
419 pub fn fd_install(self, file: ARef<File>) { in fd_install()
/linux-6.15/rust/kernel/
H A Dtypes.rs440 pub struct ARef<T: AlwaysRefCounted> { struct
449 unsafe impl<T: AlwaysRefCounted + Sync + Send> Send for ARef<T> {} implementation
456 unsafe impl<T: AlwaysRefCounted + Sync + Send> Sync for ARef<T> {} implementation
458 impl<T: AlwaysRefCounted> ARef<T> { impl
510 impl<T: AlwaysRefCounted> Clone for ARef<T> { implementation
518 impl<T: AlwaysRefCounted> Deref for ARef<T> { implementation
527 impl<T: AlwaysRefCounted> From<&T> for ARef<T> { implementation
535 impl<T: AlwaysRefCounted> Drop for ARef<T> { implementation
H A Dtask.rs11 types::{ARef, NotThreadSafe, Opaque},
296 pub fn get_pid_ns(&self) -> Option<ARef<PidNamespace>> { in get_pid_ns()
305 Some(unsafe { ARef::from_raw(ptr::NonNull::new_unchecked(ptr.cast::<PidNamespace>())) }) in get_pid_ns()
H A Ddevres.rs17 types::ARef,
24 dev: ARef<Device>,
H A Ddevice.rs10 types::{ARef, Opaque},
58 pub unsafe fn get_device(ptr: *mut bindings::device) -> ARef<Self> { in get_device()
H A Dplatform.rs13 types::{ARef, ForeignOwnable, Opaque},
207 impl From<&Device<device::Core>> for ARef<Device> { implementation
H A Dpci.rs17 types::{ARef, ForeignOwnable, Opaque},
265 pdev: ARef<Device>,
439 impl From<&Device<device::Core>> for ARef<Device> { implementation
H A Ddma.rs13 types::ARef,
133 dev: ARef<Device>,
/linux-6.15/samples/rust/
H A Drust_misc_device.rs109 types::ARef,
153 dev: ARef<Device>,
161 let dev = ARef::from(misc.device()); in open()
H A Drust_driver_platform.rs5 use kernel::{c_str, device::Core, of, platform, prelude::*, types::ARef};
8 pdev: ARef<platform::Device>,
H A Drust_dma.rs7 use kernel::{bindings, device::Core, dma::CoherentAllocation, pci, prelude::*, types::ARef};
10 pdev: ARef<pci::Device>,
H A Drust_driver_pci.rs7 use kernel::{bindings, c_str, device::Core, devres::Devres, pci, prelude::*, types::ARef};
29 pdev: ARef<pci::Device>,
/linux-6.15/drivers/block/
H A Drnull.rs24 types::ARef,
68 fn queue_rq(rq: ARef<mq::Request<Self>>, _is_last: bool) -> Result { in queue_rq()