On 10/5/06, Jingping Lin <[EMAIL PROTECTED]> wrote:
Hello, Linux Kernel:
For a project I will work on for mobile, I am looking
into the IP stacks on Linux.
I have a few questions to bother you:
No bothering, so far, please see the below answers and try to check
them all before "bothering" again 8)
1. is "socket.c" the file handling the socket
interface?
One of them
2. which function is for opening a socket?
It looks like "sock_map_fd()" is the one for
opening/creating a socket? Is that correct?
The "Linux IP Stacks Commentary" book suggested the
function is "int socket()" which I didn't find in
"socket.c" though.
Perhaps it is suggesting that you create the socket in userspace using
the libc socket(2) function (see 'man socket') and then passing it
thru some ioctl if you want to use kernel_sendmsg (make tags ; vi -t
kernel_sendmsg) from kernelspace?
3. Do you have documentations discussing in details
the implemented socket interfaces?
Humm, I guess you can grep the sources for in kernel socket usage?
Thanks a lot in advance for your help,
Best Regards,
- Arnaldo
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html