Re: syscall from modules

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Tue Dec 25 2001 - 08:09:19 EST


>>>>> " " == 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/



This archive was generated by hypermail 2b29 : Mon Dec 31 2001 - 21:00:11 EST