I want to add a variable to my kernel so that I can create a system call to add/retreive data from it. More precisely, I want to add a link list that will store a struct that I design, and I will be adding and searching nodes in my list. I want to know where I should go about defining my variable, and if anyone has any code examples of how to use the link list defined in linux/list.h.

Thanks
Ryan