Home
last modified time | relevance | path

Searched refs:from_raw_file (Results 1 – 3 of 3) sorted by relevance

/linux/rust/kernel/
H A Dmiscdevice.rs222 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()
/linux/rust/kernel/fs/
H A Dfile.rs283 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a LocalFile { in from_raw_file() method
357 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a File { in from_raw_file() method
376 unsafe { LocalFile::from_raw_file(core::ptr::from_ref(self).cast()) } in deref()
/linux/drivers/android/binder/
H A Drust_binder_main.rs377 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()