Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
08e3418b
Commit
08e3418b
authored
Oct 15, 2002
by
Maksim Krasnyanskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Export sockfd_lookup.
parent
e0ff713f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
include/linux/net.h
include/linux/net.h
+3
-0
net/netsyms.c
net/netsyms.c
+1
-0
net/socket.c
net/socket.c
+0
-5
No files found.
include/linux/net.h
View file @
08e3418b
...
@@ -144,6 +144,9 @@ extern int sock_readv_writev(int type, struct inode * inode, struct file * file,
...
@@ -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
);
const
struct
iovec
*
iov
,
long
count
,
long
size
);
extern
int
sock_map_fd
(
struct
socket
*
sock
);
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
int
net_ratelimit
(
void
);
extern
unsigned
long
net_random
(
void
);
extern
unsigned
long
net_random
(
void
);
extern
void
net_srandom
(
unsigned
long
);
extern
void
net_srandom
(
unsigned
long
);
...
...
net/netsyms.c
View file @
08e3418b
...
@@ -161,6 +161,7 @@ EXPORT_SYMBOL(put_cmsg);
...
@@ -161,6 +161,7 @@ EXPORT_SYMBOL(put_cmsg);
EXPORT_SYMBOL
(
sock_kmalloc
);
EXPORT_SYMBOL
(
sock_kmalloc
);
EXPORT_SYMBOL
(
sock_kfree_s
);
EXPORT_SYMBOL
(
sock_kfree_s
);
EXPORT_SYMBOL
(
sock_map_fd
);
EXPORT_SYMBOL
(
sock_map_fd
);
EXPORT_SYMBOL
(
sockfd_lookup
);
#ifdef CONFIG_FILTER
#ifdef CONFIG_FILTER
EXPORT_SYMBOL
(
sk_run_filter
);
EXPORT_SYMBOL
(
sk_run_filter
);
...
...
net/socket.c
View file @
08e3418b
...
@@ -447,11 +447,6 @@ struct socket *sockfd_lookup(int fd, int *err)
...
@@ -447,11 +447,6 @@ struct socket *sockfd_lookup(int fd, int *err)
return
sock
;
return
sock
;
}
}
extern
__inline__
void
sockfd_put
(
struct
socket
*
sock
)
{
fput
(
sock
->
file
);
}
/**
/**
* sock_alloc - allocate a socket
* sock_alloc - allocate a socket
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment