/net/handshake/ |
D | netlink.c | 96 int class, fd, err; in handshake_nl_accept_doit() local 113 fd = get_unused_fd_flags(O_CLOEXEC); in handshake_nl_accept_doit() 114 if (fd < 0) { in handshake_nl_accept_doit() 115 err = fd; in handshake_nl_accept_doit() 119 err = req->hr_proto->hp_accept(req, info, fd); in handshake_nl_accept_doit() 121 put_unused_fd(fd); in handshake_nl_accept_doit() 125 fd_install(fd, get_file(sock->file)); in handshake_nl_accept_doit() 127 trace_handshake_cmd_accept(net, req, req->hr_sk, fd); in handshake_nl_accept_doit() 142 int fd, status, err; in handshake_nl_done_doit() local 146 fd = nla_get_u32(info->attrs[HANDSHAKE_A_DONE_SOCKFD]); in handshake_nl_done_doit() [all …]
|
D | handshake.h | 58 struct genl_info *info, int fd);
|
D | tlshd.c | 197 struct genl_info *info, int fd) in tls_handshake_accept() argument 217 ret = nla_put_u32(msg, HANDSHAKE_A_ACCEPT_SOCKFD, fd); in tls_handshake_accept()
|
D | handshake-test.c | 23 int fd) in test_accept_func() argument
|
/net/ |
D | compat.c | 342 static inline long __compat_sys_sendmsg(int fd, in __compat_sys_sendmsg() argument 346 return __sys_sendmsg(fd, (struct user_msghdr __user *)msg, in __compat_sys_sendmsg() 350 COMPAT_SYSCALL_DEFINE3(sendmsg, int, fd, struct compat_msghdr __user *, msg, in COMPAT_SYSCALL_DEFINE3() argument 353 return __compat_sys_sendmsg(fd, msg, flags); in COMPAT_SYSCALL_DEFINE3() 356 static inline long __compat_sys_sendmmsg(int fd, in __compat_sys_sendmmsg() argument 360 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in __compat_sys_sendmmsg() 364 COMPAT_SYSCALL_DEFINE4(sendmmsg, int, fd, struct compat_mmsghdr __user *, mmsg, in COMPAT_SYSCALL_DEFINE4() argument 367 return __compat_sys_sendmmsg(fd, mmsg, vlen, flags); in COMPAT_SYSCALL_DEFINE4() 370 static inline long __compat_sys_recvmsg(int fd, in __compat_sys_recvmsg() argument 374 return __sys_recvmsg(fd, (struct user_msghdr __user *)msg, in __compat_sys_recvmsg() [all …]
|
D | socket.c | 131 static int sock_fasync(int fd, struct file *filp, int on); 489 int fd = get_unused_fd_flags(flags); in sock_map_fd() local 490 if (unlikely(fd < 0)) { in sock_map_fd() 492 return fd; in sock_map_fd() 497 fd_install(fd, newfile); in sock_map_fd() 498 return fd; in sock_map_fd() 501 put_unused_fd(fd); in sock_map_fd() 534 struct socket *sockfd_lookup(int fd, int *err) in sockfd_lookup() argument 539 file = fget(fd); in sockfd_lookup() 554 static struct socket *sockfd_lookup_light(int fd, int *err, int *fput_needed) in sockfd_lookup_light() argument [all …]
|
/net/core/ |
D | netclassid_cgroup.c | 89 unsigned int fd = 0; in update_classid_task() local 93 fd = iterate_fd(p->files, fd, update_classid_sock, &ctx); in update_classid_task() 96 } while (fd); in update_classid_task()
|
D | bpf_sk_storage.c | 84 int fd, err; in bpf_fd_sk_storage_lookup_elem() local 86 fd = *(int *)key; in bpf_fd_sk_storage_lookup_elem() 87 sock = sockfd_lookup(fd, &err); in bpf_fd_sk_storage_lookup_elem() 102 int fd, err; in bpf_fd_sk_storage_update_elem() local 104 fd = *(int *)key; in bpf_fd_sk_storage_update_elem() 105 sock = sockfd_lookup(fd, &err); in bpf_fd_sk_storage_update_elem() 120 int fd, err; in bpf_fd_sk_storage_delete_elem() local 122 fd = *(int *)key; in bpf_fd_sk_storage_delete_elem() 123 sock = sockfd_lookup(fd, &err); in bpf_fd_sk_storage_delete_elem()
|
D | scm.c | 102 int fd = fdp[i]; in scm_fp_copy() local 105 if (fd < 0 || !(file = fget_raw(fd))) in scm_fp_copy()
|
D | lwt_bpf.c | 338 u32 fd; in bpf_parse_prog() local 352 fd = nla_get_u32(tb[LWT_BPF_PROG_FD]); in bpf_parse_prog() 353 p = bpf_prog_get_type(fd, type); in bpf_parse_prog()
|
D | dev.h | 90 int fd, int expected_fd, u32 flags);
|
D | net_namespace.c | 686 struct net *get_net_ns_by_fd(int fd) in get_net_ns_by_fd() argument 688 struct fd f = fdget(fd); in get_net_ns_by_fd()
|
D | sock_map.c | 64 struct fd f; in sock_map_get_from_fd() 84 struct fd f; in sock_map_prog_detach() 1516 struct fd f; in sock_map_bpf_prog_query()
|
/net/l2tp/ |
D | l2tp_ppp.c | 555 int fd; member 574 info->fd = sa_v2in4->pppol2tp.fd; in pppol2tp_sockaddr_get_info() 590 info->fd = sa_v3in4->pppol2tp.fd; in pppol2tp_sockaddr_get_info() 606 info->fd = sa_v2in6->pppol2tp.fd; in pppol2tp_sockaddr_get_info() 622 info->fd = sa_v3in6->pppol2tp.fd; in pppol2tp_sockaddr_get_info() 677 if (info->fd < 0) in pppol2tp_tunnel_get() 680 error = l2tp_tunnel_create(info->fd, in pppol2tp_tunnel_get() 935 sp.pppol2tp.fd = tunnel->fd; in pppol2tp_getname() 953 sp.pppol2tp.fd = tunnel->fd; in pppol2tp_getname() 971 sp.pppol2tp.fd = tunnel->fd; in pppol2tp_getname() [all …]
|
D | trace.h | 56 __field(int, fd) 64 __entry->fd = tunnel->fd; 72 __entry->fd > 0 ? "managed" : "unmanaged", 77 __entry->fd)
|
D | l2tp_core.c | 1065 if (tunnel->fd >= 0 && sk->sk_state != TCP_ESTABLISHED) { in l2tp_xmit_core() 1261 if (tunnel->fd < 0) { in l2tp_tunnel_del_work() 1399 int l2tp_tunnel_create(int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, in l2tp_tunnel_create() argument 1427 tunnel->fd = fd; in l2tp_tunnel_create() 1481 if (tunnel->fd < 0) { in l2tp_tunnel_register() 1488 sock = sockfd_lookup(tunnel->fd, &ret); in l2tp_tunnel_register() 1528 if (tunnel->fd >= 0) in l2tp_tunnel_register() 1537 if (tunnel->fd < 0) in l2tp_tunnel_register()
|
D | l2tp_core.h | 183 int fd; /* parent fd, if tunnel socket was created member 239 int l2tp_tunnel_create(int fd, int version, u32 tunnel_id,
|
D | l2tp_netlink.c | 189 int fd = -1; in l2tp_nl_cmd_tunnel_create() local 225 fd = nla_get_u32(attrs[L2TP_ATTR_FD]); in l2tp_nl_cmd_tunnel_create() 236 ret = l2tp_tunnel_create(fd, proto_version, tunnel_id, in l2tp_nl_cmd_tunnel_create()
|
/net/netfilter/ |
D | xt_bpf.c | 43 static int __bpf_mt_check_fd(int fd, struct bpf_prog **ret) in __bpf_mt_check_fd() argument 47 prog = bpf_prog_get_type(fd, BPF_PROG_TYPE_SOCKET_FILTER); in __bpf_mt_check_fd() 82 return __bpf_mt_check_fd(info->fd, &info->filter); in bpf_mt_check_v1()
|
/net/9p/ |
D | trans_fd.c | 748 if (clnt->trans_opts.fd.rfd != ~0) in p9_fd_show_options() 749 seq_printf(m, ",rfd=%u", clnt->trans_opts.fd.rfd); in p9_fd_show_options() 750 if (clnt->trans_opts.fd.wfd != ~0) in p9_fd_show_options() 751 seq_printf(m, ",wfd=%u", clnt->trans_opts.fd.wfd); in p9_fd_show_options() 1091 client->trans_opts.fd.rfd = opts.rfd; in p9_fd_create() 1092 client->trans_opts.fd.wfd = opts.wfd; in p9_fd_create()
|
/net/kcm/ |
D | kcmsock.c | 1325 csock = sockfd_lookup(info->fd, &err); in kcm_attach_ioctl() 1454 csock = sockfd_lookup(info->fd, &err); in kcm_unattach_ioctl() 1559 info.fd = get_unused_fd_flags(0); in kcm_ioctl() 1560 if (unlikely(info.fd < 0)) in kcm_ioctl() 1561 return info.fd; in kcm_ioctl() 1565 put_unused_fd(info.fd); in kcm_ioctl() 1570 put_unused_fd(info.fd); in kcm_ioctl() 1574 fd_install(info.fd, file); in kcm_ioctl()
|
/net/xdp/ |
D | xskmap.c | 167 u32 i = *(u32 *)key, fd = *(u32 *)value; in xsk_map_update_elem() local 177 sock = sockfd_lookup(fd, &err); in xsk_map_update_elem()
|
/net/unix/ |
D | af_unix.c | 3029 int fd; in unix_open_file() local 3043 fd = get_unused_fd_flags(O_CLOEXEC); in unix_open_file() 3044 if (fd < 0) in unix_open_file() 3049 put_unused_fd(fd); in unix_open_file() 3050 fd = PTR_ERR(f); in unix_open_file() 3054 fd_install(fd, f); in unix_open_file() 3058 return fd; in unix_open_file()
|
/net/ipv6/ |
D | seg6_local.c | 1897 u32 fd; in parse_nla_bpf() local 1912 fd = nla_get_u32(tb[SEG6_LOCAL_BPF_PROG]); in parse_nla_bpf() 1913 p = bpf_prog_get_type(fd, BPF_PROG_TYPE_LWT_SEG6LOCAL); in parse_nla_bpf()
|
/net/sunrpc/ |
D | svcsock.c | 1458 int svc_addsock(struct svc_serv *serv, struct net *net, const int fd, in svc_addsock() argument 1462 struct socket *so = sockfd_lookup(fd, &err); in svc_addsock()
|