Commit 08e3418b authored by Maksim Krasnyanskiy's avatar Maksim Krasnyanskiy

[NET]: Export sockfd_lookup.

parent e0ff713f
......@@ -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);
......
......@@ -161,6 +161,7 @@ EXPORT_SYMBOL(put_cmsg);
EXPORT_SYMBOL(sock_kmalloc);
EXPORT_SYMBOL(sock_kfree_s);
EXPORT_SYMBOL(sock_map_fd);
EXPORT_SYMBOL(sockfd_lookup);
#ifdef CONFIG_FILTER
EXPORT_SYMBOL(sk_run_filter);
......
......@@ -447,11 +447,6 @@ struct socket *sockfd_lookup(int fd, int *err)
return sock;
}
extern __inline__ void sockfd_put(struct socket *sock)
{
fput(sock->file);
}
/**
* sock_alloc - allocate a socket
*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment