| /linux-6.15/rust/kernel/block/mq/ |
| H A D | operations.rs | 135 ) -> 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 D | raw_writer.rs | 28 a: &'a mut [crate::ffi::c_char; N], in from_array()
|
| H A D | tag_set.rs | 55 driver_data: core::ptr::null_mut::<crate::ffi::c_void>(), in new()
|
| /linux-6.15/rust/kernel/ |
| H A D | types.rs | 39 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 D | error.rs | 105 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 D | time.rs | 17 pub type Jiffies = crate::ffi::c_ulong; 20 pub type Msecs = crate::ffi::c_uint;
|
| H A D | kunit.rs | 9 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 D | devres.rs | 13 ffi::c_void, 159 unsafe extern "C" fn devres_callback(ptr: *mut kernel::ffi::c_void) { in devres_callback()
|
| H A D | firmware.rs | 7 use crate::{bindings, device::Device, error::Error, error::Result, ffi, str::CStr}; 17 *const ffi::c_char,
|
| H A D | device.rs | 177 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 D | seq_file.rs | 40 &args as *const _ as *const crate::ffi::c_void, in call_printf()
|
| H A D | lib.rs | 38 pub use ffi;
|
| H A D | task.rs | 9 ffi::{c_int, c_long, c_uint},
|
| H A D | platform.rs | 60 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 D | kbox.rs | 370 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 D | allocator_test.rs | 27 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 D | allocator.rs | 61 unsafe extern "C" fn(*const crate::ffi::c_void, usize, u32) -> *mut crate::ffi::c_void,
|
| /linux-6.15/rust/ |
| H A D | ffi.rs | 20 core::mem::size_of::<$name>() == core::mem::size_of::<core::ffi::$name>() 48 pub use core::ffi::c_void;
|
| H A D | Makefile | 6 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 D | phy.rs | 317 ) -> 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 D | arc.rs | 378 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 D | condvar.rs | 10 ffi::{c_int, c_long},
|
| /linux-6.15/rust/kernel/sync/lock/ |
| H A D | mutex.rs | 107 name: *const crate::ffi::c_char, in init()
|
| H A D | spinlock.rs | 106 name: *const crate::ffi::c_char, in init()
|
| /linux-6.15/samples/rust/ |
| H A D | rust_print_main.rs | 104 use kernel::ffi::c_int;
|