Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 26) sorted by relevance

12

/net/
Dcompat.c343 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 …]
Dsocket.c125 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/
Dnetclassid_cgroup.c93 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()
Dbpf_sk_storage.c116 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()
Dscm.c102 int fd = fdp[i]; in scm_fp_copy() local
105 if (fd < 0 || !(file = fget_raw(fd))) in scm_fp_copy()
Dlwt_bpf.c337 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()
Dnet_namespace.c669 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
Dsock_map.c71 struct fd f; in sock_map_get_from_fd()
91 struct fd f; in sock_map_prog_detach()
Ddev.c9409 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/
Dl2tp_ppp.c556 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 …]
Dtrace.h56 __field(int, fd)
64 __entry->fd = tunnel->fd;
72 __entry->fd > 0 ? "managed" : "unmanaged",
77 __entry->fd)
Dl2tp_core.c1054 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()
Dl2tp_core.h183 int fd; /* parent fd, if tunnel socket was created member
239 int l2tp_tunnel_create(int fd, int version, u32 tunnel_id,
Dl2tp_netlink.c189 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/
Dxt_bpf.c43 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/
Dtrans_fd.c739 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/
Dxskmap.c167 u32 i = *(u32 *)key, fd = *(u32 *)value; in xsk_map_update_elem() local
177 sock = sockfd_lookup(fd, &err); in xsk_map_update_elem()
Dxsk.c642 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/
Dkcmsock.c1443 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/
Dseg6_local.c844 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/
Dsvcsock.c1345 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/
Daf_unix.c2646 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/
Dcfg.c864 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/
Daf_packet.c1579 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/
Dnl802154.c1264 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()

12