diff options
Diffstat (limited to 'include/linux/net.h')
-rw-r--r-- | include/linux/net.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/net.h b/include/linux/net.h index 596131ea46f4..c414d90e647b 100644 --- a/include/linux/net.h +++ b/include/linux/net.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <asm/socket.h> | 22 | #include <asm/socket.h> |
23 | 23 | ||
24 | struct poll_table_struct; | 24 | struct poll_table_struct; |
25 | struct pipe_inode_info; | ||
25 | struct inode; | 26 | struct inode; |
26 | struct net; | 27 | struct net; |
27 | 28 | ||
@@ -172,6 +173,8 @@ struct proto_ops { | |||
172 | struct vm_area_struct * vma); | 173 | struct vm_area_struct * vma); |
173 | ssize_t (*sendpage) (struct socket *sock, struct page *page, | 174 | ssize_t (*sendpage) (struct socket *sock, struct page *page, |
174 | int offset, size_t size, int flags); | 175 | int offset, size_t size, int flags); |
176 | ssize_t (*splice_read)(struct socket *sock, loff_t *ppos, | ||
177 | struct pipe_inode_info *pipe, size_t len, unsigned int flags); | ||
175 | }; | 178 | }; |
176 | 179 | ||
177 | struct net_proto_family { | 180 | struct net_proto_family { |
@@ -183,6 +186,13 @@ struct net_proto_family { | |||
183 | struct iovec; | 186 | struct iovec; |
184 | struct kvec; | 187 | struct kvec; |
185 | 188 | ||
189 | enum { | ||
190 | SOCK_WAKE_IO, | ||
191 | SOCK_WAKE_WAITD, | ||
192 | SOCK_WAKE_SPACE, | ||
193 | SOCK_WAKE_URG, | ||
194 | }; | ||
195 | |||
186 | extern int sock_wake_async(struct socket *sk, int how, int band); | 196 | extern int sock_wake_async(struct socket *sk, int how, int band); |
187 | extern int sock_register(const struct net_proto_family *fam); | 197 | extern int sock_register(const struct net_proto_family *fam); |
188 | extern void sock_unregister(int family); | 198 | extern void sock_unregister(int family); |
@@ -327,7 +337,6 @@ static const struct proto_ops name##_ops = { \ | |||
327 | 337 | ||
328 | #ifdef CONFIG_SYSCTL | 338 | #ifdef CONFIG_SYSCTL |
329 | #include <linux/sysctl.h> | 339 | #include <linux/sysctl.h> |
330 | extern ctl_table net_table[]; | ||
331 | extern int net_msg_cost; | 340 | extern int net_msg_cost; |
332 | extern int net_msg_burst; | 341 | extern int net_msg_burst; |
333 | #endif | 342 | #endif |