Home
last modified time | relevance | path

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

12

/linux/rust/kernel/
H A Derror.rs224 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 Dbug.rs95 line!() as $crate::ffi::c_int,
96 $flags as $crate::ffi::c_uint,
H A Dfirmware.rs11 ffi,
24 *const ffi::c_char,
H A Dlib.rs44 pub use ffi;
296 pub fn file_from_location<'a>(loc: &'a core::panic::Location<'a>) -> &'a core::ffi::CStr {
H A Dseq_file.rs40 core::ptr::from_ref(&args).cast::<crate::ffi::c_void>(), in call_printf()
H A Dkunit.rs247 const KUNIT_TEST_SUITE_NAME: [::kernel::ffi::c_char; 256] = {
261 ret[i] = name_u8[i] as ::kernel::ffi::c_char;
H A Dconfigfs.rs345 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 Dprelude.rs26 pub use ::ffi::{
H A Dtime.rs43 pub type Jiffies = crate::ffi::c_ulong;
46 pub type Msecs = crate::ffi::c_uint;
H A Dclk.rs9 use crate::ffi::c_ulong;
H A Ddevice.rs397 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 Dtypes.rs5 use crate::ffi::c_void;
H A Dstr.rs226 // 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 Dxarray.rs12 ffi::c_void,
H A Dprint.rs10 ffi::{c_char, c_void},
/linux/rust/
H A Dffi.rs20 ::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 DMakefile9 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 Dlib.rs73 unsafe extern "C" fn(*mut file, ffi::c_uint, ffi::c_ulong) -> ffi::c_long,
/linux/rust/kernel/alloc/
H A Dallocator.rs67 *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 Dioctl.rs138 raw_data: *mut ::core::ffi::c_void,
140 ) -> core::ffi::c_int {
/linux/samples/rust/
H A Drust_print_main.rs
/linux/rust/kernel/block/mq/
H A Dtag_set.rs53 driver_data: core::ptr::null_mut::<crate::ffi::c_void>(), in new()
/linux/rust/kernel/debugfs/
H A Dentry.rs
/linux/rust/kernel/sync/
H A Dcondvar.rs10 ffi::{c_int, c_long},
/linux/rust/quote/
H A Dto_tokens.rs8 use std::ffi::{CStr, CString};

12