Lines Matching refs:file

13     filesystem::vfs::{core as Vcore, file::FileDescriptorVec},
28 file::{File, FileMode},
545 let file = fd_table_guard in ioctl() localVariable
551 let r = file.inode().ioctl(cmd, data, &file.private_data.lock()); in ioctl()
566 let file = fd_table_guard.get_file_by_fd(fd); in read() localVariable
567 if file.is_none() { in read()
572 let file = file.unwrap(); in read() localVariable
574 return file.read(buf.len(), buf); in read()
588 let file = fd_table_guard in write() localVariable
594 return file.write(buf.len(), buf); in write()
615 let file = fd_table_guard in lseek() localVariable
621 return file.lseek(seek); in lseek()
635 let file = fd_table_guard.get_file_by_fd(fd); in pread() localVariable
636 if file.is_none() { in pread()
641 let file = file.unwrap(); in pread() localVariable
643 return file.pread(offset, len, buf); in pread()
657 let file = fd_table_guard.get_file_by_fd(fd); in pwrite() localVariable
658 if file.is_none() { in pwrite()
663 let file = file.unwrap(); in pwrite() localVariable
665 return file.pwrite(offset, len, buf); in pwrite()
784 let file = fd_table_guard in getdents() localVariable
791 let res = file.readdir(dirent).map(|x| x as usize); in getdents()
858 let file = fd_table_guard in do_linkat() localVariable
861 let old_inode = file.inode(); in do_linkat()
1188 if let Some(file) = fd_table_guard.get_file_by_fd(fd) { in fcntl()
1192 if file.close_on_exec() { in fcntl()
1205 if let Some(file) = fd_table_guard.get_file_by_fd(fd) { in fcntl()
1210 file.set_close_on_exec(true); in fcntl()
1212 file.set_close_on_exec(false); in fcntl()
1224 if let Some(file) = fd_table_guard.get_file_by_fd(fd) { in fcntl()
1227 return Ok(file.mode().bits() as usize); in fcntl()
1237 if let Some(file) = fd_table_guard.get_file_by_fd(fd) { in fcntl()
1242 file.set_mode(mode)?; in fcntl()
1278 if let Some(file) = fd_table_guard.get_file_by_fd(fd) { in ftruncate()
1281 let r = file.ftruncate(len).map(|_| 0); in ftruncate()
1291 let file = fd_table_guard in do_fstat() localVariable
1299 let metadata = file.metadata()?; in do_fstat()
1318 match file.file_type() { in do_fstat()
1389 let file = fd_table_guard in fstatfs() localVariable
1393 let statfs = PosixStatfs::from(file.inode().fs().super_block()); in fstatfs()
1420 let file = fd_table_guard in do_statx() localVariable
1428 let metadata = file.metadata()?; in do_statx()
1489 match file.file_type() { in do_statx()
1577 let file = File::new(inode, FileMode::O_RDONLY)?; in readlink_at() localVariable
1579 let len = file.read(buf_size, ubuf)?; in readlink_at()