LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Defining Global Variables in the kernel (https://www.linuxquestions.org/questions/programming-9/defining-global-variables-in-the-kernel-677361/)

crunchyblack 10-18-2008 10:06 AM

Defining Global Variables in the kernel
 
Hey guys,

A very noob question I'm sure, but after searching the forums I was unable to find results. I have made a few new system calls, but in order to get them working properly I need to create a few variables that are global to the kernel, so I can modify then in my system calls and change values in other kernel files, such as, sched.c and fork.c. In which file would I declare these globals? I have been trying many different solutions for a while now and nothing seems to work / compile. Any help would be greatly appreciated.

crunchyblack 10-18-2008 01:53 PM

bump - help plz =(

Tinkster 10-18-2008 02:14 PM

While we don't have an explicit rule against bumping
anymore, it's still considered rude, and it's not very
prudent to do - namely because you a) take yourself of
the 0-reply list which many of our members use to track
down posts, and b) because you disable the auto-bump,
which bubbles your posts to the top twice.



Cheers,
Tink

Tinkster 10-18-2008 02:56 PM

Moved: This thread is more suitable in <PROGRAMMING> and has been moved accordingly to help your thread/question get the exposure it deserves.

crunchyblack 10-20-2008 10:52 AM

posting in other thread


All times are GMT -5. The time now is 10:39 PM.