Lines Matching refs:kernel
14 use kernel::{
52 use kernel::bindings::{dentry, inode};
55 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,
165 kernel::list::impl_list_arc_safe! {
170 kernel::list::impl_list_item! {
183 type DArc<T> = kernel::sync::Arc<DTRWrap<T>>;
184 type DLArc<T> = kernel::list::ListArc<DTRWrap<T>>;
194 fn arc_try_new(val: T) -> Result<DLArc<T>, kernel::alloc::AllocError> { in arc_try_new()
202 .map_err(|_| kernel::alloc::AllocError) in arc_try_new()
205 fn arc_pin_init(init: impl PinInit<T>) -> Result<DLArc<T>, kernel::error::Error> { in arc_pin_init()
221 kernel::list::impl_list_arc_safe! {
284 impl kernel::Module for BinderModule {
285 fn init(_module: &'static kernel::ThisModule) -> Result<Self> { in init()
291 BINDER_SHRINKER.register(kernel::c_str!("android-binder"))?; in init()
294 unsafe { kernel::error::to_result(binderfs::init_rust_binderfs())? }; in init()
309 pub static rust_binder_fops: AssertSync<kernel::bindings::file_operations> = {
313 let ops = kernel::bindings::file_operations {
331 name: *const kernel::ffi::c_char, in rust_binder_new_context()
332 ) -> *mut kernel::ffi::c_void { in rust_binder_new_context()
334 let name = unsafe { kernel::str::CStr::from_char_ptr(name) }; 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()
408 arg: kernel::ffi::c_ulong, in rust_binder_ioctl()
409 ) -> kernel::ffi::c_long { in rust_binder_ioctl()
424 ) -> kernel::ffi::c_int { in rust_binder_mmap()
428 let area = unsafe { kernel::mm::virt::VmaNew::from_raw(vma) }; in rust_binder_mmap()
458 ) -> kernel::ffi::c_int { in rust_binder_flush()
472 _: *mut kernel::ffi::c_void, in rust_binder_stats_show()
473 ) -> kernel::ffi::c_int { in rust_binder_stats_show()
488 _: *mut kernel::ffi::c_void, in rust_binder_state_show()
489 ) -> kernel::ffi::c_int { in rust_binder_state_show()
504 _: *mut kernel::ffi::c_void, in rust_binder_proc_show()
505 ) -> kernel::ffi::c_int { in rust_binder_proc_show()
522 _: *mut kernel::ffi::c_void, in rust_binder_transactions_show()
523 ) -> kernel::ffi::c_int { in rust_binder_transactions_show()
598 match kernel::error::from_err_ptr(dentry) { in new()