Searched refs:from_raw_file (Results 1 – 3 of 3) sorted by relevance
222 let file = unsafe { File::from_raw_file(raw_file) }; in open()253 T::release(ptr, unsafe { File::from_raw_file(file) }); in release()317 let file = unsafe { File::from_raw_file(file) }; in mmap()337 let file = unsafe { File::from_raw_file(file) }; in ioctl()362 let file = unsafe { File::from_raw_file(file) }; in compat_ioctl()382 let file = unsafe { File::from_raw_file(file) }; in show_fdinfo()
283 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a LocalFile { in from_raw_file() method357 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a File { in from_raw_file() method376 unsafe { LocalFile::from_raw_file(core::ptr::from_ref(self).cast()) } in deref()
377 let file = unsafe { File::from_raw_file(file_ptr) }; in rust_binder_open()404 let file = unsafe { File::from_raw_file(file) }; in rust_binder_release()419 match Process::ioctl(f, unsafe { File::from_raw_file(file) }, cmd as _, arg as _) { in rust_binder_ioctl()436 match Process::mmap(f, unsafe { File::from_raw_file(file) }, area) { in rust_binder_mmap()451 let fileref = unsafe { File::from_raw_file(file) }; in rust_binder_poll()