LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora - Installation (https://www.linuxquestions.org/questions/fedora-installation-39/)
-   -   Defining Global variable in Fedora Kernel (https://www.linuxquestions.org/questions/fedora-installation-39/defining-global-variable-in-fedora-kernel-272370/)

tuncausluer 12-31-2004 01:38 PM

Defining Global variable in Fedora Kernel
 
Hi ,
I try to add some new properties to linux kernel in
fedora core 2 . I have to define a global integer
variable in one of the header file , which I can
reach it from all .c files in kernel .
i.e. it will be enough to reach and modify it from
user.c and timer.c .
I tried something with extern but I got compile
error when try to "make bzdisk" command .
Does anyone has solution to this problem . What
should I write in header file (call it timer.h)
and what should I write in user.c and timer.c to
access and modify this integer variable named int
my_general_file_limit .
Please help me as soon as possible and send me
e-mail if possible tunca_usluer@yahoo.co.uk . I'm in a deadlock .
Thanx to everyone and happy new year.
Tunca Usluer


All times are GMT -5. The time now is 09:26 AM.