| /rust/kernel/ |
| D | uaccess.rs | 11 ffi::{c_char, 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 386 let data_ptr = data.as_ptr().cast::<c_void>(); in write_slice() 392 let res = unsafe { bindings::copy_to_user(self.ptr as *mut c_void, data_ptr, len) }; in write_slice() 419 self.ptr as *mut c_void, in write() 420 (value as *const T).cast::<c_void>(), in write()
|
| D | types.rs | 32 fn into_foreign(self) -> *const crate::ffi::c_void; in into_foreign() argument 40 unsafe fn borrow<'a>(ptr: *const crate::ffi::c_void) -> Self::Borrowed<'a>; in borrow() 50 unsafe fn from_foreign(ptr: *const crate::ffi::c_void) -> Self; in from_foreign() 61 unsafe fn try_from_foreign(ptr: *const crate::ffi::c_void) -> Option<Self> { in try_from_foreign() 75 fn into_foreign(self) -> *const crate::ffi::c_void { in into_foreign() argument 79 unsafe fn borrow<'a>(_: *const crate::ffi::c_void) -> Self::Borrowed<'a> {} in borrow() 81 unsafe fn from_foreign(_: *const crate::ffi::c_void) -> Self {} in from_foreign()
|
| D | print.rs | 10 ffi::{c_char, c_void}, 21 ptr: *const c_void, in rust_fmt_argument() argument 111 &args as *const _ as *const c_void, constant 131 &args as *const _ as *const c_void, in call_printk_cont() constant
|
| D | seq_file.rs | 39 &args as *const _ as *const core::ffi::c_void, in call_printf()
|
| 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 | miscdevice.rs | 15 ffi::{c_int, c_long, c_uint, c_ulong, c_void}, 250 buf.as_mut_ptr().cast::<c_void>(), in copy_from_iter() 263 bindings::_copy_to_iter((value as *const T).cast::<c_void>(), len, self.inner.get()) in copy_to_iter()
|
| D | error.rs | 290 let const_ptr: *const crate::ffi::c_void = ptr.cast(); in from_err_ptr()
|
| /rust/kernel/alloc/ |
| D | allocator_test.rs | 38 fn libc_aligned_alloc(align: usize, size: usize) -> *mut crate::ffi::c_void; in libc_aligned_alloc() argument 41 fn libc_free(ptr: *mut crate::ffi::c_void); in libc_free() argument 90 let min_align = core::mem::size_of::<*const crate::ffi::c_void>(); in realloc()
|
| D | kbox.rs | 396 fn into_foreign(self) -> *const crate::ffi::c_void { in into_foreign() argument 400 unsafe fn from_foreign(ptr: *const crate::ffi::c_void) -> Self { in from_foreign() 406 unsafe fn borrow<'a>(ptr: *const crate::ffi::c_void) -> &'a T { in borrow() 419 fn into_foreign(self) -> *const crate::ffi::c_void { in into_foreign() argument 424 unsafe fn from_foreign(ptr: *const crate::ffi::c_void) -> Self { in from_foreign() 430 unsafe fn borrow<'a>(ptr: *const crate::ffi::c_void) -> Pin<&'a T> { in borrow()
|
| D | allocator.rs | 50 unsafe extern "C" fn(*const crate::ffi::c_void, usize, u32) -> *mut crate::ffi::c_void,
|
| /rust/ |
| D | ffi.rs | 48 pub use core::ffi::c_void;
|
| /rust/kernel/block/mq/ |
| D | tag_set.rs | 56 driver_data: core::ptr::null_mut::<crate::ffi::c_void>(), in new()
|
| D | operations.rs | 148 _tagset_data: *mut crate::ffi::c_void, in init_hctx_callback() argument
|
| /rust/kernel/sync/ |
| D | arc.rs | 338 fn into_foreign(self) -> *const crate::ffi::c_void { in into_foreign() argument 342 unsafe fn borrow<'a>(ptr: *const crate::ffi::c_void) -> ArcBorrow<'a, T> { in borrow() 352 unsafe fn from_foreign(ptr: *const crate::ffi::c_void) -> Self { in from_foreign()
|