Click to See Complete Forum and Search --> : proc file system and my problem


mnsharif
10-23-2002, 10:39 AM
hi

i typed a code from a tutorial relating to /proc filesystem (LKMPG newer version - code for chapter 6). It compiled successfully but it gave error when i did "insmod" it. and it said that

unresolved symbol : register_proc
unresolved symbol : unregister_proc

and i checked the /proc/ksyms there was not such method, is it the case that Linux 2.4.18-3 (the one i use) has changed the methods or API, I looked around the /proc/ksyms and there were a few methods named as
create_proc_entry
rpc_proc_register
svc_register


so, anybody, have any idea, please let me out of it


BWKAZ, where are you?? i think u will help


thanx a lot

nafees

bwkaz
10-23-2002, 02:01 PM
I've looked at this a tiny bit, but haven't come up with a way to do it.

The interface that his code is using (proc_register, etc.) looks like either it's deprecated, or it was never for actual use. The functions are still in linux/fs/proc/generic.c, but they're static and therefore can't be called from outside that file...

I really don't know what to try to fix it...

mnsharif
10-24-2002, 11:08 AM
ok

thanx for your help, anyway

how if i can make that "proc_register" function register to kernel so that it can be used outside that particular file.?????

i mean, those that are available are somehow registered so i can make this one of the exported functions.