Home
last modified time | relevance | path

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

/openbmc/linux/fs/
H A Dfile.c56 static inline void copy_fd_bitmaps(struct fdtable *nfdt, struct fdtable *ofdt, in copy_fd_bitmaps() argument
59 unsigned int nwords = fdt_words(nfdt); in copy_fd_bitmaps()
61 bitmap_copy_and_extend(nfdt->open_fds, ofdt->open_fds, in copy_fd_bitmaps()
63 bitmap_copy_and_extend(nfdt->close_on_exec, ofdt->close_on_exec, in copy_fd_bitmaps()
65 bitmap_copy_and_extend(nfdt->full_fds_bits, ofdt->full_fds_bits, in copy_fd_bitmaps()
73 static void copy_fdtable(struct fdtable *nfdt, struct fdtable *ofdt) in copy_fdtable() argument
77 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
80 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
81 memcpy(nfdt->fd, ofdt->fd, cpy); in copy_fdtable()
82 memset((char *)nfdt->fd + cpy, 0, set); in copy_fdtable()
[all …]