• Home
  • Raw
  • Download

Lines Matching refs:kernel

8 use kernel::{
46 use kernel::bindings::{dentry, inode};
49 pub fn init_rust_binderfs() -> kernel::ffi::c_int; in init_rust_binderfs()
54 pid: kernel::ffi::c_int, in rust_binderfs_create_proc_file()
60 pub type rust_binder_context = *mut kernel::ffi::c_void;
64 pub minor: kernel::ffi::c_int,
86 use kernel::bindings::rust_binder_layout;
173 kernel::list::impl_has_list_links_self_ptr! {
176 kernel::list::impl_list_arc_safe! {
181 kernel::list::impl_list_item! {
194 type DArc<T> = kernel::sync::Arc<DTRWrap<T>>;
195 type DLArc<T> = kernel::list::ListArc<DTRWrap<T>>;
205 fn arc_try_new(val: T) -> Result<DLArc<T>, kernel::alloc::AllocError> { in arc_try_new()
213 .map_err(|_| kernel::alloc::AllocError) in arc_try_new()
216 fn arc_pin_init(init: impl PinInit<T>) -> Result<DLArc<T>, kernel::error::Error> { in arc_pin_init()
232 kernel::list::impl_list_arc_safe! {
296 impl kernel::Module for BinderModule {
297 fn init(_module: &'static kernel::ThisModule) -> Result<Self> { in init()
319 BINDER_SHRINKER.register(kernel::c_str!("android-binder"))?; in init()
322 unsafe { kernel::error::to_result(binderfs::init_rust_binderfs())? }; in init()
337 pub static rust_binder_fops: AssertSync<kernel::bindings::file_operations> = {
341 let ops = kernel::bindings::file_operations {
357 name: *const kernel::ffi::c_char, in rust_binder_new_context()
358 ) -> *mut kernel::ffi::c_void { in rust_binder_new_context()
360 let name = unsafe { kernel::str::CStr::from_char_ptr(name) }; in rust_binder_new_context()
368 unsafe extern "C" fn rust_binder_remove_context(device: *mut kernel::ffi::c_void) { in rust_binder_remove_context()
381 ) -> kernel::ffi::c_int { in rust_binder_open()
414 ) -> kernel::ffi::c_int { in rust_binder_release()
425 cmd: kernel::ffi::c_uint, in rust_binder_compat_ioctl()
426 arg: kernel::ffi::c_ulong, in rust_binder_compat_ioctl()
427 ) -> kernel::ffi::c_long { in rust_binder_compat_ioctl()
439 cmd: kernel::ffi::c_uint, in rust_binder_unlocked_ioctl()
440 arg: kernel::ffi::c_ulong, in rust_binder_unlocked_ioctl()
441 ) -> kernel::ffi::c_long { in rust_binder_unlocked_ioctl()
454 ) -> kernel::ffi::c_int { in rust_binder_mmap()
458 let area = unsafe { kernel::mm::virt::VmaNew::from_raw(vma) }; in rust_binder_mmap()
484 ) -> kernel::ffi::c_int { in rust_binder_flush()
496 _: *mut kernel::ffi::c_void, in rust_binder_stats_show()
497 ) -> kernel::ffi::c_int { in rust_binder_stats_show()
510 _: *mut kernel::ffi::c_void, in rust_binder_state_show()
511 ) -> kernel::ffi::c_int { in rust_binder_state_show()
524 _: *mut kernel::ffi::c_void, in rust_binder_proc_show()
525 ) -> kernel::ffi::c_int { in rust_binder_proc_show()
540 _: *mut kernel::ffi::c_void, in rust_binder_transactions_show()
541 ) -> kernel::ffi::c_int { in rust_binder_transactions_show()
616 match kernel::error::from_err_ptr(dentry) { in new()