Home
last modified time | relevance | path

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

/linux-6.12.1/fs/
Dfile.c55 static inline void copy_fd_bitmaps(struct fdtable *nfdt, struct fdtable *ofdt, in copy_fd_bitmaps() argument
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()
78 cpy = ofdt->max_fds * sizeof(struct file *); 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()
83 copy_fd_bitmaps(nfdt, ofdt, fdt_words(ofdt)); in copy_fdtable()