sysctl_proc calls handler twice

Pawel Jakub Dawidek pjd at FreeBSD.org
Tue Aug 16 13:33:34 GMT 2005


On Tue, Aug 16, 2005 at 11:17:21PM +1000, Bruce Evans wrote:
+> No, just don't call it twice like sysctl(8) if you know the size in advance
+> or from a previous call (and know that it won't change or handle the error
+> from it changing...).

Thread's author, as I understand/guess it, represents kernel side.
He doesn't want his handler to be called twice and tools like sysctl(8)
are not able to know size of every sysctl, so he just has to be ready
that his handler will be called twice.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20050816/1dbd9fb7/attachment.bin


More information about the freebsd-arch mailing list