My friend and i want to add a variable to my kernel so that we can create a system call to add/retreive data from it. More precisely, we want to add a link list that will store a struct that he designs, and I’ll be adding and searching nodes in my list. Do any linux dopers know where we should go about defining the variable, and if anyone has any code examples of how to use the link list defined in linux/list.h. Or can anyone recommend an in-depth linux board area that would know better?
Why exactly does this list need to be part of the kernel? If it absolutely must be a system call, as opposed to something like a daemon or a simple database, then I would look into creating a kernel module. You can find a few useful tutorials for creating kernel modules via google.