aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/net.h
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /include/linux/net.h
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'include/linux/net.h')
-rw-r--r--include/linux/net.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/linux/net.h b/include/linux/net.h
index dee0b11a8759..b29923006b11 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -42,6 +42,7 @@
42#define SYS_RECVMSG 17 /* sys_recvmsg(2) */ 42#define SYS_RECVMSG 17 /* sys_recvmsg(2) */
43#define SYS_ACCEPT4 18 /* sys_accept4(2) */ 43#define SYS_ACCEPT4 18 /* sys_accept4(2) */
44#define SYS_RECVMMSG 19 /* sys_recvmmsg(2) */ 44#define SYS_RECVMMSG 19 /* sys_recvmmsg(2) */
45#define SYS_SENDMMSG 20 /* sys_sendmmsg(2) */
45 46
46typedef enum { 47typedef enum {
47 SS_FREE = 0, /* not allocated */ 48 SS_FREE = 0, /* not allocated */
@@ -118,6 +119,7 @@ enum sock_shutdown_cmd {
118}; 119};
119 120
120struct socket_wq { 121struct socket_wq {
122 /* Note: wait MUST be first field of socket_wq */
121 wait_queue_head_t wait; 123 wait_queue_head_t wait;
122 struct fasync_struct *fasync_list; 124 struct fasync_struct *fasync_list;
123 struct rcu_head rcu; 125 struct rcu_head rcu;
@@ -142,7 +144,7 @@ struct socket {
142 144
143 unsigned long flags; 145 unsigned long flags;
144 146
145 struct socket_wq *wq; 147 struct socket_wq __rcu *wq;
146 148
147 struct file *file; 149 struct file *file;
148 struct sock *sk; 150 struct sock *sk;
@@ -229,6 +231,8 @@ enum {
229extern int sock_wake_async(struct socket *sk, int how, int band); 231extern int sock_wake_async(struct socket *sk, int how, int band);
230extern int sock_register(const struct net_proto_family *fam); 232extern int sock_register(const struct net_proto_family *fam);
231extern void sock_unregister(int family); 233extern void sock_unregister(int family);
234extern int __sock_create(struct net *net, int family, int type, int proto,
235 struct socket **res, int kern);
232extern int sock_create(int family, int type, int proto, 236extern int sock_create(int family, int type, int proto,
233 struct socket **res); 237 struct socket **res);
234extern int sock_create_kern(int family, int type, int proto, 238extern int sock_create_kern(int family, int type, int proto,
@@ -285,11 +289,5 @@ extern int kernel_sock_shutdown(struct socket *sock,
285 MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \ 289 MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \
286 "-type-" __stringify(type)) 290 "-type-" __stringify(type))
287 291
288#ifdef CONFIG_SYSCTL
289#include <linux/sysctl.h>
290#include <linux/ratelimit.h>
291extern struct ratelimit_state net_ratelimit_state;
292#endif
293
294#endif /* __KERNEL__ */ 292#endif /* __KERNEL__ */
295#endif /* _LINUX_NET_H */ 293#endif /* _LINUX_NET_H */