Re: syscall from modules

Trond Myklebust (trond.myklebust@fys.uio.no)
25 Dec 2001 14:09:19 +0100


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

> Hi,
> I am trying to write a linux kernel module.I want
> to use sys_sendto,sys_recvfrom etc calls from the
> module.However these symbols are not present in 'ksyms'.One
> sluggish option is to modify socket.c ( which contains these
> function definitions ) to export the symbols. However this
> would require
> comiling the entire kernel.Is there a descent way to do this ??

Hi,

Just use sock_sendmsg() and sock_recvmsg() directly. They are both
exported in netsyms.c.

Cheers,
Trond
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/