Home
last modified time | relevance | path

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

12

/linux/drivers/android/binder/
H A Drust_binder_main.rs55 pub fn init_rust_binderfs() -> kernel::ffi::c_int; in init_rust_binderfs()
60 pid: kernel::ffi::c_int, in rust_binderfs_create_proc_file()
66 pub type rust_binder_context = *mut kernel::ffi::c_void;
70 pub minor: kernel::ffi::c_int,
331 name: *const kernel::ffi::c_char, in rust_binder_new_context()
332 ) -> *mut kernel::ffi::c_void { in rust_binder_new_context()
344 unsafe extern "C" fn rust_binder_remove_context(device: *mut kernel::ffi::c_void) { in rust_binder_remove_context()
359 ) -> kernel::ffi::c_int { in rust_binder_open()
394 ) -> kernel::ffi::c_int { in rust_binder_release()
407 cmd: kernel::ffi::c_uint, in rust_binder_ioctl()
[all …]
H A Derror.rs45 pub(crate) fn as_errno(&self) -> kernel::ffi::c_int { in as_errno()
/linux/rust/kernel/
H A Derror.rs123 pub fn from_errno(errno: crate::ffi::c_int) -> Error { in from_errno()
139 const fn try_from_errno(errno: crate::ffi::c_int) -> Option<Error> { in try_from_errno()
153 const unsafe fn from_errno_unchecked(errno: crate::ffi::c_int) -> Error { in from_errno_unchecked()
161 pub fn to_errno(self) -> crate::ffi::c_int { in to_errno()
174 unsafe { bindings::ERR_PTR(self.0.get() as crate::ffi::c_long).cast() } in to_ptr()
434 pub fn to_result(err: crate::ffi::c_int) -> Result { in to_result()
465 let const_ptr: *const crate::ffi::c_void = ptr.cast(); in from_err_ptr()
481 return Err(unsafe { Error::from_errno_unchecked(err as crate::ffi::c_int) }); in from_err_ptr()
H A Ddevres.rs13 ffi::c_void,
196 unsafe extern "C" fn devres_callback(ptr: *mut kernel::ffi::c_void) { in devres_callback()
328 unsafe extern "C" fn callback<P: ForeignOwnable>(ptr: *mut kernel::ffi::c_void) { in register_foreign()
H A Dbug.rs84 line!() as $crate::ffi::c_int,
85 $flags as $crate::ffi::c_uint,
H A Dfirmware.rs12 ffi,
24 *const ffi::c_char,
H A Dlib.rs65 pub use ffi;
352 pub fn file_from_location<'a>(loc: &'a core::panic::Location<'a>) -> &'a core::ffi::CStr { in file_from_location()
H A Dseq_file.rs40 core::ptr::from_ref(&args).cast::<crate::ffi::c_void>(), in call_printf()
H A Dconfigfs.rs346 name: *const kernel::ffi::c_char, in make_group()
552 page: *mut kernel::ffi::c_char, in show()
585 page: *const kernel::ffi::c_char, in store()
684 UnsafeCell<[*mut kernel::ffi::c_void; N]>,
H A Dprelude.rs20 pub use ::ffi::{
H A Ddevice.rs464 klevel.as_ptr().cast::<crate::ffi::c_char>(), in printk()
467 core::ptr::from_ref(&msg).cast::<crate::ffi::c_void>(), in printk()
H A Ddma.rs193 pub(crate) fn as_raw(self) -> crate::ffi::c_ulong { in as_raw()
194 self.0 as crate::ffi::c_ulong in as_raw()
H A Dclk.rs9 use crate::ffi::c_ulong;
H A Dstr.rs406 impl From<core::ffi::FromBytesWithNulError> for Error {
408 fn from(_: core::ffi::FromBytesWithNulError) -> Error { in from()
H A Dtypes.rs5 use crate::ffi::c_void;
H A Dxarray.rs10 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 DMakefile6 obj-$(CONFIG_RUST) += core.o compiler_builtins.o ffi.o
209 rustdoc-ffi: private is-kernel-object := y
210 rustdoc-ffi: $(src)/ffi.rs rustdoc-core FORCE
/linux/rust/kernel/alloc/
H A Dallocator.rs56 *const crate::ffi::c_void,
58 crate::ffi::c_ulong,
60 crate::ffi::c_int,
61 ) -> *mut crate::ffi::c_void,
/linux/rust/kernel/drm/
H A Dioctl.rs125 raw_data: *mut ::core::ffi::c_void,
127 ) -> core::ffi::c_int {
/linux/samples/rust/
H A Drust_print_main.rs104 use kernel::ffi::c_int;
/linux/rust/kernel/block/mq/
H A Dtag_set.rs55 driver_data: core::ptr::null_mut::<crate::ffi::c_void>(), in new()
/linux/rust/kernel/debugfs/
H A Dentry.rs5 use crate::ffi::c_void;
/linux/rust/kernel/sync/
H A Dcondvar.rs10 ffi::{c_int, c_long},

12