Home
last modified time | relevance | path

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

/linux-6.6.21/arch/um/drivers/
Dxterm_kern.c18 int new_fd; member
30 xterm->new_fd = fd; in xterm_interrupt()
50 .new_fd = -1 }); in xterm_fd()
70 ret = data->new_fd; in xterm_fd()
/linux-6.6.21/fs/
Dfile.c1188 int new_fd; in __receive_fd() local
1195 new_fd = get_unused_fd_flags(o_flags); in __receive_fd()
1196 if (new_fd < 0) in __receive_fd()
1197 return new_fd; in __receive_fd()
1200 error = put_user(new_fd, ufd); in __receive_fd()
1202 put_unused_fd(new_fd); in __receive_fd()
1207 fd_install(new_fd, get_file(file)); in __receive_fd()
1209 return new_fd; in __receive_fd()
1212 int receive_fd_replace(int new_fd, struct file *file, unsigned int o_flags) in receive_fd_replace() argument
1219 error = replace_fd(new_fd, file, o_flags); in receive_fd_replace()
[all …]
/linux-6.6.21/drivers/infiniband/core/
Drdma_core.c457 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-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dselect_reuseport.c430 int new_fd = accept(srv_fd, NULL, 0); in do_test() local
432 RET_IF(new_fd == -1, "accept(srv_fd)", in do_test()
434 ev.data.u32, new_fd, errno); in do_test()
436 nread = recv(new_fd, &rcv_cmd, sizeof(rcv_cmd), MSG_DONTWAIT); in do_test()
442 close(new_fd); in do_test()
/linux-6.6.21/include/linux/
Dfile.h111 int receive_fd_replace(int new_fd, struct file *file, unsigned int o_flags);
/linux-6.6.21/fs/jffs2/
Dgc.c853 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-6.6.21/arch/um/os-Linux/skas/
Dprocess.c535 int new_fd = phys_mapping(uml_to_phys((void *)new_stack), &new_offset); in copy_context_skas0() local
543 .fd = new_fd, in copy_context_skas0()
/linux-6.6.21/kernel/
Dfork.c3388 struct files_struct *new_fd = NULL; in ksys_unshare() local
3429 err = unshare_fd(unshare_flags, NR_OPEN_MAX, &new_fd); in ksys_unshare()
3446 if (new_fs || new_fd || do_sysvsem || new_cred || new_nsproxy) { in ksys_unshare()
3475 if (new_fd) in ksys_unshare()
3476 swap(current->files, new_fd); in ksys_unshare()
3493 if (new_fd) in ksys_unshare()
3494 put_files_struct(new_fd); in ksys_unshare()
/linux-6.6.21/tools/lib/bpf/
Dlibbpf.c4418 int new_fd, err; in bpf_map__reuse_fd() local
4442 new_fd = fcntl(fd, F_DUPFD_CLOEXEC, 3); in bpf_map__reuse_fd()
4443 if (new_fd < 0) { in bpf_map__reuse_fd()
4455 map->fd = new_fd; in bpf_map__reuse_fd()
4470 close(new_fd); in bpf_map__reuse_fd()