On Thu, Apr 8, 2010 at 11:28 AM, Onkar Mahajan <kern.devel@xxxxxxxxx> wrote: > I am not able to understand how the marked like skips the node n : > > static inline void __hlist_del(struct hlist_node *n) > { > struct hlist_node *next = n->next; > struct hlist_node **pprev = n->pprev; > *pprev = next; <--------------------------------------------------- ???? > if (next) > next->pprev = pprev; > } > > in this case > > static inline void __list_del(struct list_head * prev, struct list_head * > next) > { > next->prev = prev; > prev->next = next; > } > > It is clear ... Why is not clear in the first case. It is doing exactly the same thing. Except the fact the in list_head both the fields prev and next are pointers while in hlist next is pointer but prev is pointer to pointer. NO ? Thanks - Manish > > > Please help. > > Regards, > Onkar > > -- Thanks - Manish ================================== [$\*.^ -- I miss being one of them ================================== -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ