hlist in list.h

2008-01-31 Thread Grob Team
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

Re: hlist in list.h

2008-01-31 Thread Peter Kerpedjiev
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)