Home
last modified time | relevance | path

Searched refs:dirent (Results 1 – 14 of 14) sorted by relevance

/DragonOS-0.1.2/user/libs/libc/src/
Ddirent.c57 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()
Ddirent.h28 struct dirent struct
66 struct dirent* readdir(struct DIR* dir);
/DragonOS-0.1.2/docs/userland/libc/apis/api-list/
Ddirent.md1 # dirent.h
17 ``struct dirent`` :
43 ``dirent readdir(DIR *dir)``
45 传入文件夹结构体,读入文件夹里的内容,并打包为dirent结构体返回
/DragonOS-0.1.2/kernel/src/common/
Ddirent.h4 struct dirent struct
/DragonOS-0.1.2/docs/userland/libc/apis/
Dindex.rst8 api-list/dirent
/DragonOS-0.1.2/kernel/src/filesystem/rootfs/
Drootfs.c51 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/
DVFS.c217 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()
DVFS.h193 long (*readdir)(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler); // 读取文件夹
/DragonOS-0.1.2/kernel/src/filesystem/devfs/
Ddevfs.c84 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/
Dfat32.h221 int64_t fat32_readdir(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler);
Dfat32.c1157 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/
Dsyscall.c428 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/
Dprocfs.c272 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/
Dcmd.c251 struct dirent *buf = NULL; in shell_cmd_ls()