Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 47) sorted by relevance

12

/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs5 filesystem::vfs::file::FileDescriptorVec,
16 file::{File, FileMode},
176 let mut file: File = File::new(inode, mode)?; in open() localVariable
180 file.lseek(SeekFrom::SeekEnd(0))?; in open()
184 let r = current_pcb().alloc_fd(file, None).map(|fd| fd as usize); in open()
208 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in read() localVariable
209 if file.is_none() { in read()
212 let file: &mut File = file.unwrap(); in read() localVariable
214 return file.read(buf.len(), buf); in read()
226 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in write() localVariable
[all …]
DVFS.h93 #define vfs_file_can_read(file) (((file)->mode) & VFS_FILE_MODE_READ) argument
94 #define vfs_file_can_write(file) (((file)->mode) & VFS_FILE_MODE_WRITE) argument
95 #define vfs_file_can_rw(file) ((((file)->mode) & VFS_FILE_MODE_RW) == VFS_FILE_MODE_RW) argument
Dmod.rs5 pub mod file; module
16 use self::{core::generate_inode_id, file::FileMode};
17 pub use self::{core::ROOT_INODE, file::FilePrivateData, mount::MountFS};
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/
Dfcntl.md20 #define O_ACCMODE 00000003 // Mask for file access modes
23 #define O_CREAT 00000100 // Create file if it does not exist
25 #define O_EXCL 00000200 // Fail if file already exists
Dstdio.md46 ``#define SEEK_SET 0 /* Seek relative to start-of-file */``
50 ``#define SEEK_END 2 /* Seek relative to end-of-file */``
Derrno.md26 #define EBADF 8 /* 错误的文件描述符 Bad file descriptor.*/
105 #define ENOENT 45 /* 没有指定的文件或目录 No such file or directory.*/
107 #define ENOEXEC 46 /* 可执行文件格式错误 Executable file format error.*/
167 #define EROFS 73 /* 只读的文件系统 Read-only file system.*/
179 #define ETXTBSY 79 /* 文本文件忙 Text file busy.*/
/DragonOS-0.1.8/docs/kernel/filesystem/vfs/
Ddesign.md27 … MountFS │ Maintain the mount tree and handle the mounting of file systems. │
28 … │ │ In particular, it handles the "crossing file system boundaries" condition │
37 xxxFSInode │ Implement corresponding operations based on different file systems │
/DragonOS-0.1.8/kernel/src/process/
Dexec.rs7 file::{File, FileMode},
98 file: Option<File>, field
119 file: None, in new()
156 self.file.as_mut().unwrap() in file_mut()
165 let file = File::new(inode, FileMode::O_RDONLY)?; in load_binary_file() localVariable
166 param.file = Some(file); in load_binary_file()
Dprocess.rs12 file::{File, FileDescriptorVec, FileMode},
189 pub fn alloc_fd(&mut self, file: File, fd: Option<i32>) -> Result<i32, SystemError> { in alloc_fd()
199 drop(file); in alloc_fd()
211 *x = Some(Box::new(file)); in alloc_fd()
221 *x = Some(Box::new(file)); in alloc_fd()
Dprocess.h148 int process_fd_alloc(struct vfs_file_t *file);
/DragonOS-0.1.8/tools/
Dwrite_disk_image.sh30 GRUB_PATH_I386_LEGACY_FILE=${GRUB_ABS_PREFIX}/arch/i386/legacy/grub/bin/grub-file
37 for file in ${bins[*]};do
38 if [ ! -x $file ]; then
39 echo "$file 不存在!"
D.gdbinit2 file bin/kernel/kernel.elf
/DragonOS-0.1.8/kernel/src/libs/
Delf.rs8 use elf::{endian::AnyEndian, file::FileHeader, segment::ProgramHeader};
57 if ehdr.class != elf::file::Class::ELF64 { in probe_x86_64()
298 let file = param.file_mut(); in do_load_file() localVariable
299 if (file.metadata()?.size as usize) < offset_in_file + size { in do_load_file()
307 file.lseek(SeekFrom::SeekSet(offset_in_file as i64))?; in do_load_file()
311 file.read(read_size, &mut buf[..read_size])?; in do_load_file()
346 ehdr: &elf::file::FileHeader<AnyEndian>, in create_auxv()
371 let ident = elf::file::parse_ident::<AnyEndian>(ident_buf)?; in parse_ehdr()
375 elf::file::Class::ELF32 => tail_start + elf::file::ELF32_EHDR_TAILSIZE, in parse_ehdr()
376 elf::file::Class::ELF64 => tail_start + elf::file::ELF64_EHDR_TAILSIZE, in parse_ehdr()
[all …]
Dprintk.rs62 …$crate::libs::printk::PrintkWriter.__write_fmt(format_args!("[ DEBUG ] ({}:{})\t{}\n", file!(), li…
70 …$crate::libs::printk::PrintkWriter.__write_fmt(format_args!("[ INFO ] ({}:{})\t{}\n", file!(), lin…
78 …$crate::libs::printk::PrintkWriter.__write_fmt(format_args!("({}:{})\t{}\n", file!(), line!(),form…
86 …$crate::libs::printk::PrintkWriter.__write_fmt(format_args!("({}:{})\t{}\n", file!(), line!(),form…
94 …$crate::libs::printk::PrintkWriter.__write_fmt(format_args!("({}:{})\t{}\n", file!(), line!(),form…
/DragonOS-0.1.8/
Dbochsrc1 # configuration file generated by Bochs
6 romimage: file="/usr/local/share/bochs/BIOS-bochs-latest"
7 vgaromimage: file="/usr/local/share/bochs/VGABIOS-lgpl-latest"
46 parport1: enabled=1, file=none
/DragonOS-0.1.8/user/apps/test_sqlite3/
Dmain.c77 void file() in file() function
97 file(); in main()
/DragonOS-0.1.8/docs/
Dindex.rst1 .. DragonOS documentation master file, created by
3 You can adapt this file completely to your liking, but it should at least
Dmake.bat5 REM Command file for Sphinx documentation
/DragonOS-0.1.8/tools/qemu/
Difup-nat56 --conf-file="" \
57 --pid-file=/var/run/qemu-dhcp-$BRIDGE.pid \
/DragonOS-0.1.8/docs/kernel/ktest/
Dktest-framework.md97 [ kTEST FAILED ] Ktest Assertion Failed, file:%s, Line:%d
106 &emsp;&emsp;格式化输出一行以`[ kTEST ] file:%s, Line:%d`开头的日志信息。
/DragonOS-0.1.8/kernel/src/
Dlib.rs80 loc.file(), in panic()
/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs31 fn open(&self, file: Arc<dyn IndexNode>) -> Result<(), SystemError>; in open()
36 fn close(&self, file: Arc<dyn IndexNode>) -> Result<(), SystemError>; in close()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs1212 let mut file: FATFile = FATFile::default(); in to_dir_entry() localVariable
1214 file.file_name = self.name_to_string(); in to_dir_entry()
1215 file.first_cluster = first_cluster; in to_dir_entry()
1216 file.short_dir_entry = self.clone(); in to_dir_entry()
1217 file.loc = (loc, loc); in to_dir_entry()
1221 return FATDirEntry::File(file); in to_dir_entry()
1223 return FATDirEntry::VolId(file); in to_dir_entry()
1254 let mut file = FATFile::default(); in to_dir_entry_with_long_name() localVariable
1256 file.first_cluster = first_cluster; in to_dir_entry_with_long_name()
1257 file.file_name = name; in to_dir_entry_with_long_name()
[all …]
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dmod.rs2 core::generate_inode_id, file::FileMode, FileSystem, FileType, FsInfo, IndexNode, Metadata,
359 pub fn add_file(&self, name: &str, file: Arc<dyn IndexNode>) -> Result<(), SystemError> { in add_file()
366 this.children.insert(name.to_string(), file); in add_file()
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dnull_dev.rs1 use crate::filesystem::vfs::file::FileMode;

12