Re: Use of double pointer in linux kernel Hash list implementation

Namhyung Kim <[email protected]>
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <1276827003.1746.24.camel@leonhard>
2010-06-17 (목), 10:34 -0400, Balachandar:

> 
> My doubt is why not use *prev as it is used in list_head
> implementation rather than **pprev.  

hlist is simple linked list so there is no need of *prev. **pprev is a
kind of hack and should not be accessed in the outside of hlist. If you
need *prev, just use list_head.

-- 
Regards,
Namhyung Kim
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAkwa1XYACgkQcwWBAay833FfEwCgyT1Ehlyvu7bvFtS3xqIANOh2
RMkAnjfASuD2wEAf1zsEZ9fs5bp3KbSx
=dhuH
-----END PGP SIGNATURE-----
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.