diff options
Diffstat (limited to 'include/linux/net.h')
| -rw-r--r-- | include/linux/net.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/net.h b/include/linux/net.h index 47a3beb092cb..cecc941476a7 100644 --- a/include/linux/net.h +++ b/include/linux/net.h @@ -144,6 +144,9 @@ extern int sock_readv_writev(int type, struct inode * inode, struct file * file, const struct iovec * iov, long count, long size); extern int sock_map_fd(struct socket *sock); +extern struct socket *sockfd_lookup(int fd, int *err); +#define sockfd_put(sock) fput(sock->file) + extern int net_ratelimit(void); extern unsigned long net_random(void); extern void net_srandom(unsigned long); |
