/DragonOS-0.1.7/kernel/src/filesystem/vfs/ |
D | core.rs | 18 vfs::{file::File, mount::MountFS, FileSystem, FileType}, 26 use super::{file::FileMode, utils::rsplit_path, IndexNode, InodeId}; 250 let mut file: File = File::new(inode, mode)?; in do_open() localVariable 254 file.lseek(SeekFrom::SeekEnd(0))?; in do_open() 258 return current_pcb().alloc_fd(file, None); in do_open() 269 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in do_read() localVariable 270 if file.is_none() { in do_read() 273 let file: &mut File = file.unwrap(); in do_read() localVariable 275 return file.read(buf.len(), buf); in do_read() 286 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in do_write() localVariable [all …]
|
D | VFS.h | 93 #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
|
D | syscall.rs | 7 filesystem::vfs::file::FileDescriptorVec, 19 file::{File, FileMode}, 246 let file: &mut File = match current_pcb().get_file_mut_by_fd(fd) { in sys_getdents() localVariable 250 Some(file) => file, in sys_getdents() 254 return match file.readdir(dirent) { in sys_getdents() 356 if let Some(file) = &fds.fds[oldfd as usize] { in do_dup() 358 let file_cp = (file).try_clone(); in do_dup() 397 if let Some(file) = &fds.fds[oldfd as usize] { in do_dup2() 407 let file_cp = file.try_clone(); in do_dup2()
|
D | mod.rs | 4 pub mod file; module 15 use self::{core::generate_inode_id, file::FileMode}; 16 pub use self::{core::ROOT_INODE, file::FilePrivateData, mount::MountFS};
|
D | file.rs | 350 if let Some(file) = &self.fds[i] { in clone() 351 res.fds[i] = file.try_clone(); in clone()
|
/DragonOS-0.1.7/docs/userland/libc/apis/api-list/ |
D | fcntl.md | 20 #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
|
D | stdio.md | 46 ``#define SEEK_SET 0 /* Seek relative to start-of-file */`` 50 ``#define SEEK_END 2 /* Seek relative to end-of-file */``
|
D | errno.md | 26 #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.7/docs/kernel/filesystem/vfs/ |
D | design.md | 27 … 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.7/tools/ |
D | write_disk_image.sh | 30 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 | .gdbinit | 2 file bin/kernel/kernel.elf
|
/DragonOS-0.1.7/ |
D | bochsrc | 1 # 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.7/docs/ |
D | index.rst | 1 .. DragonOS documentation master file, created by 3 You can adapt this file completely to your liking, but it should at least
|
D | make.bat | 5 REM Command file for Sphinx documentation
|
/DragonOS-0.1.7/tools/qemu/ |
D | ifup-nat | 56 --conf-file="" \ 57 --pid-file=/var/run/qemu-dhcp-$BRIDGE.pid \
|
/DragonOS-0.1.7/docs/kernel/ktest/ |
D | ktest-framework.md | 97 [ kTEST FAILED ] Ktest Assertion Failed, file:%s, Line:%d 106   格式化输出一行以`[ kTEST ] file:%s, Line:%d`开头的日志信息。
|
/DragonOS-0.1.7/kernel/src/libs/ |
D | printk.rs | 55 …tkWriter.__write_string((alloc::fmt::format(format_args!("[ DEBUG ] ({}:{})\t", file!(), line!()))+ 79 …ntk::PrintkWriter.__write_string((alloc::fmt::format(format_args!("({}:{})\t", file!(), line!())) + 88 …ntk::PrintkWriter.__write_string((alloc::fmt::format(format_args!("({}:{})\t", file!(), line!())) +
|
/DragonOS-0.1.7/kernel/src/process/ |
D | process.rs | 11 file::{File, FileDescriptorVec, FileMode}, 187 pub fn alloc_fd(&mut self, file: File, fd: Option<i32>) -> Result<i32, SystemError> { in alloc_fd() 197 drop(file); in alloc_fd() 209 *x = Some(Box::new(file)); in alloc_fd() 219 *x = Some(Box::new(file)); in alloc_fd()
|
D | process.h | 159 int process_fd_alloc(struct vfs_file_t *file);
|
/DragonOS-0.1.7/kernel/src/ipc/ |
D | syscall.rs | 3 filesystem::vfs::file::{File, FileMode},
|
/DragonOS-0.1.7/kernel/src/ |
D | lib.rs | 73 loc.file(), in panic()
|
/DragonOS-0.1.7/kernel/src/filesystem/fat/ |
D | entry.rs | 1203 let mut file: FATFile = FATFile::default(); in to_dir_entry() localVariable 1205 file.file_name = self.name_to_string(); in to_dir_entry() 1206 file.first_cluster = first_cluster; in to_dir_entry() 1207 file.short_dir_entry = self.clone(); in to_dir_entry() 1208 file.loc = (loc, loc); in to_dir_entry() 1212 return FATDirEntry::File(file); in to_dir_entry() 1214 return FATDirEntry::VolId(file); in to_dir_entry() 1245 let mut file = FATFile::default(); in to_dir_entry_with_long_name() localVariable 1247 file.first_cluster = first_cluster; in to_dir_entry_with_long_name() 1248 file.file_name = name; in to_dir_entry_with_long_name() [all …]
|
/DragonOS-0.1.7/kernel/src/filesystem/sysfs/ |
D | mod.rs | 2 core::generate_inode_id, file::FileMode, FileSystem, FileType, FsInfo, IndexNode, Metadata, 357 pub fn add_file(&self, name: &str, file: Arc<dyn IndexNode>) -> Result<(), SystemError> { in add_file() 364 this.children.insert(name.to_string(), file); in add_file()
|
/DragonOS-0.1.7/user/apps/test_relibc/ |
D | link.lds | 128 linker won't look for a file to match a 135 the crtend.o file until after the sorted ctors. 136 The .ctor section from the crtend file contains the
|
/DragonOS-0.1.7/kernel/src/filesystem/devfs/ |
D | null_dev.rs | 1 use crate::filesystem::vfs::file::FileMode;
|