Home
last modified time | relevance | path

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

/rust/kernel/
Duaccess.rs11 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()
Dtypes.rs32 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()
Dprint.rs10 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
Dseq_file.rs39 &args as *const _ as *const core::ffi::c_void, in call_printf()
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
Dmiscdevice.rs15 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()
Derror.rs290 let const_ptr: *const crate::ffi::c_void = ptr.cast(); in from_err_ptr()
/rust/kernel/alloc/
Dallocator_test.rs38 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()
Dkbox.rs396 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()
Dallocator.rs50 unsafe extern "C" fn(*const crate::ffi::c_void, usize, u32) -> *mut crate::ffi::c_void,
/rust/
Dffi.rs48 pub use core::ffi::c_void;
/rust/kernel/block/mq/
Dtag_set.rs56 driver_data: core::ptr::null_mut::<crate::ffi::c_void>(), in new()
Doperations.rs148 _tagset_data: *mut crate::ffi::c_void, in init_hctx_callback() argument
/rust/kernel/sync/
Darc.rs338 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()