example code nitpicks
Posted Dec 20, 2007 21:15 UTC (Thu) by
ntl (subscriber, #40518)
Parent article:
What is RCU, Fundamentally?
Shouldn't the list_head and hlist_node structs be embedded in struct foo, instead of pointers? That is,
struct foo {
- struct list_head *list;
+ struct list_head list;
...
}
Also, no need to cast the return value of kmalloc :)
(
Log in to post comments)