List Operations

Generic pointers are not the only objects that can be protected by RCU. The kernel also provides standard functions that allow for protecting doubly linked lists by the RCU mechanism, and this is the most prominent application within the kernel. Additionally, hash lists that consist of struct hlist_head and struct hlist_node pairs can also be protected by RCU.

The nice thing about list protection by RCU is that the standard list elements can still be used — it is only necessary to invoke the RCU variants of standard functions to iterate over lists and change and delete list elements. The names of the functions are easy to remember: Just append _rcu to the standard functions.

Continue reading here: Info

Was this article helpful?

0 0