preferable way to control kernel module
Julian Elischer
julian at elischer.org
Thu Aug 11 21:16:13 GMT 2005
Dirk GOUDERS wrote:
> > >>Shouldn't that be no problem if he sets the offset parameter to
> > >>SYSCALL_MODULE to NO_SYSCALL (get the next free offset)?
> > >
> > >
> > > But then you have to communicate the syscall number out to your userland
> > > applications somehow, and the applications have to know how to invoke a
> > > syscall by hand (perhaps they could use the syscall() function, but still)
In the past, I've used a sysctl to communicate out the syscall number.
you only need to do the syscall once,
and it confirms to the program that the syscall is correctly installed.
More information about the freebsd-hackers
mailing list