Home
last modified time | relevance | path

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

/linux-4.1.27/fs/
Dfile.c63 static void copy_fdtable(struct fdtable *nfdt, struct fdtable *ofdt) in copy_fdtable() argument
67 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
69 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
70 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
71 memcpy(nfdt->fd, ofdt->fd, cpy); in copy_fdtable()
74 cpy = ofdt->max_fds / BITS_PER_BYTE; in copy_fdtable()
75 set = (nfdt->max_fds - ofdt->max_fds) / BITS_PER_BYTE; in copy_fdtable()
76 memcpy(nfdt->open_fds, ofdt->open_fds, cpy); in copy_fdtable()
78 memcpy(nfdt->close_on_exec, ofdt->close_on_exec, cpy); in copy_fdtable()