Searched refs:new_fds (Results 1 – 2 of 2) sorted by relevance
24 struct file **new_fds; in alloc_fd_array() local28 new_fds = (struct file **) kmalloc(size, GFP_KERNEL); in alloc_fd_array()30 new_fds = (struct file **) vmalloc(size); in alloc_fd_array()31 return new_fds; in alloc_fd_array()59 struct file **new_fds; in expand_fd_array() local91 new_fds = alloc_fd_array(nfds); in expand_fd_array()93 if (!new_fds) in expand_fd_array()102 old_fds = xchg(&files->fd, new_fds); in expand_fd_array()108 memcpy(new_fds, old_fds, i * sizeof(struct file *)); in expand_fd_array()110 memset(&new_fds[i], 0, in expand_fd_array()[all …]
439 struct file **old_fds, **new_fds; in copy_files() local509 new_fds = newf->fd; in copy_files()527 *new_fds++ = f; in copy_files()535 memset(new_fds, 0, size); in copy_files()