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

Alexander Kabaev kabaev at gmail.com
Sat Sep 11 19:02:51 UTC 2010


On Thu, 9 Sep 2010 17:49:18 +0000 (UTC)
Matthew D Fleming <mdf at FreeBSD.org> wrote:

> Author: mdf
> Date: Thu Sep  9 17:49:18 2010
> New Revision: 212367
> URL: http://svn.freebsd.org/changeset/base/212367
> 
> Log:
>   Add drain functionality to sbufs.  The drain is a function that is
>   called when the sbuf internal buffer is filled.  For kernel sbufs
> with a drain, the internal buffer will never be expanded.  For
> userland sbufs with a drain, the internal buffer may still be
> expanded by sbuf_[v]printf(3).
>   
>   Sbufs now have three basic uses:
>   1) static string manipulation.  Overflow is marked.
>   2) dynamic string manipulation.  Overflow triggers string growth.
>   3) drained string manipulation.  Overflow triggers draining.
>   
>   In all cases the manipulation is 'safe' in that overflow is
> detected and managed.
>   
>   Reviewed by:	phk (the previous version)
> 

This one is responsible for hangs on my amd64 test box.
-- 
Alexander Kabaev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20100911/4b0066a0/signature.pgp


More information about the svn-src-all mailing list