sockfd_lookup

James R. Leu (jleu@chaos.coredcs.com)
Sat, 10 May 1997 13:46:56 -0500 (CDT)


I have a question about the declaration of the function sockfd_lookup().
Here is the declaration as taken from net/socket.c:

extern __inline struct socket *sockfd_lookup(int fd, struct file **pfile)

I though I knew ANSI C, but I have never seen this combination in a function
declaration.

1) What does this delcaration mean?
2) Is it acceptable to use this function outside of socket.c by declaring it as
the following instead?

__inline struct socket *sockfd_lookup(int fd, struct file **pfile)

Thank,
James

PS I'm using version 2.0.30 of the kernel

-- 
James R. Leu
Network Administrator
CORE Digital Communication Services
jleu@coredcs.com