Searched refs:ffi (Results 1 – 25 of 43) sorted by relevance
12
| /linux/rust/kernel/ |
| H A D | error.rs | 224 pub fn from_errno(errno: crate::ffi::c_int) -> Error { 240 const fn try_from_errno(errno: crate::ffi::c_int) -> Option<Error> { 254 const unsafe fn from_errno_unchecked(errno: crate::ffi::c_int) -> Error { 262 pub fn to_errno(self) -> crate::ffi::c_int { 275 unsafe { bindings::ERR_PTR(self.0.get() as crate::ffi::c_long).cast() } 541 pub fn to_result(err: crate::ffi::c_int) -> Result { 567 /// ) -> Result<*mut kernel::ffi::c_void> { 579 /// # pub(super) unsafe fn einval_err_ptr() -> *mut kernel::ffi::c_void { 582 /// # pub(super) unsafe fn null_ptr() -> *mut kernel::ffi::c_void { 585 /// # pub(super) unsafe fn non_null_ptr() -> *mut kernel::ffi [all...] |
| H A D | bug.rs | 95 line!() as $crate::ffi::c_int, 96 $flags as $crate::ffi::c_uint,
|
| H A D | firmware.rs | 11 ffi, 24 *const ffi::c_char,
|
| H A D | lib.rs | 44 pub use ffi; 296 pub fn file_from_location<'a>(loc: &'a core::panic::Location<'a>) -> &'a core::ffi::CStr {
|
| H A D | seq_file.rs | 40 core::ptr::from_ref(&args).cast::<crate::ffi::c_void>(), in call_printf()
|
| H A D | kunit.rs | 247 const KUNIT_TEST_SUITE_NAME: [::kernel::ffi::c_char; 256] = { 261 ret[i] = name_u8[i] as ::kernel::ffi::c_char;
|
| H A D | configfs.rs | 345 name: *const kernel::ffi::c_char, in make_group() 551 page: *mut kernel::ffi::c_char, in show() 584 page: *const kernel::ffi::c_char, in store() 683 UnsafeCell<[*mut kernel::ffi::c_void; N]>,
|
| H A D | prelude.rs | 26 pub use ::ffi::{
|
| H A D | time.rs | 43 pub type Jiffies = crate::ffi::c_ulong; 46 pub type Msecs = crate::ffi::c_uint;
|
| H A D | clk.rs | 9 use crate::ffi::c_ulong;
|
| H A D | device.rs | 397 klevel.as_ptr().cast::<crate::ffi::c_char>(), in printk() 400 core::ptr::from_ref(&msg).cast::<crate::ffi::c_void>(), in printk()
|
| H A D | types.rs | 5 use crate::ffi::c_void;
|
| H A D | str.rs | 226 // core::ffi::c_char` rather than a `*const crate::ffi::c_char`. 240 // core::ffi::c_char` rather than a `*const crate::ffi::c_char`. 436 impl From<core::ffi::FromBytesWithNulError> for Error { 438 fn from(_: core::ffi::FromBytesWithNulError) -> Error {
|
| H A D | xarray.rs | 12 ffi::c_void,
|
| H A D | print.rs | 10 ffi::{c_char, c_void},
|
| /linux/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; 50 pub use core::ffi::CStr;
|
| H A D | Makefile | 9 obj-$(CONFIG_RUST) += core.o compiler_builtins.o ffi.o 262 rustdoc-ffi: private is-kernel-object := y 263 rustdoc-ffi: $(src)/ffi.rs rustdoc-core FORCE
|
| /linux/rust/bindings/ |
| H A D | lib.rs | 73 unsafe extern "C" fn(*mut file, ffi::c_uint, ffi::c_ulong) -> ffi::c_long,
|
| /linux/rust/kernel/alloc/ |
| H A D | allocator.rs | 67 *const crate::ffi::c_void, 69 crate::ffi::c_ulong, 71 crate::ffi::c_int, 72 ) -> *mut crate::ffi::c_void,
|
| /linux/rust/kernel/drm/ |
| H A D | ioctl.rs | 138 raw_data: *mut ::core::ffi::c_void, 140 ) -> core::ffi::c_int {
|
| /linux/samples/rust/ |
| H A D | rust_print_main.rs | |
| /linux/rust/kernel/block/mq/ |
| H A D | tag_set.rs | 53 driver_data: core::ptr::null_mut::<crate::ffi::c_void>(), in new()
|
| /linux/rust/kernel/debugfs/ |
| H A D | entry.rs | |
| /linux/rust/kernel/sync/ |
| H A D | condvar.rs | 10 ffi::{c_int, c_long},
|
| /linux/rust/quote/ |
| H A D | to_tokens.rs | 8 use std::ffi::{CStr, CString};
|
12