Home
last modified time | relevance | path

Searched refs:fdt (Results 1 – 8 of 8) sorted by relevance

/fs/
Dfile.c49 static inline void free_fdarr(struct fdtable *fdt) in free_fdarr() argument
51 if (fdt->max_fds <= (PAGE_SIZE / sizeof(struct file *))) in free_fdarr()
52 kfree(fdt->fd); in free_fdarr()
54 vfree(fdt->fd); in free_fdarr()
57 static inline void free_fdset(struct fdtable *fdt) in free_fdset() argument
59 if (fdt->max_fds <= (PAGE_SIZE * BITS_PER_BYTE / 2)) in free_fdset()
60 kfree(fdt->open_fds); in free_fdset()
62 vfree(fdt->open_fds); in free_fdset()
69 struct fdtable *fdt; in free_fdtable_work() local
72 fdt = f->next; in free_fdtable_work()
[all …]
Dfcntl.c31 struct fdtable *fdt; in set_close_on_exec() local
33 fdt = files_fdtable(files); in set_close_on_exec()
35 FD_SET(fd, fdt->close_on_exec); in set_close_on_exec()
37 FD_CLR(fd, fdt->close_on_exec); 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 = FD_ISSET(fd, fdt->close_on_exec); 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 …]
Dopen.c985 struct fdtable *fdt = files_fdtable(files); in __put_unused_fd() local
986 __FD_CLR(fd, fdt->open_fds); in __put_unused_fd()
1017 struct fdtable *fdt; in fd_install() local
1019 fdt = files_fdtable(files); in fd_install()
1020 BUG_ON(fdt->fd[fd] != NULL); in fd_install()
1021 rcu_assign_pointer(fdt->fd[fd], file); in fd_install()
1122 struct fdtable *fdt; in SYSCALL_DEFINE1() local
1126 fdt = files_fdtable(files); in SYSCALL_DEFINE1()
1127 if (fd >= fdt->max_fds) in SYSCALL_DEFINE1()
1129 filp = fdt->fd[fd]; in SYSCALL_DEFINE1()
[all …]
Dselect.c324 struct fdtable *fdt; in max_select_fd() local
329 fdt = files_fdtable(current->files); in max_select_fd()
330 open_fds = fdt->open_fds->fds_bits+n; in max_select_fd()
492 struct fdtable *fdt; in core_sys_select() local
502 fdt = files_fdtable(current->files); in core_sys_select()
503 max_fds = fdt->max_fds; in core_sys_select()
Dexec.c907 struct fdtable *fdt; in flush_old_files() local
915 fdt = files_fdtable(files); in flush_old_files()
916 if (i >= fdt->max_fds) in flush_old_files()
918 set = fdt->close_on_exec->fds_bits[j]; in flush_old_files()
921 fdt->close_on_exec->fds_bits[j] = 0; in flush_old_files()
Dcompat.c1622 struct fdtable *fdt; in compat_core_sys_select() local
1630 fdt = files_fdtable(current->files); in compat_core_sys_select()
1631 max_fds = fdt->max_fds; in compat_core_sys_select()
/fs/autofs4/
Ddev-ioctl.c273 struct fdtable *fdt; in autofs_dev_ioctl_fd_install() local
276 fdt = files_fdtable(files); in autofs_dev_ioctl_fd_install()
277 BUG_ON(fdt->fd[fd] != NULL); in autofs_dev_ioctl_fd_install()
278 rcu_assign_pointer(fdt->fd[fd], file); in autofs_dev_ioctl_fd_install()
279 FD_SET(fd, fdt->close_on_exec); in autofs_dev_ioctl_fd_install()
/fs/proc/
Darray.c161 struct fdtable *fdt = NULL; in task_state() local
192 fdt = files_fdtable(p->files); in task_state()
196 fdt ? fdt->max_fds : 0); in task_state()