Searched refs:ffi (Results 1 – 14 of 14) sorted by relevance
| /Linux-v6.6/rust/kernel/ |
| D | types.rs | 30 fn into_foreign(self) -> *const core::ffi::c_void; in into_foreign() 38 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> Self::Borrowed<'a>; in borrow() 48 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self; in from_foreign() 54 fn into_foreign(self) -> *const core::ffi::c_void { in into_foreign() 58 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> &'a T { in borrow() 66 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self { in from_foreign() 76 fn into_foreign(self) -> *const core::ffi::c_void { in into_foreign() 80 unsafe fn borrow<'a>(_: *const core::ffi::c_void) -> Self::Borrowed<'a> {} in borrow() 82 unsafe fn from_foreign(_: *const core::ffi::c_void) -> Self {} in from_foreign()
|
| D | error.rs | 95 pub struct Error(core::ffi::c_int); 102 pub(crate) fn from_errno(errno: core::ffi::c_int) -> Error { in from_errno() 122 unsafe fn from_errno_unchecked(errno: core::ffi::c_int) -> Error { in from_errno_unchecked() 129 pub fn to_errno(self) -> core::ffi::c_int { in to_errno() 243 pub fn to_result(err: core::ffi::c_int) -> Result { in to_result() 280 let const_ptr: *const core::ffi::c_void = ptr.cast(); in from_err_ptr() 295 return Err(unsafe { Error::from_errno_unchecked(err as core::ffi::c_int) }); in from_err_ptr()
|
| D | allocator.rs | 39 unsafe { bindings::krealloc(ptr as *const core::ffi::c_void, size, flags) as *mut u8 } in krealloc_aligned() 51 bindings::kfree(ptr as *const core::ffi::c_void); in dealloc()
|
| D | kunit.rs | 9 use core::{ffi::c_void, fmt};
|
| D | str.rs | 98 pub unsafe fn from_char_ptr<'a>(ptr: *const core::ffi::c_char) -> &'a Self { in from_char_ptr() 148 pub const fn as_char_ptr(&self) -> *const core::ffi::c_char { in as_char_ptr()
|
| D | print.rs | 10 ffi::{c_char, c_void},
|
| /Linux-v6.6/rust/kernel/sync/ |
| D | arc.rs | 239 fn into_foreign(self) -> *const core::ffi::c_void { in into_foreign() 243 unsafe fn borrow<'a>(ptr: *const core::ffi::c_void) -> ArcBorrow<'a, T> { in borrow() 253 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self { in from_foreign()
|
| D | lock.rs | 42 name: *const core::ffi::c_char, in init()
|
| /Linux-v6.6/rust/kernel/sync/lock/ |
| D | mutex.rs | 100 name: *const core::ffi::c_char, in init()
|
| D | spinlock.rs | 99 name: *const core::ffi::c_char, in init()
|
| /Linux-v6.6/rust/alloc/ |
| D | lib.rs | 247 pub mod ffi; module
|
| /Linux-v6.6/fs/f2fs/ |
| D | f2fs.h | 1813 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in __time_to_inject() local 1815 if (!ffi->inject_rate) in __time_to_inject() 1818 if (!IS_FAULT_SET(ffi, type)) in __time_to_inject() 1821 atomic_inc(&ffi->inject_ops); in __time_to_inject() 1822 if (atomic_read(&ffi->inject_ops) >= ffi->inject_rate) { in __time_to_inject() 1823 atomic_set(&ffi->inject_ops, 0); in __time_to_inject()
|
| D | super.c | 70 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in f2fs_build_fault_attr() local 73 atomic_set(&ffi->inject_ops, 0); in f2fs_build_fault_attr() 74 ffi->inject_rate = rate; in f2fs_build_fault_attr() 78 ffi->inject_type = type; in f2fs_build_fault_attr() 81 memset(ffi, 0, sizeof(struct f2fs_fault_info)); in f2fs_build_fault_attr()
|
| /Linux-v6.6/rust/ |
| D | Makefile | 333 --use-core --with-derive-default --ctypes-prefix core::ffi --no-layout-tests \
|