/net/ |
D | compat.c | 343 static inline long __compat_sys_sendmsg(int fd, in __compat_sys_sendmsg() argument 347 return __sys_sendmsg(fd, (struct user_msghdr __user *)msg, in __compat_sys_sendmsg() 351 COMPAT_SYSCALL_DEFINE3(sendmsg, int, fd, struct compat_msghdr __user *, msg, in COMPAT_SYSCALL_DEFINE3() argument 354 return __compat_sys_sendmsg(fd, msg, flags); in COMPAT_SYSCALL_DEFINE3() 357 static inline long __compat_sys_sendmmsg(int fd, in __compat_sys_sendmmsg() argument 361 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in __compat_sys_sendmmsg() 365 COMPAT_SYSCALL_DEFINE4(sendmmsg, int, fd, struct compat_mmsghdr __user *, mmsg, in COMPAT_SYSCALL_DEFINE4() argument 368 return __compat_sys_sendmmsg(fd, mmsg, vlen, flags); in COMPAT_SYSCALL_DEFINE4() 371 static inline long __compat_sys_recvmsg(int fd, in __compat_sys_recvmsg() argument 375 return __sys_recvmsg(fd, (struct user_msghdr __user *)msg, in __compat_sys_recvmsg() [all …]
|
D | socket.c | 125 static int sock_fasync(int fd, struct file *filp, int on); 430 int fd = get_unused_fd_flags(flags); in sock_map_fd() local 431 if (unlikely(fd < 0)) { in sock_map_fd() 433 return fd; in sock_map_fd() 438 fd_install(fd, newfile); in sock_map_fd() 439 return fd; in sock_map_fd() 442 put_unused_fd(fd); in sock_map_fd() 477 struct socket *sockfd_lookup(int fd, int *err) in sockfd_lookup() argument 482 file = fget(fd); in sockfd_lookup() 495 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 | 93 unsigned int fd = 0; in update_classid_task() local 97 fd = iterate_fd(p->files, fd, update_classid_sock, &ctx); in update_classid_task() 100 } while (fd); in update_classid_task()
|
D | bpf_sk_storage.c | 116 int fd, err; in bpf_fd_sk_storage_lookup_elem() local 118 fd = *(int *)key; in bpf_fd_sk_storage_lookup_elem() 119 sock = sockfd_lookup(fd, &err); in bpf_fd_sk_storage_lookup_elem() 134 int fd, err; in bpf_fd_sk_storage_update_elem() local 136 fd = *(int *)key; in bpf_fd_sk_storage_update_elem() 137 sock = sockfd_lookup(fd, &err); in bpf_fd_sk_storage_update_elem() 152 int fd, err; in bpf_fd_sk_storage_delete_elem() local 154 fd = *(int *)key; in bpf_fd_sk_storage_delete_elem() 155 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 | 337 u32 fd; in bpf_parse_prog() local 351 fd = nla_get_u32(tb[LWT_BPF_PROG_FD]); in bpf_parse_prog() 352 p = bpf_prog_get_type(fd, type); in bpf_parse_prog()
|
D | net_namespace.c | 669 struct net *get_net_ns_by_fd(int fd) in get_net_ns_by_fd() argument 675 file = proc_ns_fget(fd); in get_net_ns_by_fd() 690 struct net *get_net_ns_by_fd(int fd) in get_net_ns_by_fd() argument
|
D | sock_map.c | 71 struct fd f; in sock_map_get_from_fd() 91 struct fd f; in sock_map_prog_detach()
|
D | dev.c | 9409 int err, fd; in bpf_xdp_link_attach() local 9443 fd = bpf_link_settle(&link_primer); in bpf_xdp_link_attach() 9446 return fd; in bpf_xdp_link_attach() 9467 int fd, int expected_fd, u32 flags) in dev_change_xdp_fd() argument 9475 if (fd >= 0) { in dev_change_xdp_fd() 9476 new_prog = bpf_prog_get_type_dev(fd, BPF_PROG_TYPE_XDP, in dev_change_xdp_fd()
|
/net/l2tp/ |
D | l2tp_ppp.c | 556 int fd; member 575 info->fd = sa_v2in4->pppol2tp.fd; in pppol2tp_sockaddr_get_info() 591 info->fd = sa_v3in4->pppol2tp.fd; in pppol2tp_sockaddr_get_info() 607 info->fd = sa_v2in6->pppol2tp.fd; in pppol2tp_sockaddr_get_info() 623 info->fd = sa_v3in6->pppol2tp.fd; in pppol2tp_sockaddr_get_info() 678 if (info->fd < 0) in pppol2tp_tunnel_get() 681 error = l2tp_tunnel_create(info->fd, in pppol2tp_tunnel_get() 936 sp.pppol2tp.fd = tunnel->fd; in pppol2tp_getname() 954 sp.pppol2tp.fd = tunnel->fd; in pppol2tp_getname() 972 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 | 1054 if (tunnel->fd >= 0 && sk->sk_state != TCP_ESTABLISHED) { in l2tp_xmit_core() 1252 if (tunnel->fd < 0) { in l2tp_tunnel_del_work() 1390 int l2tp_tunnel_create(int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, in l2tp_tunnel_create() argument 1418 tunnel->fd = fd; in l2tp_tunnel_create() 1472 if (tunnel->fd < 0) { in l2tp_tunnel_register() 1479 sock = sockfd_lookup(tunnel->fd, &ret); in l2tp_tunnel_register() 1519 if (tunnel->fd >= 0) in l2tp_tunnel_register() 1528 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 | 739 if (clnt->trans_opts.fd.rfd != ~0) in p9_fd_show_options() 740 seq_printf(m, ",rfd=%u", clnt->trans_opts.fd.rfd); in p9_fd_show_options() 741 if (clnt->trans_opts.fd.wfd != ~0) in p9_fd_show_options() 742 seq_printf(m, ",wfd=%u", clnt->trans_opts.fd.wfd); in p9_fd_show_options() 1079 client->trans_opts.fd.rfd = opts.rfd; in p9_fd_create() 1080 client->trans_opts.fd.wfd = opts.wfd; in p9_fd_create()
|
/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()
|
D | xsk.c | 642 static struct socket *xsk_lookup_xsk_from_fd(int fd) in xsk_lookup_xsk_from_fd() argument 647 sock = sockfd_lookup(fd, &err); in xsk_lookup_xsk_from_fd()
|
/net/kcm/ |
D | kcmsock.c | 1443 csock = sockfd_lookup(info->fd, &err); in kcm_attach_ioctl() 1572 csock = sockfd_lookup(info->fd, &err); in kcm_unattach_ioctl() 1677 info.fd = get_unused_fd_flags(0); in kcm_ioctl() 1678 if (unlikely(info.fd < 0)) in kcm_ioctl() 1679 return info.fd; in kcm_ioctl() 1683 put_unused_fd(info.fd); in kcm_ioctl() 1688 put_unused_fd(info.fd); in kcm_ioctl() 1692 fd_install(info.fd, file); in kcm_ioctl()
|
/net/ipv6/ |
D | seg6_local.c | 844 u32 fd; in parse_nla_bpf() local 859 fd = nla_get_u32(tb[SEG6_LOCAL_BPF_PROG]); in parse_nla_bpf() 860 p = bpf_prog_get_type(fd, BPF_PROG_TYPE_LWT_SEG6LOCAL); in parse_nla_bpf()
|
/net/sunrpc/ |
D | svcsock.c | 1345 bool svc_alien_sock(struct net *net, int fd) in svc_alien_sock() argument 1348 struct socket *sock = sockfd_lookup(fd, &err); in svc_alien_sock() 1373 int svc_addsock(struct svc_serv *serv, const int fd, char *name_return, in svc_addsock() argument 1377 struct socket *so = sockfd_lookup(fd, &err); in svc_addsock()
|
/net/unix/ |
D | af_unix.c | 2646 int fd; in unix_open_file() local 2660 fd = get_unused_fd_flags(O_CLOEXEC); in unix_open_file() 2661 if (fd < 0) in unix_open_file() 2666 put_unused_fd(fd); in unix_open_file() 2667 fd = PTR_ERR(f); in unix_open_file() 2671 fd_install(fd, f); in unix_open_file() 2675 return fd; in unix_open_file()
|
/net/mac80211/ |
D | cfg.c | 864 struct ieee80211_fils_discovery *fd; in ieee80211_set_fils_discovery() local 869 fd = &sdata->vif.bss_conf.fils_discovery; in ieee80211_set_fils_discovery() 870 fd->min_interval = params->min_interval; in ieee80211_set_fils_discovery() 871 fd->max_interval = params->max_interval; in ieee80211_set_fils_discovery()
|
/net/packet/ |
D | af_packet.c | 1579 u32 fd; in fanout_set_data_ebpf() local 1583 if (len != sizeof(fd)) in fanout_set_data_ebpf() 1585 if (copy_from_sockptr(&fd, data, len)) in fanout_set_data_ebpf() 1588 new = bpf_prog_get_type(fd, BPF_PROG_TYPE_SOCKET_FILTER); in fanout_set_data_ebpf()
|
/net/ieee802154/ |
D | nl802154.c | 1264 u32 fd = nla_get_u32(info->attrs[NL802154_ATTR_NETNS_FD]); in nl802154_wpan_phy_netns() local 1266 net = get_net_ns_by_fd(fd); in nl802154_wpan_phy_netns()
|