| accessing global variables in loadable kernel modules i have a character array defined in /init/main.c as
char filepath[100];
i am accessing in /fs/open.c as
extern char filepath[100];
now i want to access this variable in my loadable kernel module.
i have declared it as
extern char filepath[100];
but when i give a make command i get the following error
ERROR: "filepath" [drivers/misc/chardevopen.ko] undefined!
plz help me..  |