Searched refs:nfdt (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/fs/ |
D | file.c | 55 static inline void copy_fd_bitmaps(struct fdtable *nfdt, struct fdtable *ofdt, in copy_fd_bitmaps() argument 58 unsigned int nwords = fdt_words(nfdt); in copy_fd_bitmaps() 60 bitmap_copy_and_extend(nfdt->open_fds, ofdt->open_fds, in copy_fd_bitmaps() 62 bitmap_copy_and_extend(nfdt->close_on_exec, ofdt->close_on_exec, in copy_fd_bitmaps() 64 bitmap_copy_and_extend(nfdt->full_fds_bits, ofdt->full_fds_bits, in copy_fd_bitmaps() 72 static void copy_fdtable(struct fdtable *nfdt, struct fdtable *ofdt) in copy_fdtable() argument 76 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable() 79 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable() 80 memcpy(nfdt->fd, ofdt->fd, cpy); in copy_fdtable() 81 memset((char *)nfdt->fd + cpy, 0, set); in copy_fdtable() [all …]
|