Again:syscall from modules

Trond Myklebust
2001-12-25T18:38:00Z

>>>>> " " == Amber Palekar <amber_palekar@yahoo.com> writes:

> Hi,

>> Just use sock_sendmsg() and sock_recvmsg() directly. They are
>> both exported in netsyms.c.
> Is there any specific reason behind not exporting
> sys_sendto and sys_recvfrom ??

Why would you want to do that when you already have a better kernel
interface available?

The sys_sendto, sys_recvfrom references the sockets by file handle,
something which requires an extra lookup operation to map the file
handle to socket struct.
OTOH sock_sendmsg(), sock_recvmesg() provides exactly the same
functionality, but takes a pointer to the kernel socket structure as
the argument.

Cheers,
Trond