Re: add dynamic registration to procfs_syms.c

Uwe Bonnes (bon@elektron.ikp.physik.th-darmstadt.de)
Fri, 3 May 1996 11:45:52 +0200


>>>>> "Eyal" == Eyal Lebedinsky <eyal@fir.canberra.edu.au> writes:

Eyal> I asked before and saw no fix yet, could we please add:
Eyal> X(proc_register_dynamic), X(proc_root), to fs/procfs_syms.c
Eyal> exports list? Without it one cannot add /proc entries from
Eyal> loadable modules.

I had a look at that too, and I think there is more to do then add the
exports. /usr/src/linux/fs/proc/:get_root_array() has a switch statement
with all known entries in /proc.
switch (type) {
case PROC_LOADAVG:
return get_loadavg(page);
...

As a dynamic entered /proc/entry isn't in that list, we've got a problem.

But I am looking for it to, to add the registers of my SMC-SuperIO chip to
/proc. These registers need a special mechanisme to read out, doable
sensible only in kernel mode. And to write that device, writing that as a
module would handy ... :-)

Uwe Bonnes bon@elektron.ikp.physik.th-darmstadt.de

Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------