LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   defining global variable in fedora kernel (https://www.linuxquestions.org/questions/linux-software-2/defining-global-variable-in-fedora-kernel-272380/)

tuncausluer 12-31-2004 01:53 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 . Merry christmas to everyone
Mr.Tunca Usluer


All times are GMT -5. The time now is 10:49 AM.