|
LKM Global Data
Hi:
I have been trying to define a Global Char variable array that would
be used by different functions within the same LKM
char * char_array[100]
Initialization of the array works. But when I come back to it by another
LKM function (after executing the main-line Kernel), I find that the
initialization has been over-written !
The main-line kernel calls the LKM by call-back functions that are initialized by the LKM init ... btw. One of these functions initializes the char_array, another uses it ...that is the basic idea.
Is the LKM stack /memory area fair game (i.e. used by the main-line kernel) once the LKM that initialized the char_array returns ?
Any ideas please ? Thanks
|