/fs/ |
D | readdir.c | 69 struct old_linux_dirent __user * dirent; member 77 struct old_linux_dirent __user * dirent; in fillonedir() local 88 dirent = buf->dirent; in fillonedir() 89 if (!access_ok(VERIFY_WRITE, dirent, in fillonedir() 90 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir() 91 (unsigned long)dirent)) in fillonedir() 93 if ( __put_user(d_ino, &dirent->d_ino) || in fillonedir() 94 __put_user(offset, &dirent->d_offset) || in fillonedir() 95 __put_user(namlen, &dirent->d_namlen) || in fillonedir() 96 __copy_to_user(dirent->d_name, name, namlen) || in fillonedir() [all …]
|
D | compat.c | 820 struct compat_old_linux_dirent __user *dirent; member 828 struct compat_old_linux_dirent __user *dirent; in compat_fillonedir() local 839 dirent = buf->dirent; in compat_fillonedir() 840 if (!access_ok(VERIFY_WRITE, dirent, in compat_fillonedir() 841 (unsigned long)(dirent->d_name + namlen + 1) - in compat_fillonedir() 842 (unsigned long)dirent)) in compat_fillonedir() 844 if ( __put_user(d_ino, &dirent->d_ino) || in compat_fillonedir() 845 __put_user(offset, &dirent->d_offset) || in compat_fillonedir() 846 __put_user(namlen, &dirent->d_namlen) || in compat_fillonedir() 847 __copy_to_user(dirent->d_name, name, namlen) || in compat_fillonedir() [all …]
|
/fs/ext3/ |
D | dir.c | 37 void * dirent, filldir_t filldir); 95 void * dirent, filldir_t filldir) in ext3_readdir() argument 113 err = ext3_dx_readdir(filp, dirent, filldir); in ext3_readdir() 215 error = filldir(dirent, de->name, in ext3_readdir() 334 struct ext3_dir_entry_2 *dirent) in ext3_htree_store_dirent() argument 345 len = sizeof(struct fname) + dirent->name_len + 1; in ext3_htree_store_dirent() 351 new_fn->inode = le32_to_cpu(dirent->inode); in ext3_htree_store_dirent() 352 new_fn->name_len = dirent->name_len; in ext3_htree_store_dirent() 353 new_fn->file_type = dirent->file_type; in ext3_htree_store_dirent() 354 memcpy(new_fn->name, dirent->name, dirent->name_len); in ext3_htree_store_dirent() [all …]
|
/fs/ext4/ |
D | dir.c | 37 void *dirent, filldir_t filldir); 95 void *dirent, filldir_t filldir) in ext4_readdir() argument 113 err = ext4_dx_readdir(filp, dirent, filldir); in ext4_readdir() 217 error = filldir(dirent, de->name, in ext4_readdir() 336 struct ext4_dir_entry_2 *dirent) in ext4_htree_store_dirent() argument 347 len = sizeof(struct fname) + dirent->name_len + 1; in ext4_htree_store_dirent() 353 new_fn->inode = le32_to_cpu(dirent->inode); in ext4_htree_store_dirent() 354 new_fn->name_len = dirent->name_len; in ext4_htree_store_dirent() 355 new_fn->file_type = dirent->file_type; in ext4_htree_store_dirent() 356 memcpy(new_fn->name, dirent->name, dirent->name_len); in ext4_htree_store_dirent() [all …]
|
/fs/ncpfs/ |
D | ncplib_kernel.c | 325 int ncp_dirhandle_alloc(struct ncp_server* server, __u8 volnum, __le32 dirent, in ncp_dirhandle_alloc() argument 334 ncp_add_handle_path(server, volnum, dirent, 1, NULL); in ncp_dirhandle_alloc() 424 __le32 dirent = NCP_FINFO(dir)->dirEntNum; in ncp_obtain_info() local 437 ncp_add_handle_path(server, volnum, dirent, 1, path); in ncp_obtain_info() 455 __u8 volnum, __le32 dirent, in ncp_obtain_DOS_dir_base() argument 467 ncp_add_handle_path(server, volnum, dirent, 1, path); in ncp_obtain_DOS_dir_base() 579 __u32* volume, __le32* dirent, __le32* dosdirent) in ncp_get_volume_root() argument 603 *dirent = *dosdirent = ncp_reply_dword(server, 4); in ncp_get_volume_root() 645 __le32 dirent = NCP_FINFO(dir)->dirEntNum; in ncp_modify_file_or_subdir_dos_info_path() local 656 ncp_add_handle_path(server, volnum, dirent, 1, path); in ncp_modify_file_or_subdir_dos_info_path() [all …]
|
D | ncplib_kernel.h | 73 __u32 *volume, __le32 *dirent, __le32 *dosdirent); 79 int ncp_modify_nfs_info(struct ncp_server *, __u8 volnum, __le32 dirent, 113 __u32* volume, __le32* dirent, __le32* dosdirent); 114 int ncp_dirhandle_alloc(struct ncp_server *, __u8 vol, __le32 dirent, __u8 *dirhandle);
|
D | dir.c | 403 static int ncp_readdir(struct file *filp, void *dirent, filldir_t filldir) in ncp_readdir() argument 429 if (filldir(dirent, ".", 1, 0, inode->i_ino, DT_DIR)) in ncp_readdir() 434 if (filldir(dirent, "..", 2, 1, parent_ino(dentry), DT_DIR)) in ncp_readdir() 483 res = filldir(dirent, dent->d_name.name, in ncp_readdir() 528 ncp_read_volume_list(filp, dirent, filldir, &ctl); in ncp_readdir() 530 ncp_do_readdir(filp, dirent, filldir, &ctl); in ncp_readdir() 554 ncp_fill_cache(struct file *filp, void *dirent, filldir_t filldir, in ncp_fill_cache() argument 637 ctl.filled = filldir(dirent, qname.name, qname.len, in ncp_fill_cache() 649 ncp_read_volume_list(struct file *filp, void *dirent, filldir_t filldir, in ncp_read_volume_list() argument 679 if (!ncp_fill_cache(filp, dirent, filldir, ctl, &entry)) in ncp_read_volume_list() [all …]
|
/fs/isofs/ |
D | dir.c | 82 void *dirent, filldir_t filldir, in do_isofs_readdir() argument 174 if (filldir(dirent, ".", 1, filp->f_pos, inode->i_ino, DT_DIR) < 0) in do_isofs_readdir() 185 if (filldir(dirent, "..", 2, filp->f_pos, inode_number, DT_DIR) < 0) in do_isofs_readdir() 234 if (filldir(dirent, p, len, filp->f_pos, inode_number, DT_UNKNOWN) < 0) in do_isofs_readdir() 252 void *dirent, filldir_t filldir) in isofs_readdir() argument 266 result = do_isofs_readdir(inode, filp, dirent, filldir, tmpname, tmpde); in isofs_readdir()
|
/fs/squashfs/ |
D | dir.c | 104 static int squashfs_readdir(struct file *file, void *dirent, filldir_t filldir) in squashfs_readdir() argument 146 dirent, name, size, file->f_pos, i_ino, in squashfs_readdir() 149 if (filldir(dirent, name, size, file->f_pos, i_ino, in squashfs_readdir() 203 "\n", dirent, dire->name, size, in squashfs_readdir() 210 if (filldir(dirent, dire->name, size, file->f_pos, in squashfs_readdir()
|
/fs/ecryptfs/ |
D | file.c | 71 void *dirent; member 80 ecryptfs_filldir(void *dirent, const char *lower_name, int lower_namelen, in ecryptfs_filldir() argument 84 (struct ecryptfs_getdents_callback *)dirent; in ecryptfs_filldir() 99 rc = buf->filldir(buf->dirent, name, name_size, offset, ino, d_type); in ecryptfs_filldir() 113 static int ecryptfs_readdir(struct file *file, void *dirent, filldir_t filldir) in ecryptfs_readdir() argument 124 buf.dirent = dirent; in ecryptfs_readdir()
|
/fs/proc/ |
D | proc_sysctl.c | 178 static int proc_sys_fill_cache(struct file *filp, void *dirent, in proc_sys_fill_cache() argument 213 return !!filldir(dirent, qname.name, qname.len, filp->f_pos, ino, type); in proc_sys_fill_cache() 218 void *dirent, filldir_t filldir) in scan() argument 231 res = proc_sys_fill_cache(file, dirent, filldir, head, table); in scan() 240 static int proc_sys_readdir(struct file *filp, void *dirent, filldir_t filldir) in proc_sys_readdir() argument 263 if (filldir(dirent, ".", 1, filp->f_pos, in proc_sys_readdir() 269 if (filldir(dirent, "..", 2, filp->f_pos, in proc_sys_readdir() 276 ret = scan(head, table, &pos, filp, dirent, filldir); in proc_sys_readdir() 283 ret = scan(h, h->attached_by, &pos, filp, dirent, filldir); in proc_sys_readdir()
|
D | base.c | 1605 static int proc_fill_cache(struct file *filp, void *dirent, filldir_t filldir, in proc_fill_cache() argument 1644 return filldir(dirent, name, len, filp->f_pos, ino, type); in proc_fill_cache() 1834 static int proc_readfd_common(struct file * filp, void * dirent, in proc_readfd_common() argument 1852 if (filldir(dirent, ".", 1, 0, inode->i_ino, DT_DIR) < 0) in proc_readfd_common() 1857 if (filldir(dirent, "..", 2, 1, ino, DT_DIR) < 0) in proc_readfd_common() 1876 if (proc_fill_cache(filp, dirent, filldir, in proc_readfd_common() 1899 static int proc_readfd(struct file *filp, void *dirent, filldir_t filldir) in proc_readfd() argument 1901 return proc_readfd_common(filp, dirent, filldir, proc_fd_instantiate); in proc_readfd() 1981 static int proc_readfdinfo(struct file *filp, void *dirent, filldir_t filldir) in proc_readfdinfo() argument 1983 return proc_readfd_common(filp, dirent, filldir, in proc_readfdinfo() [all …]
|
D | root.c | 159 void * dirent, filldir_t filldir) in proc_root_readdir() argument 165 int error = proc_readdir(filp, dirent, filldir); in proc_root_readdir() 171 ret = proc_pid_readdir(filp, dirent, filldir); in proc_root_readdir()
|
D | generic.c | 424 int proc_readdir_de(struct proc_dir_entry *de, struct file *filp, void *dirent, in proc_readdir_de() argument 436 if (filldir(dirent, ".", 1, i, ino, DT_DIR) < 0) in proc_readdir_de() 442 if (filldir(dirent, "..", 2, i, in proc_readdir_de() 471 if (filldir(dirent, de->name, de->namelen, filp->f_pos, in proc_readdir_de() 489 int proc_readdir(struct file *filp, void *dirent, filldir_t filldir) in proc_readdir() argument 493 return proc_readdir_de(PDE(inode), filp, dirent, filldir); in proc_readdir()
|
/fs/udf/ |
D | dir.c | 40 filldir_t filldir, void *dirent) in do_udf_readdir() argument 171 if (flen && filldir(dirent, fname, flen, filp->f_pos, in do_udf_readdir() 188 static int udf_readdir(struct file *filp, void *dirent, filldir_t filldir) in udf_readdir() argument 196 if (filldir(dirent, ".", 1, filp->f_pos, dir->i_ino, DT_DIR) < 0) { in udf_readdir() 203 result = do_udf_readdir(dir, filp, filldir, dirent); in udf_readdir()
|
/fs/affs/ |
D | dir.c | 43 affs_readdir(struct file *filp, void *dirent, filldir_t filldir) in affs_readdir() argument 69 if (filldir(dirent, ".", 1, f_pos, inode->i_ino, DT_DIR) < 0) in affs_readdir() 75 if (filldir(dirent, "..", 2, f_pos, parent_ino(filp->f_path.dentry), DT_DIR) < 0) in affs_readdir() 135 if (filldir(dirent, name, namelen, f_pos, ino, DT_UNKNOWN) < 0) in affs_readdir()
|
/fs/hfs/ |
D | dir.c | 54 static int hfs_readdir(struct file *filp, void *dirent, filldir_t filldir) in hfs_readdir() argument 77 if (filldir(dirent, ".", 1, 0, inode->i_ino, DT_DIR)) in hfs_readdir() 93 if (filldir(dirent, "..", 2, 1, in hfs_readdir() 121 if (filldir(dirent, strbuf, len, filp->f_pos, in hfs_readdir() 130 if (filldir(dirent, strbuf, len, filp->f_pos, in hfs_readdir()
|
/fs/adfs/ |
D | dir.c | 29 adfs_readdir(struct file *filp, void *dirent, filldir_t filldir) in adfs_readdir() argument 49 if (filldir(dirent, ".", 1, 0, inode->i_ino, DT_DIR) < 0) in adfs_readdir() 54 if (filldir(dirent, "..", 2, 1, dir.parent_id, DT_DIR) < 0) in adfs_readdir() 68 if (filldir(dirent, obj.name, obj.name_len, in adfs_readdir()
|
/fs/openpromfs/ |
D | inode.c | 263 static int openpromfs_readdir(struct file * filp, void * dirent, filldir_t filldir) in openpromfs_readdir() argument 279 if (filldir(dirent, ".", 1, i, ino, DT_DIR) < 0) in openpromfs_readdir() 285 if (filldir(dirent, "..", 2, i, in openpromfs_readdir() 303 if (filldir(dirent, in openpromfs_readdir() 320 if (filldir(dirent, prop->name, strlen(prop->name), in openpromfs_readdir()
|
/fs/omfs/ |
D | dir.c | 344 static int omfs_fill_chain(struct file *filp, void *dirent, filldir_t filldir, in omfs_fill_chain() argument 379 res = filldir(dirent, oi->i_name, strnlen(oi->i_name, in omfs_fill_chain() 436 static int omfs_readdir(struct file *filp, void *dirent, filldir_t filldir) in omfs_readdir() argument 451 if (filldir(dirent, ".", 1, 0, dir->i_ino, DT_DIR) < 0) in omfs_readdir() 456 if (filldir(dirent, "..", 2, 1, in omfs_readdir() 478 res = omfs_fill_chain(filp, dirent, filldir, fsblock, hindex); in omfs_readdir()
|
/fs/hpfs/ |
D | dir.c | 53 static int hpfs_readdir(struct file *filp, void *dirent, filldir_t filldir) in hpfs_readdir() argument 127 if (filldir(dirent, ".", 1, filp->f_pos, inode->i_ino, DT_DIR) < 0) in hpfs_readdir() 132 if (filldir(dirent, "..", 2, filp->f_pos, hpfs_inode->i_parent_dir, DT_DIR) < 0) in hpfs_readdir() 158 if (filldir(dirent, tempname, de->namelen, old_pos, de->fnode, DT_UNKNOWN) < 0) { in hpfs_readdir()
|
/fs/ocfs2/ |
D | dir.h | 66 struct ocfs2_dir_entry **dirent); 69 int ocfs2_readdir(struct file *filp, void *dirent, filldir_t filldir);
|
/fs/qnx4/ |
D | dir.c | 23 static int qnx4_readdir(struct file *filp, void *dirent, filldir_t filldir) in qnx4_readdir() argument 67 if (filldir(dirent, de->di_fname, size, filp->f_pos, ino, DT_UNKNOWN) < 0) { in qnx4_readdir()
|
/fs/efs/ |
D | dir.c | 22 static int efs_readdir(struct file *filp, void *dirent, filldir_t filldir) { in efs_readdir() argument 82 filldir(dirent, nameptr, namelen, filp->f_pos, inodenum, DT_UNKNOWN); in efs_readdir()
|
/fs/9p/ |
D | vfs_dir.c | 69 static int v9fs_dir_readdir(struct file *filp, void *dirent, filldir_t filldir) in v9fs_dir_readdir() argument 107 over = filldir(dirent, st.name, strlen(st.name), in v9fs_dir_readdir()
|