[OpenAFS-devel] sys_call_table on mips

Derrick J Brashear shadow@dementia.org
Wed, 17 Sep 2003 12:17:57 -0400 (EDT)


On Tue, 16 Sep 2003, Ryan Underwood wrote:

> > > Sooo.. without modversions and without sys_call_table, what is necessary
> > > to set up the kernel hooks?

> Hm, I see no sys_(mumble)s exported like on other archs.  Here is the
> list of symbols exported by the general mips code.

So that cheat won't work.

> > Or, make the address a module parameter to be passed in.
>
> Perhaps given the circumstances, and the fact that new mips kernels are
> rarely released, this might end up being the best option?

Possibly

There's a 4th possibility and that's to make a hook like sys_nfsservctl
uses (used?) which has a stub that exports a symbol, and when the afs
module loads, you make it write the afs syscall's address into that
variable, which now not being 0 is called from the stub. When you unload
the module, 0 it again.