• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/unix/

Lines Matching defs:net

50  *	     				for all net proto families now (2.5.69+)
97 #include <linux/net.h>
104 #include <net/net_namespace.h>
105 #include <net/sock.h>
106 #include <net/tcp_states.h>
107 #include <net/af_unix.h>
110 #include <net/scm.h>
115 #include <net/checksum.h>
248 static struct sock *__unix_find_socket_byname(struct net *net,
258 if (!net_eq(sock_net(s), net))
270 static inline struct sock *unix_find_socket_byname(struct net *net,
278 s = __unix_find_socket_byname(net, sunname, len, type, hash);
594 static struct sock *unix_create1(struct net *net, struct socket *sock)
603 sk = sk_alloc(net, PF_UNIX, GFP_KERNEL, &unix_proto);
612 sk->sk_max_ack_backlog = net->unx.sysctl_max_dgram_qlen;
634 static int unix_create(struct net *net, struct socket *sock, int protocol,
662 return unix_create1(net, sock) ? 0 : -ENOMEM;
680 struct net *net = sock_net(sk);
708 if (__unix_find_socket_byname(net, addr->name, addr->len, sock->type,
736 static struct sock *unix_find_other(struct net *net,
773 u = unix_find_socket_byname(net, sunname, len, type, hash);
795 struct net *net = sock_net(sk);
878 if (__unix_find_socket_byname(net, sunaddr, addr_len,
944 struct net *net = sock_net(sk);
961 other = unix_find_other(net, sunaddr, alen, sock->type, hash, &err);
1040 struct net *net = sock_net(sk);
1080 other = unix_find_other(net, sunaddr, addr_len, sk->sk_type, hash, &err);
1394 struct net *net = sock_net(sk);
1461 other = unix_find_other(net, sunaddr, namelen, sk->sk_type,
2277 static int __net_init unix_net_init(struct net *net)
2281 net->unx.sysctl_max_dgram_qlen = 10;
2282 if (unix_sysctl_register(net))
2286 if (!proc_net_fops_create(net, "unix", 0, &unix_seq_fops)) {
2287 unix_sysctl_unregister(net);
2296 static void __net_exit unix_net_exit(struct net *net)
2298 unix_sysctl_unregister(net);
2299 proc_net_remove(net, "unix");