• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Linux: Kernel Global Variables

KidViciou$

Diamond Member
i'm working on a project, and need to define a variable in kernel space that is global. in order to do this, should i just create a library and include it in the necessary system call function header files? or is there another way of declaring global variables? TIA
 
I just checked Documentation/CodingStyle, and it seems to imply that you don't need to do anything special for global variables.
 
hmmmmmmm, i declared it outside the fucntion definition of my system call soruce file but i can't access it in other system call source files
 
ah, there we go, lemme try that (i'm new to linux, and haven't done C programming in a long time) i was thinking about using that keyword @ 6:30 this morning but figured i'd do it when i woke up. i guess i forgot 😱
 
Back
Top