/net/core/ |
H A D | scm.c | 102 int fd = fdp[i]; local 105 if (fd < 0 || !(file = fget_raw(fd)))
|
H A D | net_namespace.c | 338 struct net *get_net_ns_by_fd(int fd) argument 344 file = proc_ns_fget(fd); 359 struct net *get_net_ns_by_fd(int fd) argument
|
/net/l2tp/ |
H A D | l2tp_netlink.c | 105 int fd; local 135 fd = -1; 137 fd = nla_get_u32(info->attrs[L2TP_ATTR_FD]); 179 ret = l2tp_tunnel_create(net, fd, proto_version, tunnel_id,
|
H A D | l2tp_core.h | 190 int fd; /* Parent fd, if tunnel socket member in struct:l2tp_tunnel 241 extern int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct l2tp_tunnel **tunnelp);
|
H A D | l2tp_core.c | 183 if (tunnel->fd >= 0) { 185 * of closing it. Look the socket up using the fd to ensure 188 sock = sockfd_lookup(tunnel->fd, &err); 207 if (tunnel->fd >= 0) { 1391 if (tunnel->fd >= 0) { 1560 int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct l2tp_tunnel **tunnelp) argument 1569 /* Get the tunnel socket from the fd, which was opened by 1573 if (fd < 0) { 1579 sock = sockfd_lookup(fd, &err); 1581 pr_err("tunl %u: sockfd_lookup(fd [all...] |
H A D | l2tp_ppp.c | 37 * int fd; 40 * fd = socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OL2TP); 44 * sax.pppol2tp.fd = tunnel_fd; // bound UDP socket 53 * session_fd = connect(fd, (struct sockaddr *)&sax, sizeof(sax)); 604 int fd; local 630 fd = sp->pppol2tp.fd; 639 fd = sp3->pppol2tp.fd; 647 fd [all...] |
/net/sched/ |
H A D | sch_atm.c | 194 int fd, error, hdr_len; local 222 fd = nla_get_u32(tb[TCA_ATM_FD]); 223 pr_debug("atm_tc_change: fd %d\n", fd); 241 sock = sockfd_lookup(fd, &error);
|
/net/ |
H A D | compat.c | 384 asmlinkage long compat_sys_setsockopt(int fd, int level, int optname, argument 388 struct socket *sock = sockfd_lookup(fd, &err); 504 asmlinkage long compat_sys_getsockopt(int fd, int level, int optname, argument 508 struct socket *sock = sockfd_lookup(fd, &err); 735 asmlinkage long compat_sys_sendmsg(int fd, struct compat_msghdr __user *msg, unsigned int flags) argument 739 return __sys_sendmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT); 742 asmlinkage long compat_sys_sendmmsg(int fd, struct compat_mmsghdr __user *mmsg, argument 747 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, 751 asmlinkage long compat_sys_recvmsg(int fd, struct compat_msghdr __user *msg, unsigned int flags) argument 755 return __sys_recvmsg(fd, (struc 758 compat_sys_recv(int fd, void __user *buf, size_t len, unsigned int flags) argument 763 compat_sys_recvfrom(int fd, void __user *buf, size_t len, unsigned int flags, struct sockaddr __user *addr, int __user *addrlen) argument 770 compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg, unsigned int vlen, unsigned int flags, struct compat_timespec __user *timeout) argument [all...] |
H A D | socket.c | 123 static int sock_fasync(int fd, struct file *filp, int on); 335 * These functions create file structures and maps them to fd space 343 * In any case returned fd MAY BE not valid! 345 * with shared fd spaces, we cannot solve it inside kernel, 389 int fd = get_unused_fd_flags(flags); local 390 if (unlikely(fd < 0)) 391 return fd; 395 fd_install(fd, newfile); 396 return fd; 399 put_unused_fd(fd); 426 sockfd_lookup(int fd, int *err) argument 444 sockfd_lookup_light(int fd, int *err, int *fput_needed) argument 1178 sock_fasync(int fd, struct file *filp, int on) argument 1857 sys_recv(int fd, void __user *ubuf, size_t size, unsigned int flags) argument 2074 __sys_sendmsg(int fd, struct msghdr __user *msg, unsigned flags) argument 2102 __sys_sendmmsg(int fd, struct mmsghdr __user *mmsg, unsigned int vlen, unsigned int flags) argument 2258 __sys_recvmsg(int fd, struct msghdr __user *msg, unsigned flags) argument 2287 __sys_recvmmsg(int fd, struct mmsghdr __user *mmsg, unsigned int vlen, unsigned int flags, struct timespec *timeout) argument [all...] |
/net/sunrpc/ |
H A D | svcsock.c | 1394 * @fd: file descriptor of the new listener 1402 int svc_addsock(struct svc_serv *serv, const int fd, char *name_return, argument 1406 struct socket *so = sockfd_lookup(fd, &err);
|