Searched refs:fdt (Results 1 – 9 of 9) sorted by relevance
/fs/ |
D | file.c | 62 static void __free_fdtable(struct fdtable *fdt) in __free_fdtable() argument 64 free_fdmem(fdt->fd); in __free_fdtable() 65 free_fdmem(fdt->open_fds); in __free_fdtable() 66 kfree(fdt); in __free_fdtable() 73 struct fdtable *fdt; in free_fdtable_work() local 76 fdt = f->next; in free_fdtable_work() 79 while(fdt) { in free_fdtable_work() 80 struct fdtable *next = fdt->next; in free_fdtable_work() 82 __free_fdtable(fdt); in free_fdtable_work() 83 fdt = next; in free_fdtable_work() [all …]
|
D | fcntl.c | 31 struct fdtable *fdt; in set_close_on_exec() local 33 fdt = files_fdtable(files); in set_close_on_exec() 35 __set_close_on_exec(fd, fdt); in set_close_on_exec() 37 __clear_close_on_exec(fd, fdt); in set_close_on_exec() 44 struct fdtable *fdt; in get_close_on_exec() local 47 fdt = files_fdtable(files); in get_close_on_exec() 48 res = close_on_exec(fd, fdt); in get_close_on_exec() 58 struct fdtable *fdt; in SYSCALL_DEFINE3() local 91 fdt = files_fdtable(files); in SYSCALL_DEFINE3() 92 tofree = fdt->fd[newfd]; in SYSCALL_DEFINE3() [all …]
|
D | open.c | 838 struct fdtable *fdt = files_fdtable(files); in __put_unused_fd() local 839 __clear_open_fd(fd, fdt); in __put_unused_fd() 870 struct fdtable *fdt; in fd_install() local 872 fdt = files_fdtable(files); in fd_install() 873 BUG_ON(fdt->fd[fd] != NULL); in fd_install() 874 rcu_assign_pointer(fdt->fd[fd], file); in fd_install() 1073 struct fdtable *fdt; in SYSCALL_DEFINE1() local 1077 fdt = files_fdtable(files); in SYSCALL_DEFINE1() 1078 if (fd >= fdt->max_fds) in SYSCALL_DEFINE1() 1080 filp = fdt->fd[fd]; in SYSCALL_DEFINE1() [all …]
|
D | select.c | 347 struct fdtable *fdt; in max_select_fd() local 352 fdt = files_fdtable(current->files); in max_select_fd() 353 open_fds = fdt->open_fds + n; in max_select_fd() 527 struct fdtable *fdt; in core_sys_select() local 537 fdt = files_fdtable(current->files); in core_sys_select() 538 max_fds = fdt->max_fds; in core_sys_select()
|
D | exec.c | 1023 struct fdtable *fdt; in flush_old_files() local 1031 fdt = files_fdtable(files); in flush_old_files() 1032 if (i >= fdt->max_fds) in flush_old_files() 1034 set = fdt->close_on_exec[j]; in flush_old_files() 1037 fdt->close_on_exec[j] = 0; in flush_old_files() 2091 struct fdtable *fdt; in umh_pipe_setup() local 2110 fdt = files_fdtable(cf); in umh_pipe_setup() 2111 __set_open_fd(0, fdt); in umh_pipe_setup() 2112 __clear_close_on_exec(0, fdt); in umh_pipe_setup()
|
D | compat.c | 1448 struct fdtable *fdt; in compat_core_sys_select() local 1456 fdt = files_fdtable(current->files); in compat_core_sys_select() 1457 max_fds = fdt->max_fds; in compat_core_sys_select()
|
/fs/autofs4/ |
D | dev-ioctl.c | 227 struct fdtable *fdt; in autofs_dev_ioctl_fd_install() local 230 fdt = files_fdtable(files); in autofs_dev_ioctl_fd_install() 231 BUG_ON(fdt->fd[fd] != NULL); in autofs_dev_ioctl_fd_install() 232 rcu_assign_pointer(fdt->fd[fd], file); in autofs_dev_ioctl_fd_install() 233 __set_close_on_exec(fd, fdt); in autofs_dev_ioctl_fd_install()
|
/fs/proc/ |
D | array.c | 166 struct fdtable *fdt = NULL; in task_state() local 197 fdt = files_fdtable(p->files); in task_state() 201 fdt ? fdt->max_fds : 0); in task_state()
|
D | base.c | 1752 struct fdtable *fdt; in proc_fd_info() local 1754 fdt = files_fdtable(files); in proc_fd_info() 1756 if (close_on_exec(fd, fdt)) in proc_fd_info()
|