Module Name:    src
Committed By:   pgoyette
Date:           Thu Apr  6 01:54:17 UTC 2017

Modified Files:
        src/share/man/man9: Makefile ubc.9

Log Message:
Document ubc_zerorange(9).  Add it (and ubc_purge(9)) to the MLINKS


To generate a diff of this commit:
cvs rdiff -u -r1.403 -r1.404 src/share/man/man9/Makefile
cvs rdiff -u -r1.9 -r1.10 src/share/man/man9/ubc.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/Makefile
diff -u src/share/man/man9/Makefile:1.403 src/share/man/man9/Makefile:1.404
--- src/share/man/man9/Makefile:1.403	Fri Mar 10 09:08:47 2017
+++ src/share/man/man9/Makefile	Thu Apr  6 01:54:17 2017
@@ -1,4 +1,4 @@
-#       $NetBSD: Makefile,v 1.403 2017/03/10 09:08:47 martin Exp $
+#       $NetBSD: Makefile,v 1.404 2017/04/06 01:54:17 pgoyette Exp $
 
 #	Makefile for section 9 (kernel function and variable) manual pages.
 
@@ -899,6 +899,7 @@ MLINKS+=todr.9 todr_gettime.9 todr.9 tod
 	todr.9 clock_ymdhms_to_secs.9 todr.9 clock_secs_to_ymdhms.9
 
 MLINKS+=ubc.9 ubc_alloc.9 ubc.9 ubc_release.9 ubc.9 ubc_uiomove.9
+MLINKS+=ubc.9 ubc_zerorange.9 ubc.9 ubc_purge.9
 MLINKS+=uvm.9 uvm_init.9 uvm.9 uvm_init_limits.9 uvm.9 uvm_setpagesize.9 \
 	uvm.9 uvm_swap_init.9 uvm.9 uvm_fault.9 \
 	uvm.9 uvm_vnp_setsize.9 \

Index: src/share/man/man9/ubc.9
diff -u src/share/man/man9/ubc.9:1.9 src/share/man/man9/ubc.9:1.10
--- src/share/man/man9/ubc.9:1.9	Wed Jun  1 08:17:12 2016
+++ src/share/man/man9/ubc.9	Thu Apr  6 01:54:17 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ubc.9,v 1.9 2016/06/01 08:17:12 wiz Exp $
+.\"	$NetBSD: ubc.9,v 1.10 2017/04/06 01:54:17 pgoyette Exp $
 .\"
 .\" Copyright (c) 1998 Matthew R. Green
 .\" All rights reserved.
@@ -41,6 +41,9 @@
 .Fn ubc_uiomove "struct uvm_object *uobj" "struct uio *uio" "vsize_t todo" \
  "int advice" "int flags"
 .Ft void
+.Fn ubc_zerorange "struct uvm_bject *uobj" "off_t off" "size_t len" \
+ "int flags"
+.Ft void
 .Fn ubc_purge "struct uvm_object *uobj"
 .Sh DESCRIPTION
 .Fn ubc_alloc
@@ -117,6 +120,13 @@ Additionally, the flag
 can be provided to indicate that it is acceptable to return if an error
 occurs mid-transfer.
 .Pp
+.Fn ubc_zerorange
+sets a range of bytes in a UVM object to zero.
+The
+.Fa flags
+parameter takes the same arguments
+.Fn ubc_release .
+.Pp
 .Fn ubc_purge
 disassociates all UBC structures from an empty UVM object,
 specified by

Reply via email to