Home
last modified time | relevance | path

Searched refs:c_void (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/rust/kernel/
Dtypes.rs34 fn into_foreign(self) -> *const core::ffi::c_void; in into_foreign() argument
42 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> Self::Borrowed<'a>; in borrow()
52 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self; in from_foreign()
63 unsafe fn try_from_foreign(ptr: *const core::ffi::c_void) -> Option<Self> { in try_from_foreign()
77 fn into_foreign(self) -> *const core::ffi::c_void { in into_foreign() argument
81 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> &'a T { in borrow()
89 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self { in from_foreign()
99 fn into_foreign(self) -> *const core::ffi::c_void { in into_foreign() argument
104 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> Pin<&'a T> { in borrow()
115 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self { in from_foreign()
[all …]
Duaccess.rs15 use core::ffi::{c_ulong, c_void};
226 let out_ptr = out.as_mut_ptr().cast::<c_void>(); in read_raw()
236 unsafe { bindings::copy_from_user(out_ptr, self.ptr as *const c_void, len_ulong) }; in read_raw() constant
276 out.as_mut_ptr().cast::<c_void>(), in read()
277 self.ptr as *const c_void, in read() constant
337 let data_ptr = data.as_ptr().cast::<c_void>(); in write_slice()
346 let res = unsafe { bindings::copy_to_user(self.ptr as *mut c_void, data_ptr, len_ulong) }; in write_slice()
376 self.ptr as *mut c_void, in write()
377 (value as *const T).cast::<c_void>(), in write()
Dprint.rs10 ffi::{c_char, c_void},
21 ptr: *const c_void, in rust_fmt_argument() argument
109 &args as *const _ as *const c_void, constant
129 &args as *const _ as *const c_void, in call_printk_cont() constant
Dkunit.rs9 use core::{ffi::c_void, fmt};
22 &args as *const _ as *const c_void, in err() constant
38 &args as *const _ as *const c_void, in info() constant
Derror.rs275 let const_ptr: *const core::ffi::c_void = ptr.cast(); in from_err_ptr()
/linux-6.12.1/rust/kernel/alloc/
Dallocator.rs31 unsafe { bindings::krealloc(ptr as *const core::ffi::c_void, size, flags.0) as *mut u8 } in krealloc_aligned()
43 bindings::kfree(ptr as *const core::ffi::c_void); in dealloc()
/linux-6.12.1/rust/kernel/sync/
Darc.rs339 fn into_foreign(self) -> *const core::ffi::c_void { in into_foreign() argument
343 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> ArcBorrow<'a, T> { in borrow()
353 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self { in from_foreign()
/linux-6.12.1/rust/kernel/block/mq/
Dtag_set.rs56 driver_data: core::ptr::null_mut::<core::ffi::c_void>(), in new()
Doperations.rs148 _tagset_data: *mut core::ffi::c_void, in init_hctx_callback() argument