Home
last modified time | relevance | path

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

/linux/rust/kernel/fs/
H A Dfile.rs230 pub struct LocalFile { struct
236 unsafe impl AlwaysRefCounted for LocalFile { implementation
244 unsafe fn dec_ref(obj: ptr::NonNull<LocalFile>) { in dec_ref() argument
252 impl LocalFile { implementation
262 pub fn fget(fd: u32) -> Result<ARef<LocalFile>, BadFdError> { in fget() argument
283 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a LocalFile { in from_raw_file() argument
306 pub unsafe fn assume_no_fdget_pos(me: ARef<LocalFile>) -> ARef<File> { in assume_no_fdget_pos()
368 type Target = LocalFile;
370 fn deref(&self) -> &LocalFile { in deref() argument
376 unsafe { LocalFile::from_raw_file(core::ptr::from_ref(self).cast()) } in deref()
/linux/drivers/android/binder/
H A Dthread.rs12 fs::{File, LocalFile},
688 let file = LocalFile::fget(fd)?; in translate_object()
691 let file = unsafe { LocalFile::assume_no_fdget_pos(file) }; in translate_object()
854 let file = LocalFile::fget(fd)?; in translate_object()
857 let file = unsafe { LocalFile::assume_no_fdget_pos(file) }; in translate_object()