Home
last modified time | relevance | path

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

/Linux-v6.1/fs/
Dfile.c54 static void copy_fd_bitmaps(struct fdtable *nfdt, struct fdtable *ofdt, in copy_fd_bitmaps() argument
61 memcpy(nfdt->open_fds, ofdt->open_fds, cpy); in copy_fd_bitmaps()
63 memcpy(nfdt->close_on_exec, ofdt->close_on_exec, cpy); in copy_fd_bitmaps()
68 memcpy(nfdt->full_fds_bits, ofdt->full_fds_bits, cpy); in copy_fd_bitmaps()
76 static void copy_fdtable(struct fdtable *nfdt, struct fdtable *ofdt) in copy_fdtable() argument
80 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
82 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
83 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
84 memcpy(nfdt->fd, ofdt->fd, cpy); in copy_fdtable()
87 copy_fd_bitmaps(nfdt, ofdt, ofdt->max_fds); in copy_fdtable()