Home
last modified time | relevance | path

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

/linux/rust/kernel/fs/
H A Dfile.rs223 pub struct LocalFile { struct
229 unsafe impl AlwaysRefCounted for LocalFile { implementation
237 unsafe fn dec_ref(obj: ptr::NonNull<LocalFile>) { in dec_ref() argument
245 impl LocalFile { impl
255 pub fn fget(fd: u32) -> Result<ARef<LocalFile>, BadFdError> { in fget() argument
276 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a LocalFile { in from_raw_file() argument
299 pub unsafe fn assume_no_fdget_pos(me: ARef<LocalFile>) -> ARef<File> { in assume_no_fdget_pos()
361 type Target = LocalFile;
363 fn deref(&self) -> &LocalFile { in deref() argument
369 unsafe { LocalFile::from_raw_file(core::ptr::from_ref(self).cast()) } in deref()