/DragonOS-0.1.2/user/libs/libc/src/ |
D | dirent.c | 57 int64_t getdents(int fd, struct dirent *dirent, long count) in getdents() argument 59 return syscall_invoke(SYS_GET_DENTS, fd, (uint64_t)dirent, count, 0, 0, 0, 0, 0); in getdents() 67 struct dirent *readdir(struct DIR *dir) in readdir() 72 int len = getdents(dir->fd, (struct dirent *)dir->buf, DIR_BUF_SIZE); in readdir() 75 return (struct dirent *)dir->buf; in readdir()
|
D | dirent.h | 28 struct dirent struct 66 struct dirent* readdir(struct DIR* dir);
|
/DragonOS-0.1.2/docs/userland/libc/apis/api-list/ |
D | dirent.md | 1 # dirent.h 17 ``struct dirent`` : 43 ``dirent readdir(DIR *dir)`` 45 传入文件夹结构体,读入文件夹里的内容,并打包为dirent结构体返回
|
/DragonOS-0.1.2/kernel/src/common/ |
D | dirent.h | 4 struct dirent struct
|
/DragonOS-0.1.2/docs/userland/libc/apis/ |
D | index.rst | 8 api-list/dirent
|
/DragonOS-0.1.2/kernel/src/filesystem/rootfs/ |
D | rootfs.c | 51 static long rootfs_readdir(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler) in rootfs_readdir() argument 76 …return filler(dirent, file_ptr->position - 1, name, target_dent->name_length, dentry_type, file_pt… in rootfs_readdir()
|
/DragonOS-0.1.2/kernel/src/filesystem/VFS/ |
D | VFS.c | 217 struct dirent *dent = (struct dirent *)buf; in vfs_fill_dirent() 220 if (!(verify_area((uint64_t)buf, sizeof(struct dirent) + namelen))) in vfs_fill_dirent() 224 memset(buf, 0, sizeof(struct dirent) + namelen); in vfs_fill_dirent() 235 return sizeof(struct dirent) + namelen; in vfs_fill_dirent()
|
D | VFS.h | 193 long (*readdir)(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler); // 读取文件夹
|
/DragonOS-0.1.2/kernel/src/filesystem/devfs/ |
D | devfs.c | 84 static long devfs_readdir(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler) in devfs_readdir() argument 112 …return filler(dirent, file_ptr->position - 1, name, target_dent->name_length, dentry_type, file_pt… in devfs_readdir()
|
/DragonOS-0.1.2/kernel/src/filesystem/fat32/ |
D | fat32.h | 221 int64_t fat32_readdir(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler);
|
D | fat32.c | 1157 int64_t fat32_readdir(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler) in fat32_readdir() argument 1339 return filler(dirent, 0, dir_name, name_len, dentry_type, 0); in fat32_readdir()
|
/DragonOS-0.1.2/kernel/src/syscall/ |
D | syscall.c | 428 void *dirent = (void *)regs->r9; in sys_getdents() local 443 retval = filp->file_ops->readdir(filp, dirent, &vfs_fill_dirent); in sys_getdents()
|
/DragonOS-0.1.2/kernel/src/filesystem/procfs/ |
D | procfs.c | 272 static long procfs_readdir(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler) in procfs_readdir() argument 297 …return filler(dirent, file_ptr->position - 1, name, target_dent->name_length, dentry_type, file_pt… in procfs_readdir()
|
/DragonOS-0.1.2/user/apps/shell/ |
D | cmd.c | 251 struct dirent *buf = NULL; in shell_cmd_ls()
|