Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2019 23:40:54 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Hans Petter Selasky <hps@selasky.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r355600 - in head: share/man/man9 sys/kern sys/sys
Message-ID:  <25028.1576021254@critter.freebsd.dk>
In-Reply-To: <a784738e-2667-49e7-10ca-bcbf54f47cf8@FreeBSD.org>
References:  <201912102158.xBALwUF9075354@repo.freebsd.org> <3cc78418-6692-058c-eba5-1edc5286aeab@selasky.org> <a784738e-2667-49e7-10ca-bcbf54f47cf8@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--------
In message <a784738e-2667-49e7-10ca-bcbf54f47cf8@FreeBSD.org>, John Baldwi=
n 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 b=
y =

>> 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@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=
.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25028.1576021254>