LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   add global variable in linux kernel sourcecode (https://www.linuxquestions.org/questions/linux-kernel-70/add-global-variable-in-linux-kernel-sourcecode-613022/)

sid18 01-11-2008 11:43 PM

add global variable in linux kernel sourcecode
 
hi everybody
plz tell me how to add global variable so that it can be shared by two or more system calls in linux kernel code..
i had included my global structure in fs.h but it gives error while compiling..
is there ny way?

Mara 01-13-2008 01:29 PM

Please include a sketch of the code. It's hard to say what's wrong without it.

ashok449 01-18-2008 12:09 AM

I am not sure.... try to add in /init/main.c

sundialsvcs 01-18-2008 08:43 PM

"Danger, Will Robinson! Danger!"

:eek: :eek: :eek: :cry: :eek: :eek: :eek:

"Abandon all hope, ye who enter here."


All times are GMT -5. The time now is 08:26 PM.