summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-01-07 13:31:00 +0000
committerkib <kib@FreeBSD.org>2010-01-07 13:31:00 +0000
commitfe8ccb0bf3097cfe7df2a8e79774b7d216993368 (patch)
tree1041e5cbc5db0f55aaec0f93cc8cfc3badea162b /lib
parent5a3a95e8871a2f6048962b4a29f3a0f24162905d (diff)
downloadFreeBSD-src-fe8ccb0bf3097cfe7df2a8e79774b7d216993368.zip
FreeBSD-src-fe8ccb0bf3097cfe7df2a8e79774b7d216993368.tar.gz
Give some information on SF_MNOWAIT flag.
MFC after: 3 days
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/sendfile.212
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/sys/sendfile.2 b/lib/libc/sys/sendfile.2
index 322971f..612ff5c 100644
--- a/lib/libc/sys/sendfile.2
+++ b/lib/libc/sys/sendfile.2
@@ -116,9 +116,17 @@ Busy servers may benefit by transferring requests that would
block to a separate I/O worker thread.
.It
.Dv SF_MNOWAIT .
-(description missing)
+Do not wait for some kernel resource to become available,
+in particular,
+.Vt mbuf
+and
+.Vt sf_buf .
+The flag does not make the
+.Fn sendfile
+syscall trully non-blocking, since other resources are still allocated
+in blocking fashion.
.It
-.Dv SF_SYNC ,
+.Dv SF_SYNC .
.Nm
sleeps until the network stack no longer references the VM pages
of the file, making subsequent modifications to it safe.
OpenPOWER on IntegriCloud