Hi,
I was looking the hlist's implementation in the linux kernel
(linux/include/linux/list.h). The description of hlist_node is:
struct hlist_node {
struct hlist_node *next, **pprev;
};
I don't understand why there is a pointer to a pointer (**pprev) for the
previous node instead of a simple
Scott Lovenberg wrote:
Grob Team wrote:
Hi,
I was looking the hlist's implementation in the linux kernel
(linux/include/linux/list.h). The description of hlist_node is:
struct hlist_node {
struct hlist_node *next, **pprev;
};
I don't understand why there is a pointer to a pointer (**pprev)