| /linux-6.15/rust/kernel/ |
| H A D | uaccess.rs | 11 ffi::c_void, 223 let out_ptr = out.as_mut_ptr().cast::<c_void>(); in read_raw() 229 let res = unsafe { bindings::copy_from_user(out_ptr, self.ptr as *const c_void, len) }; in read_raw() constant 266 out.as_mut_ptr().cast::<c_void>(), in read() 267 self.ptr as *const c_void, in read() constant 326 let data_ptr = data.as_ptr().cast::<c_void>(); in write_slice() 332 let res = unsafe { bindings::copy_to_user(self.ptr as *mut c_void, data_ptr, len) }; in write_slice() 359 self.ptr as *mut c_void, in write() 360 (value as *const T).cast::<c_void>(), in write()
|
| H A D | types.rs | 39 fn into_foreign(self) -> *mut crate::ffi::c_void; in into_foreign() argument 49 unsafe fn from_foreign(ptr: *mut crate::ffi::c_void) -> Self; in from_foreign() 61 unsafe fn try_from_foreign(ptr: *mut crate::ffi::c_void) -> Option<Self> { in try_from_foreign() 84 unsafe fn borrow<'a>(ptr: *mut crate::ffi::c_void) -> Self::Borrowed<'a>; in borrow() 112 unsafe fn borrow_mut<'a>(ptr: *mut crate::ffi::c_void) -> Self::BorrowedMut<'a>; in borrow_mut() 119 fn into_foreign(self) -> *mut crate::ffi::c_void { in into_foreign() argument 123 unsafe fn from_foreign(_: *mut crate::ffi::c_void) -> Self {} in from_foreign() 125 unsafe fn borrow<'a>(_: *mut crate::ffi::c_void) -> Self::Borrowed<'a> {} in borrow() 126 unsafe fn borrow_mut<'a>(_: *mut crate::ffi::c_void) -> Self::BorrowedMut<'a> {} in borrow_mut()
|
| H A D | devres.rs | 13 ffi::c_void, 25 callback: unsafe extern "C" fn(*mut c_void), 159 unsafe extern "C" fn devres_callback(ptr: *mut kernel::ffi::c_void) { in devres_callback() argument
|
| H A D | print.rs | 10 ffi::{c_char, c_void}, 22 ptr: *const c_void, in rust_fmt_argument() argument 112 &args as *const _ as *const c_void, constant 132 &args as *const _ as *const c_void, in call_printk_cont() constant
|
| H A 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
|
| H A D | seq_file.rs | 40 &args as *const _ as *const crate::ffi::c_void, in call_printf()
|
| H A D | device.rs | 180 &msg as *const _ as *const crate::ffi::c_void, in printk()
|
| H A D | error.rs | 410 let const_ptr: *const crate::ffi::c_void = ptr.cast(); in from_err_ptr()
|
| /linux-6.15/rust/kernel/alloc/ |
| H A D | kbox.rs | 370 fn into_foreign(self) -> *mut crate::ffi::c_void { in into_foreign() argument 374 unsafe fn from_foreign(ptr: *mut crate::ffi::c_void) -> Self { in from_foreign() 380 unsafe fn borrow<'a>(ptr: *mut crate::ffi::c_void) -> &'a T { in borrow() 386 unsafe fn borrow_mut<'a>(ptr: *mut crate::ffi::c_void) -> &'a mut T { in borrow_mut() 401 fn into_foreign(self) -> *mut crate::ffi::c_void { in into_foreign() argument 406 unsafe fn from_foreign(ptr: *mut crate::ffi::c_void) -> Self { in from_foreign() 412 unsafe fn borrow<'a>(ptr: *mut crate::ffi::c_void) -> Pin<&'a T> { in borrow() 423 unsafe fn borrow_mut<'a>(ptr: *mut crate::ffi::c_void) -> Pin<&'a mut T> { in borrow_mut()
|
| H A D | allocator_test.rs | 27 fn libc_aligned_alloc(align: usize, size: usize) -> *mut crate::ffi::c_void; in libc_aligned_alloc() argument 30 fn libc_free(ptr: *mut crate::ffi::c_void); in libc_free() argument 79 let min_align = core::mem::size_of::<*const crate::ffi::c_void>(); in realloc()
|
| H A D | allocator.rs | 61 unsafe extern "C" fn(*const crate::ffi::c_void, usize, u32) -> *mut crate::ffi::c_void,
|
| /linux-6.15/rust/kernel/sync/ |
| H A D | arc.rs | 378 fn into_foreign(self) -> *mut crate::ffi::c_void { in into_foreign() argument 382 unsafe fn from_foreign(ptr: *mut crate::ffi::c_void) -> Self { in from_foreign() 393 unsafe fn borrow<'a>(ptr: *mut crate::ffi::c_void) -> ArcBorrow<'a, T> { in borrow() 403 unsafe fn borrow_mut<'a>(ptr: *mut crate::ffi::c_void) -> ArcBorrow<'a, T> { in borrow_mut()
|
| /linux-6.15/rust/ |
| H A D | ffi.rs | 48 pub use core::ffi::c_void;
|
| /linux-6.15/rust/kernel/block/mq/ |
| H A D | tag_set.rs | 55 driver_data: core::ptr::null_mut::<crate::ffi::c_void>(), in new()
|
| H A D | operations.rs | 149 _tagset_data: *mut crate::ffi::c_void, in init_hctx_callback() argument
|