x
Loading
 Loading
Hello, Guest | Login | Register

Linked Lists and Work Queues

The use of standard kernel helper facilities simplifies your code, weeds out redundancies from the kernel, and helps long-term maintenance. And since the helpers are bug-free and optimized, you inherit those benefits for free.

Several useful helper interfaces exist in the kernel to make life easier for developers. One example is the doubly-linked list library. Many parts of the kernel need to maintain and manipulate linked lists of data structures. The kernel’s list… interface routines eliminate the need for chasing list pointers and debugging messy problems related to list maintenance. Another example of a useful helper facility is the seq_file interface, which simplifies the task of creating user space windows into your kernel code.
This month, let’s look at helper interfaces like lists, hlists, and work queues. The next couple of columns will look at helpers like seq files, completion functions, notifier blocks, kthreads, and more.
Follow Linux Magazine
Rackspace