svn commit: r355600 - in head: share/man/man9 sys/kern sys/sys

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Dec 10 23:41:04 UTC 2019


--------
In message <a784738e-2667-49e7-10ca-bcbf54f47cf8 at FreeBSD.org>, John Baldwin writes:
>On 12/10/19 2:09 PM, Hans Petter Selasky wrote:
>> On 2019-12-10 22:58, John Baldwin wrote:
>>>   While here, add <sys/callout.h> to the manpage.
>> 
>> FYI:
>> 
>> Linux guys eliminated the "void *c_arg" in their timer implementation by 
>> using container_of() to get callback argument. We could possibly do the 
>> same!
>
>You mean passing the pointer to the callout itself and using that to get to the
>relevant pointer?

Before we start using macro-magic of that caliber, we should
consider how/if it will impact the strength of static analysis.

-- 
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 svn-src-head mailing list