There are several data structures, such as linked lists, in the kernel designed to abstract common book-keeping functions.