Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Sep 2010 17:49:18 +0000 (UTC)
From:      Matthew D Fleming <mdf@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/share/man/man9 Makefile sbuf.9 src/sys/kern subr_sbuf.c src/sys/sys sbuf.h
Message-ID:  <201009091750.o89HoduY014276@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
mdf         2010-09-09 17:49:18 UTC

  FreeBSD src repository

  Modified files:
    share/man/man9       Makefile sbuf.9 
    sys/kern             subr_sbuf.c 
    sys/sys              sbuf.h 
  Log:
  SVN rev 212367 on 2010-09-09 17:49:18Z by mdf
  
  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)
  
  Revision  Changes    Path
  1.374     +1 -0      src/share/man/man9/Makefile
  1.29      +99 -7     src/share/man/man9/sbuf.9
  1.38      +99 -6     src/sys/kern/subr_sbuf.c
  1.17      +8 -2      src/sys/sys/sbuf.h



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