delphij's Chaos

选择chaos这个词是因为~~实在很难找到一个更合适的词来形容这儿了……

10 Nov 2005

*BSD queue.h

Derived from the ancient BSD Unix, *BSD has a set of queue related macros which are described in queue(3), and implemented in src/sys/sys/queue.h. These are primarily used in the kernel, but also useful for userland applications.

Some use of queue(3) in the current FreeBSD kernel could be improved so that the readability would be improved. E.g. determining whether the queue head is NULL, could be replaced with FOO_EMPTY() macro. I am looking for someone to work together with me in the way of peer-review so we can make sure the code is correct before committing against the central FreeBSD repository.


Archived: 1 Comment

snnn | April 25, 2006 9:55 AM

这个header file我仔细读过,真是写的太精妙了
佩服佩服