Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107170825
D29481.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
635 B
Referenced Files
None
Subscribers
None
D29481.diff
View Options
diff --git a/sys/kern/subr_sbuf.c b/sys/kern/subr_sbuf.c
--- a/sys/kern/subr_sbuf.c
+++ b/sys/kern/subr_sbuf.c
@@ -383,7 +383,7 @@
/*
* Call the drain and process the return.
*/
-static int
+int
sbuf_drain(struct sbuf *s)
{
int len;
diff --git a/sys/sys/sbuf.h b/sys/sys/sbuf.h
--- a/sys/sys/sbuf.h
+++ b/sys/sys/sbuf.h
@@ -95,6 +95,7 @@
int sbuf_nl_terminate(struct sbuf *);
int sbuf_putc(struct sbuf *, int);
void sbuf_set_drain(struct sbuf *, sbuf_drain_func *, void *);
+int sbuf_drain(struct sbuf *);
int sbuf_trim(struct sbuf *);
int sbuf_error(const struct sbuf *);
int sbuf_finish(struct sbuf *);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 5:02 AM (21 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15761511
Default Alt Text
D29481.diff (635 B)
Attached To
Mode
D29481: Export sbuf_drain to orchestrate lock and drain action
Attached
Detach File
Event Timeline
Log In to Comment