Searched refs:c_void (Results 1 – 9 of 9) sorted by relevance
/linux-6.12.1/rust/kernel/ |
D | types.rs | 34 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 …]
|
D | uaccess.rs | 15 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()
|
D | print.rs | 10 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
|
D | kunit.rs | 9 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
|
D | error.rs | 275 let const_ptr: *const core::ffi::c_void = ptr.cast(); in from_err_ptr()
|
/linux-6.12.1/rust/kernel/alloc/ |
D | allocator.rs | 31 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/ |
D | arc.rs | 339 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/ |
D | tag_set.rs | 56 driver_data: core::ptr::null_mut::<core::ffi::c_void>(), in new()
|
D | operations.rs | 148 _tagset_data: *mut core::ffi::c_void, in init_hctx_callback() argument
|