Home
last modified time | relevance | path

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

/linux-6.15/rust/kernel/
H A Dmiscdevice.rs190 let file = unsafe { File::from_raw_file(raw_file) }; in open()
221 T::release(ptr, unsafe { File::from_raw_file(file) }); in release()
238 let file = unsafe { File::from_raw_file(file) }; in ioctl()
263 let file = unsafe { File::from_raw_file(file) }; in compat_ioctl()
283 let file = unsafe { File::from_raw_file(file) }; in show_fdinfo()
/linux-6.15/rust/kernel/fs/
H A Dfile.rs274 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a LocalFile { in from_raw_file() method
348 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a File { in from_raw_file() method
367 unsafe { LocalFile::from_raw_file(self as *const File as *const bindings::file) } in deref()