diff options
| author | Maksim Krasnyanskiy <maxk@qualcomm.com> | 2002-10-15 02:08:26 -0700 |
|---|---|---|
| committer | Maksim Krasnyanskiy <maxk@qualcomm.com> | 2002-10-15 02:08:26 -0700 |
| commit | 08e3418bc1a6ff0c8cd9481a39e3ef080a31e908 (patch) | |
| tree | fc91f026b5931c350a52ec153fe0146e6a4397c4 /include | |
| parent | e0ff713fe09fc7ffd8427cb0222383d0111e663a (diff) | |
[NET]: Export sockfd_lookup.
Diffstat (limited to 'include')
| -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); |
