Searched refs:filep2 (Results 1 – 4 of 4) sorted by relevance
78 struct file *filep2 = NULL; in file_dup() local90 filep2 = files_allocate(filep->f_vnode, filep->f_oflags, filep->f_pos, filep->f_priv, minfd); in file_dup()91 if (filep2 == NULL) in file_dup()96 filep2->f_refcount = filep->f_refcount; in file_dup()98 return filep2->fd; in file_dup()
86 struct file *filep2; in fs_dupfd2() local94 ret = fs_getfilep(fd2, &filep2); in fs_dupfd2()121 if (!file_dup2(filep1, filep2)) in fs_dupfd2()
314 int file_dup2(struct file *filep1, struct file *filep2) in file_dup2() argument321 if (!filep1 || !filep1->f_vnode || !filep2) in file_dup2()345 ret = _files_close(filep2); in file_dup2()359 filep2->f_oflags = filep1->f_oflags; in file_dup2()360 filep2->f_pos = filep1->f_pos; in file_dup2()361 filep2->f_vnode = filep1->f_vnode; in file_dup2()362 filep2->f_priv = filep1->f_priv; in file_dup2()363 filep2->f_path = filep1->f_path; in file_dup2()364 filep2->ops = filep1->ops; in file_dup2()365 filep2->f_refcount = filep1->f_refcount; in file_dup2()[all …]
193 int file_dup2(struct file *filep1, struct file *filep2);