/linux-4.19.296/fs/ |
D | file.c | 29 static void __free_fdtable(struct fdtable *fdt) in __free_fdtable() argument 31 kvfree(fdt->fd); in __free_fdtable() 32 kvfree(fdt->open_fds); in __free_fdtable() 33 kfree(fdt); in __free_fdtable() 87 struct fdtable *fdt; in alloc_fdtable() local 111 fdt = kmalloc(sizeof(struct fdtable), GFP_KERNEL_ACCOUNT); in alloc_fdtable() 112 if (!fdt) in alloc_fdtable() 114 fdt->max_fds = nr; in alloc_fdtable() 118 fdt->fd = data; in alloc_fdtable() 125 fdt->open_fds = data; in alloc_fdtable() [all …]
|
D | select.c | 397 struct fdtable *fdt; in max_select_fd() local 402 fdt = files_fdtable(current->files); in max_select_fd() 403 open_fds = fdt->open_fds + n; in max_select_fd() 604 struct fdtable *fdt; in core_sys_select() local 614 fdt = files_fdtable(current->files); in core_sys_select() 615 max_fds = fdt->max_fds; in core_sys_select() 1195 struct fdtable *fdt; in compat_core_sys_select() local 1203 fdt = files_fdtable(current->files); in compat_core_sys_select() 1204 max_fds = fdt->max_fds; in compat_core_sys_select()
|
D | exec.c | 1797 if (close_on_exec(fd, rcu_dereference_raw(current->files->fdt))) in __do_execve_file()
|
/linux-4.19.296/include/linux/ |
D | fdtable.h | 35 static inline bool close_on_exec(unsigned int fd, const struct fdtable *fdt) in close_on_exec() argument 37 return test_bit(fd, fdt->close_on_exec); in close_on_exec() 40 static inline bool fd_is_open(unsigned int fd, const struct fdtable *fdt) in fd_is_open() argument 42 return test_bit(fd, fdt->open_fds); in fd_is_open() 56 struct fdtable __rcu *fdt; member 77 rcu_dereference_check_fdtable((files), (files)->fdt) 84 struct fdtable *fdt = rcu_dereference_raw(files->fdt); in __fcheck_files() local 86 if (fd < fdt->max_fds) { in __fcheck_files() 87 fd = array_index_nospec(fd, fdt->max_fds); in __fcheck_files() 88 return rcu_dereference_raw(fdt->fd[fd]); in __fcheck_files()
|
/linux-4.19.296/include/linux/fsl/bestcomm/ |
D | bestcomm_priv.h | 56 u32 fdt; member 76 u32 *fdt; member 330 u32 *fdt = &bcom_eng->tdt[task].fdt; in bcom_set_task_pragma() local 331 *fdt = (*fdt & ~0xff) | pragma; in bcom_set_task_pragma()
|
/linux-4.19.296/drivers/pci/hotplug/ |
D | pnv_php.c | 177 if (php_slot->fdt) in pnv_php_rmv_devtree() 181 if (php_slot->fdt) { in pnv_php_rmv_devtree() 183 kfree(php_slot->fdt); in pnv_php_rmv_devtree() 186 php_slot->fdt = NULL; in pnv_php_rmv_devtree() 259 void *fdt, *fdt1, *dt; in pnv_php_add_devtree() local 278 fdt = kzalloc(fdt_totalsize(fdt1), GFP_KERNEL); in pnv_php_add_devtree() 279 if (!fdt) { in pnv_php_add_devtree() 285 memcpy(fdt, fdt1, fdt_totalsize(fdt1)); in pnv_php_add_devtree() 286 dt = of_fdt_unflatten_tree(fdt, php_slot->dn, NULL); in pnv_php_add_devtree() 313 php_slot->fdt = fdt; in pnv_php_add_devtree() [all …]
|
/linux-4.19.296/drivers/of/ |
D | overlay.c | 70 const void *fdt; member 648 const void *fdt, struct device_node *tree) in init_overlay_changeset() argument 669 ovcs->fdt = fdt; in init_overlay_changeset() 783 kfree(ovcs->fdt); in free_overlay_changeset() 830 static int of_overlay_apply(const void *fdt, struct device_node *tree, in of_overlay_apply() argument 843 kfree(fdt); in of_overlay_apply() 851 kfree(fdt); in of_overlay_apply() 864 ret = init_overlay_changeset(ovcs, fdt, tree); in of_overlay_apply() 915 kfree(fdt); in of_overlay_apply()
|
D | fdt.c | 947 const void *fdt = initial_boot_params; in early_init_dt_scan_chosen_stdout() local 949 offset = fdt_path_offset(fdt, "/chosen"); in early_init_dt_scan_chosen_stdout() 951 offset = fdt_path_offset(fdt, "/chosen@0"); in early_init_dt_scan_chosen_stdout() 955 p = fdt_getprop(fdt, offset, "stdout-path", &l); in early_init_dt_scan_chosen_stdout() 957 p = fdt_getprop(fdt, offset, "linux,stdout-path", &l); in early_init_dt_scan_chosen_stdout() 967 offset = fdt_path_offset_namelen(fdt, p, l); in early_init_dt_scan_chosen_stdout() 980 if (fdt_node_check_compatible(fdt, offset, match->compatible)) in early_init_dt_scan_chosen_stdout() 1323 __BIN_ATTR(fdt, S_IRUSR, of_fdt_raw_read, NULL, 0); in of_fdt_raw_init()
|
D | Makefile | 5 obj-$(CONFIG_OF_FLATTREE) += fdt.o
|
/linux-4.19.296/fs/proc/ |
D | fd.c | 40 struct fdtable *fdt = files_fdtable(files); in seq_show() local 43 if (close_on_exec(fd, fdt)) in seq_show()
|
/linux-4.19.296/lib/ |
D | Makefile | 214 libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \
|
/linux-4.19.296/ |
D | MAINTAINERS | 9533 W: http://www.monstr.eu/fdt/
|