/net/ |
D | socket.c | 131 static int sock_fasync(int fd, struct file *filp, int on); 398 int fd = get_unused_fd_flags(flags); in sock_map_fd() local 399 if (unlikely(fd < 0)) in sock_map_fd() 400 return fd; in sock_map_fd() 404 fd_install(fd, newfile); in sock_map_fd() 405 return fd; in sock_map_fd() 408 put_unused_fd(fd); in sock_map_fd() 435 struct socket *sockfd_lookup(int fd, int *err) in sockfd_lookup() argument 440 file = fget(fd); in sockfd_lookup() 453 static struct socket *sockfd_lookup_light(int fd, int *err, int *fput_needed) in sockfd_lookup_light() argument [all …]
|
D | compat.c | 396 COMPAT_SYSCALL_DEFINE5(setsockopt, int, fd, int, level, int, optname, in COMPAT_SYSCALL_DEFINE5() argument 400 struct socket *sock = sockfd_lookup(fd, &err); in COMPAT_SYSCALL_DEFINE5() 516 COMPAT_SYSCALL_DEFINE5(getsockopt, int, fd, int, level, int, optname, in COMPAT_SYSCALL_DEFINE5() argument 520 struct socket *sock = sockfd_lookup(fd, &err); in COMPAT_SYSCALL_DEFINE5() 747 COMPAT_SYSCALL_DEFINE3(sendmsg, int, fd, struct compat_msghdr __user *, msg, unsigned int, flags) in COMPAT_SYSCALL_DEFINE3() argument 749 return __sys_sendmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT); in COMPAT_SYSCALL_DEFINE3() 752 COMPAT_SYSCALL_DEFINE4(sendmmsg, int, fd, struct compat_mmsghdr __user *, mmsg, in COMPAT_SYSCALL_DEFINE4() argument 755 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, in COMPAT_SYSCALL_DEFINE4() 759 COMPAT_SYSCALL_DEFINE3(recvmsg, int, fd, struct compat_msghdr __user *, msg, unsigned int, flags) in COMPAT_SYSCALL_DEFINE3() argument 761 return __sys_recvmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT); in COMPAT_SYSCALL_DEFINE3() [all …]
|
/net/l2tp/ |
D | l2tp_ppp.c | 606 int fd; in pppol2tp_connect() local 632 fd = sp->pppol2tp.fd; in pppol2tp_connect() 641 fd = sp3->pppol2tp.fd; in pppol2tp_connect() 649 fd = sp6->pppol2tp.fd; in pppol2tp_connect() 658 fd = sp6->pppol2tp.fd; in pppol2tp_connect() 685 error = l2tp_tunnel_create(sock_net(sk), fd, ver, tunnel_id, peer_tunnel_id, &tcfg, &tunnel); in pppol2tp_connect() 899 sp.pppol2tp.fd = tunnel->fd; in pppol2tp_getname() 918 sp.pppol2tp.fd = tunnel->fd; in pppol2tp_getname() 937 sp.pppol2tp.fd = tunnel->fd; in pppol2tp_getname() 955 sp.pppol2tp.fd = tunnel->fd; in pppol2tp_getname()
|
D | l2tp_core.c | 188 if (tunnel->fd >= 0) { in l2tp_tunnel_sock_lookup() 193 sock = sockfd_lookup(tunnel->fd, &err); in l2tp_tunnel_sock_lookup() 211 if (tunnel->fd >= 0) { in l2tp_tunnel_sock_put() 1336 if (tunnel->fd >= 0) { in l2tp_tunnel_del_work() 1479 int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, str… in l2tp_tunnel_create() argument 1492 if (fd < 0) { in l2tp_tunnel_create() 1498 sock = sockfd_lookup(fd, &err); in l2tp_tunnel_create() 1501 tunnel_id, fd, err); in l2tp_tunnel_create() 1525 tunnel_id, fd, sk->sk_protocol, IPPROTO_UDP); in l2tp_tunnel_create() 1533 tunnel_id, fd, sk->sk_protocol, IPPROTO_L2TP); in l2tp_tunnel_create() [all …]
|
D | l2tp_core.h | 200 int fd; /* Parent fd, if tunnel socket member 254 int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id,
|
D | l2tp_netlink.c | 105 int fd; in l2tp_nl_cmd_tunnel_create() local 135 fd = -1; in l2tp_nl_cmd_tunnel_create() 137 fd = nla_get_u32(info->attrs[L2TP_ATTR_FD]); in l2tp_nl_cmd_tunnel_create() 186 ret = l2tp_tunnel_create(net, fd, proto_version, tunnel_id, in l2tp_nl_cmd_tunnel_create()
|
/net/core/ |
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 | net_namespace.c | 422 struct net *get_net_ns_by_fd(int fd) in get_net_ns_by_fd() argument 428 file = proc_ns_fget(fd); in get_net_ns_by_fd() 443 struct net *get_net_ns_by_fd(int fd) in get_net_ns_by_fd() argument
|
/net/sched/ |
D | sch_atm.c | 194 int fd, error, hdr_len; in atm_tc_change() local 222 fd = nla_get_u32(tb[TCA_ATM_FD]); in atm_tc_change() 223 pr_debug("atm_tc_change: fd %d\n", fd); in atm_tc_change() 241 sock = sockfd_lookup(fd, &error); in atm_tc_change()
|
/net/sunrpc/ |
D | svcsock.c | 1421 bool svc_alien_sock(struct net *net, int fd) in svc_alien_sock() argument 1424 struct socket *sock = sockfd_lookup(fd, &err); in svc_alien_sock() 1448 int svc_addsock(struct svc_serv *serv, const int fd, char *name_return, in svc_addsock() argument 1452 struct socket *so = sockfd_lookup(fd, &err); in svc_addsock()
|