diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-04 09:58:17 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-04 09:58:17 +0000 |
commit | c5f9218b48ead7bd8838450c541449bb221ed9bc (patch) | |
tree | 769a78b7fdf83c2fefa71b0a4bfd162f398a203c /sys/sys/sbuf.h | |
parent | bafe85a4adc3c0f9405bdf65ddec2771b4cbb4e7 (diff) | |
download | src-c5f9218b48ead7bd8838450c541449bb221ed9bc.tar.gz src-c5f9218b48ead7bd8838450c541449bb221ed9bc.zip |
Add the new function "sbuf_done()" which returns non-zero if the sbuf is
finished.
This allows sbufs to be used for request/response scenarioes without
needing additional communication flags.
Sponsored by: DARPA & NAI Labs.
Notes
Notes:
svn path=/head/; revision=104449
Diffstat (limited to 'sys/sys/sbuf.h')
-rw-r--r-- | sys/sys/sbuf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/sbuf.h b/sys/sys/sbuf.h index a63603e4e2ea..606c1ca91fee 100644 --- a/sys/sys/sbuf.h +++ b/sys/sys/sbuf.h @@ -70,6 +70,7 @@ int sbuf_overflowed(struct sbuf *); void sbuf_finish(struct sbuf *); char *sbuf_data(struct sbuf *); int sbuf_len(struct sbuf *); +int sbuf_done(struct sbuf *); void sbuf_delete(struct sbuf *); #ifdef _KERNEL |