| /linux-6.15/rust/kernel/block/mq/ |
| H A D | request.rs | 11 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 D | operations.rs | 13 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 D | file.rs | 14 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 D | types.rs | 440 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 D | task.rs | 11 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 D | devres.rs | 17 types::ARef, 24 dev: ARef<Device>,
|
| H A D | device.rs | 10 types::{ARef, Opaque}, 58 pub unsafe fn get_device(ptr: *mut bindings::device) -> ARef<Self> { in get_device()
|
| H A D | platform.rs | 13 types::{ARef, ForeignOwnable, Opaque}, 207 impl From<&Device<device::Core>> for ARef<Device> { implementation
|
| H A D | pci.rs | 17 types::{ARef, ForeignOwnable, Opaque}, 265 pdev: ARef<Device>, 439 impl From<&Device<device::Core>> for ARef<Device> { implementation
|
| H A D | dma.rs | 13 types::ARef, 133 dev: ARef<Device>,
|
| /linux-6.15/samples/rust/ |
| H A D | rust_misc_device.rs | 109 types::ARef, 153 dev: ARef<Device>, 161 let dev = ARef::from(misc.device()); in open()
|
| H A D | rust_driver_platform.rs | 5 use kernel::{c_str, device::Core, of, platform, prelude::*, types::ARef}; 8 pdev: ARef<platform::Device>,
|
| H A D | rust_dma.rs | 7 use kernel::{bindings, device::Core, dma::CoherentAllocation, pci, prelude::*, types::ARef}; 10 pdev: ARef<pci::Device>,
|
| H A D | rust_driver_pci.rs | 7 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 D | rnull.rs | 24 types::ARef, 68 fn queue_rq(rq: ARef<mq::Request<Self>>, _is_last: bool) -> Result { in queue_rq()
|