Searched refs:new_fd (Results 1 – 9 of 9) sorted by relevance
/linux/arch/um/drivers/ |
A D | xterm_kern.c | 17 int new_fd; member 29 xterm->new_fd = fd; in xterm_interrupt() 49 .new_fd = -1 }); in xterm_fd() 69 ret = data->new_fd; in xterm_fd()
|
/linux/fs/ |
A D | file.c | 1159 int new_fd; in __receive_fd() local 1166 new_fd = get_unused_fd_flags(o_flags); in __receive_fd() 1167 if (new_fd < 0) in __receive_fd() 1168 return new_fd; in __receive_fd() 1171 error = put_user(new_fd, ufd); in __receive_fd() 1173 put_unused_fd(new_fd); in __receive_fd() 1178 fd_install(new_fd, get_file(file)); in __receive_fd() 1180 return new_fd; in __receive_fd() 1183 int receive_fd_replace(int new_fd, struct file *file, unsigned int o_flags) in receive_fd_replace() argument 1190 error = replace_fd(new_fd, file, o_flags); in receive_fd_replace() [all …]
|
/linux/drivers/infiniband/core/ |
A D | rdma_core.c | 457 int new_fd; in alloc_begin_fd_uobject() local 473 new_fd = get_unused_fd_flags(O_CLOEXEC); in alloc_begin_fd_uobject() 474 if (new_fd < 0) { in alloc_begin_fd_uobject() 475 ret = ERR_PTR(new_fd); in alloc_begin_fd_uobject() 488 uobj->id = new_fd; in alloc_begin_fd_uobject() 492 put_unused_fd(new_fd); in alloc_begin_fd_uobject()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | select_reuseport.c | 440 int new_fd = accept(srv_fd, NULL, 0); in do_test() local 442 RET_IF(new_fd == -1, "accept(srv_fd)", in do_test() 444 ev.data.u32, new_fd, errno); in do_test() 446 nread = recv(new_fd, &rcv_cmd, sizeof(rcv_cmd), MSG_DONTWAIT); in do_test() 452 close(new_fd); in do_test()
|
/linux/fs/jffs2/ |
A D | gc.c | 853 struct jffs2_full_dirent *new_fd; in jffs2_garbage_collect_dirent() local 884 new_fd = jffs2_write_dirent(c, f, &rd, fd->name, rd.nsize, ALLOC_GC); in jffs2_garbage_collect_dirent() 886 if (IS_ERR(new_fd)) { in jffs2_garbage_collect_dirent() 888 PTR_ERR(new_fd)); in jffs2_garbage_collect_dirent() 889 return PTR_ERR(new_fd); in jffs2_garbage_collect_dirent() 891 jffs2_add_fd_to_list(c, new_fd, &f->dents); in jffs2_garbage_collect_dirent()
|
/linux/include/linux/ |
A D | file.h | 107 int receive_fd_replace(int new_fd, struct file *file, unsigned int o_flags);
|
/linux/arch/um/os-Linux/skas/ |
A D | process.c | 537 int new_fd = phys_mapping(to_phys((void *)new_stack), &new_offset); in copy_context_skas0() local 545 .fd = new_fd, in copy_context_skas0()
|
/linux/kernel/ |
A D | fork.c | 3028 struct files_struct *new_fd = NULL; in ksys_unshare() local 3069 err = unshare_fd(unshare_flags, NR_OPEN_MAX, &new_fd); in ksys_unshare() 3086 if (new_fs || new_fd || do_sysvsem || new_cred || new_nsproxy) { in ksys_unshare() 3115 if (new_fd) in ksys_unshare() 3116 swap(current->files, new_fd); in ksys_unshare() 3133 if (new_fd) in ksys_unshare() 3134 put_files_struct(new_fd); in ksys_unshare()
|
/linux/tools/lib/bpf/ |
A D | libbpf.c | 4183 int new_fd, err; in bpf_map__reuse_fd() local 4196 new_fd = open("/", O_RDONLY | O_CLOEXEC); in bpf_map__reuse_fd() 4197 if (new_fd < 0) { in bpf_map__reuse_fd() 4202 new_fd = dup3(fd, new_fd, O_CLOEXEC); in bpf_map__reuse_fd() 4203 if (new_fd < 0) { in bpf_map__reuse_fd() 4215 map->fd = new_fd; in bpf_map__reuse_fd() 4230 close(new_fd); in bpf_map__reuse_fd()
|
Completed in 38 milliseconds