kern/91996: [headers] SLIST_FOREACH_PREVPTR() macro is wrong

Andrey A. Chernov ache at
Thu Feb 2 23:01:26 PST 2006

Synopsis: [headers] SLIST_FOREACH_PREVPTR() macro is wrong

State-Changed-From-To: open->closed
State-Changed-By: ache
State-Changed-When: Fri Feb 3 06:56:54 UTC 2006
You misunderstand what SLIST_FOREACH_PREVPTR() macro does.

It is not for returning pointer to previous element, but for returning pointers
to head->first or prev->next fields (to remove current element from the list)

More information about the freebsd-bugs mailing list