Home
last modified time | relevance | path

Searched refs:ffi (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.15/rust/kernel/block/mq/
H A Doperations.rs135 ) -> crate::ffi::c_int { in poll_callback()
149 _tagset_data: *mut crate::ffi::c_void, in init_hctx_callback()
150 _hctx_idx: crate::ffi::c_uint, in init_hctx_callback()
151 ) -> crate::ffi::c_int { in init_hctx_callback()
163 _hctx_idx: crate::ffi::c_uint, in exit_hctx_callback()
180 _hctx_idx: crate::ffi::c_uint, in init_request_callback()
181 _numa_node: crate::ffi::c_uint, in init_request_callback()
182 ) -> crate::ffi::c_int { in init_request_callback()
207 _hctx_idx: crate::ffi::c_uint, in exit_request_callback()
H A Draw_writer.rs28 a: &'a mut [crate::ffi::c_char; N], in from_array()
H A Dtag_set.rs55 driver_data: core::ptr::null_mut::<crate::ffi::c_void>(), in new()
/linux-6.15/rust/kernel/
H A Dtypes.rs39 fn into_foreign(self) -> *mut crate::ffi::c_void; in into_foreign()
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()
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 Derror.rs105 pub fn from_errno(errno: crate::ffi::c_int) -> Error { in from_errno()
121 const fn try_from_errno(errno: crate::ffi::c_int) -> Option<Error> { in try_from_errno()
135 const unsafe fn from_errno_unchecked(errno: crate::ffi::c_int) -> Error { in from_errno_unchecked()
143 pub fn to_errno(self) -> crate::ffi::c_int { in to_errno()
379 pub fn to_result(err: crate::ffi::c_int) -> Result { in to_result()
410 let const_ptr: *const crate::ffi::c_void = ptr.cast(); in from_err_ptr()
426 return Err(unsafe { Error::from_errno_unchecked(err as crate::ffi::c_int) }); in from_err_ptr()
H A Dtime.rs17 pub type Jiffies = crate::ffi::c_ulong;
20 pub type Msecs = crate::ffi::c_uint;
H A Dkunit.rs9 use core::{ffi::c_void, fmt};
235 const KUNIT_TEST_SUITE_NAME: [::kernel::ffi::c_char; 256] = {
249 ret[i] = name_u8[i] as ::kernel::ffi::c_char;
H A Ddevres.rs13 ffi::c_void,
159 unsafe extern "C" fn devres_callback(ptr: *mut kernel::ffi::c_void) { in devres_callback()
H A Dfirmware.rs7 use crate::{bindings, device::Device, error::Error, error::Result, ffi, str::CStr};
17 *const ffi::c_char,
H A Ddevice.rs177 klevel as *const _ as *const crate::ffi::c_char, in printk()
180 &msg as *const _ as *const crate::ffi::c_void, in printk()
H A Dseq_file.rs40 &args as *const _ as *const crate::ffi::c_void, in call_printf()
H A Dlib.rs38 pub use ffi;
H A Dtask.rs9 ffi::{c_int, c_long, c_uint},
H A Dplatform.rs60 extern "C" fn probe_callback(pdev: *mut bindings::platform_device) -> kernel::ffi::c_int { in probe_callback()
/linux-6.15/rust/kernel/alloc/
H A Dkbox.rs370 fn into_foreign(self) -> *mut crate::ffi::c_void { in into_foreign()
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()
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 Dallocator_test.rs27 fn libc_aligned_alloc(align: usize, size: usize) -> *mut crate::ffi::c_void; in libc_aligned_alloc()
30 fn libc_free(ptr: *mut crate::ffi::c_void); in libc_free()
79 let min_align = core::mem::size_of::<*const crate::ffi::c_void>(); in realloc()
H A Dallocator.rs61 unsafe extern "C" fn(*const crate::ffi::c_void, usize, u32) -> *mut crate::ffi::c_void,
/linux-6.15/rust/
H A Dffi.rs20 core::mem::size_of::<$name>() == core::mem::size_of::<core::ffi::$name>()
48 pub use core::ffi::c_void;
H A DMakefile6 obj-$(CONFIG_RUST) += core.o compiler_builtins.o ffi.o
117 rustdoc-ffi: $(src)/ffi.rs rustdoc-core FORCE
/linux-6.15/rust/kernel/net/
H A Dphy.rs317 ) -> crate::ffi::c_int { in soft_reset_callback()
331 unsafe extern "C" fn probe_callback(phydev: *mut bindings::phy_device) -> crate::ffi::c_int { in probe_callback()
348 ) -> crate::ffi::c_int { in get_features_callback()
362 unsafe extern "C" fn suspend_callback(phydev: *mut bindings::phy_device) -> crate::ffi::c_int { in suspend_callback()
376 unsafe extern "C" fn resume_callback(phydev: *mut bindings::phy_device) -> crate::ffi::c_int { in resume_callback()
392 ) -> crate::ffi::c_int { in config_aneg_callback()
408 ) -> crate::ffi::c_int { in read_status_callback()
424 ) -> crate::ffi::c_int { in match_phy_device_callback()
/linux-6.15/rust/kernel/sync/
H A Darc.rs378 fn into_foreign(self) -> *mut crate::ffi::c_void { in into_foreign()
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()
H A Dcondvar.rs10 ffi::{c_int, c_long},
/linux-6.15/rust/kernel/sync/lock/
H A Dmutex.rs107 name: *const crate::ffi::c_char, in init()
H A Dspinlock.rs106 name: *const crate::ffi::c_char, in init()
/linux-6.15/samples/rust/
H A Drust_print_main.rs104 use kernel::ffi::c_int;

12