Home
last modified time | relevance | path

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

/linux/fs/
H A Dfile.c119 static inline void copy_fd_bitmaps(struct fdtable *nfdt, struct fdtable *ofdt, in copy_fd_bitmaps() argument
124 bitmap_copy_and_extend(nfdt->open_fds, ofdt->open_fds, in copy_fd_bitmaps()
126 bitmap_copy_and_extend(nfdt->close_on_exec, ofdt->close_on_exec, in copy_fd_bitmaps()
128 bitmap_copy_and_extend(nfdt->full_fds_bits, ofdt->full_fds_bits, in copy_fd_bitmaps()
136 static void copy_fdtable(struct fdtable *nfdt, struct fdtable *ofdt) in copy_fdtable() argument
140 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
142 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
143 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
144 memcpy(nfdt->fd, ofdt->fd, cpy); in copy_fdtable()
147 copy_fd_bitmaps(nfdt, ofdt, fdt_words(ofdt)); in copy_fdtable()