Doubt in linux kernel hlist implementation

Balachandar <[email protected]>
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <[email protected]>
Hi,
  I am trying to understand Linux Kernel implementation of linked list
and hash table. A link to the implementation is here. I understood the
linked list implementation. But i am little confused of why double
pointers is being used in hlist (**pprev). Link for hlist is here. I
understand that hlist is used in implementation of hash table since
head of the list requires only one pointer and it saves space. Why
cant it be done using single pointer (just *prev like the linked
list)? Please help me.

Thanks,
Bala
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.