[ntp:hackers] singly-linked list template macros for NTP
phk at phk.freebsd.dk
Thu Jul 16 14:28:39 UTC 2009
In message <85d954180907140019o739e366v9e7d0adddcd3bf1e at mail.gmail.com>, Dave H
>On the other hand, sys/queue.h SLIST_REMOVE could learn a trick from
>ntp_lists.h REMOVE_SLIST_EXPR, using a pointer to a pointer to the
>entry to collapse removal of the head item and other items into a
>common codepath. Feel free to borrow :)
Somewhere on in the FreeBSD archives are a discussion of that, I
think it was found to have suboptimal cache behaviour.
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the hackers