Hi, I am programming in kernel, and I want to use a double linked list that holds infos that every process could access and modify THIS list. So, I suppose it is a 'global' variable since every process(thread) can reach it, I am wondering where to put it? by changing some of the kernel files?
I am not sure why you want to modify the kernel sources. If you just want to share information between processes you can use shared memory. See the shmget()
, shmat()
, mmap()
, etc. system calls for information about how shared memory works.
I hope this helps.
bakunin