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

/linux-4.1.27/fs/
H A Dfile.c63 static void copy_fdtable(struct fdtable *nfdt, struct fdtable *ofdt) copy_fdtable() argument
67 BUG_ON(nfdt->max_fds < ofdt->max_fds); copy_fdtable()
70 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); copy_fdtable()
71 memcpy(nfdt->fd, ofdt->fd, cpy); copy_fdtable()
72 memset((char *)(nfdt->fd) + cpy, 0, set); copy_fdtable()
75 set = (nfdt->max_fds - ofdt->max_fds) / BITS_PER_BYTE; copy_fdtable()
76 memcpy(nfdt->open_fds, ofdt->open_fds, cpy); copy_fdtable()
77 memset((char *)(nfdt->open_fds) + cpy, 0, set); copy_fdtable()
78 memcpy(nfdt->close_on_exec, ofdt->close_on_exec, cpy); copy_fdtable()
79 memset((char *)(nfdt->close_on_exec) + cpy, 0, set); copy_fdtable()

Completed in 59 milliseconds