summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaksim Krasnyanskiy <maxk@qualcomm.com>2002-10-15 02:08:26 -0700
committerMaksim Krasnyanskiy <maxk@qualcomm.com>2002-10-15 02:08:26 -0700
commit08e3418bc1a6ff0c8cd9481a39e3ef080a31e908 (patch)
treefc91f026b5931c350a52ec153fe0146e6a4397c4 /include
parente0ff713fe09fc7ffd8427cb0222383d0111e663a (diff)
[NET]: Export sockfd_lookup.
Diffstat (limited to 'include')
-rw-r--r--include/linux/net.h3
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);