Home
last modified time | relevance | path

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

/fs/
Dfile.c49 static void copy_fd_bitmaps(struct fdtable *nfdt, struct fdtable *ofdt, in copy_fd_bitmaps() argument
56 memcpy(nfdt->open_fds, ofdt->open_fds, cpy); in copy_fd_bitmaps()
58 memcpy(nfdt->close_on_exec, ofdt->close_on_exec, cpy); in copy_fd_bitmaps()
63 memcpy(nfdt->full_fds_bits, ofdt->full_fds_bits, cpy); in copy_fd_bitmaps()
71 static void copy_fdtable(struct fdtable *nfdt, struct fdtable *ofdt) in copy_fdtable() argument
75 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
77 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
78 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
79 memcpy(nfdt->fd, ofdt->fd, cpy); in copy_fdtable()
82 copy_fd_bitmaps(nfdt, ofdt, ofdt->max_fds); in copy_fdtable()