From owner-svn-src-all@FreeBSD.ORG Thu Jan 7 13:31:01 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 435D41065679; Thu, 7 Jan 2010 13:31:01 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 330038FC1C; Thu, 7 Jan 2010 13:31:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o07DV1Ql064232; Thu, 7 Jan 2010 13:31:01 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o07DV1r7064230; Thu, 7 Jan 2010 13:31:01 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201001071331.o07DV1r7064230@svn.freebsd.org> From: Konstantin Belousov Date: Thu, 7 Jan 2010 13:31:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r201743 - head/lib/libc/sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2010 13:31:01 -0000 Author: kib Date: Thu Jan 7 13:31:00 2010 New Revision: 201743 URL: http://svn.freebsd.org/changeset/base/201743 Log: Give some information on SF_MNOWAIT flag. MFC after: 3 days Modified: head/lib/libc/sys/sendfile.2 Modified: head/lib/libc/sys/sendfile.2 ============================================================================== --- head/lib/libc/sys/sendfile.2 Thu Jan 7 12:58:03 2010 (r201742) +++ head/lib/libc/sys/sendfile.2 Thu Jan 7 13:31:00 2010 (r201743) @@ -116,9 +116,17 @@ Busy servers may benefit by transferring 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.