Searched refs:fdt (Results 1 – 8 of 8) sorted by relevance
49 static inline void free_fdarr(struct fdtable *fdt) in free_fdarr() argument51 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() argument59 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() local72 fdt = f->next; in free_fdtable_work()[all …]
31 struct fdtable *fdt; in set_close_on_exec() local33 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() local47 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() local91 fdt = files_fdtable(files); in SYSCALL_DEFINE3()92 tofree = fdt->fd[newfd]; in SYSCALL_DEFINE3()[all …]
985 struct fdtable *fdt = files_fdtable(files); in __put_unused_fd() local986 __FD_CLR(fd, fdt->open_fds); in __put_unused_fd()1017 struct fdtable *fdt; in fd_install() local1019 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() local1126 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 …]
324 struct fdtable *fdt; in max_select_fd() local329 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() local502 fdt = files_fdtable(current->files); in core_sys_select()503 max_fds = fdt->max_fds; in core_sys_select()
907 struct fdtable *fdt; in flush_old_files() local915 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()
1622 struct fdtable *fdt; in compat_core_sys_select() local1630 fdt = files_fdtable(current->files); in compat_core_sys_select()1631 max_fds = fdt->max_fds; in compat_core_sys_select()
273 struct fdtable *fdt; in autofs_dev_ioctl_fd_install() local276 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()
161 struct fdtable *fdt = NULL; in task_state() local192 fdt = files_fdtable(p->files); in task_state()196 fdt ? fdt->max_fds : 0); in task_state()