Linux Programming Tips

A Linux Kernel Queue Container

Your are probably familiar with the linux kernel linked list that can be found in linux/list.h.  While this is a wonderful tool to use in your kernel programming, sometimes you need something a bit different.  One such instance is a queue – a first in, first out collection of objects.  Here I will present a generic Queue container based on the linux kernel linked list.