Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 Document ubc_zerorange(9). Add it (and ubc_p...
details: https://anonhg.NetBSD.org/src/rev/a3ecddc9f043
branches: trunk
changeset: 352508:a3ecddc9f043
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Apr 06 01:54:17 2017 +0000
description:
Document ubc_zerorange(9). Add it (and ubc_purge(9)) to the MLINKS
diffstat:
share/man/man9/Makefile | 3 ++-
share/man/man9/ubc.9 | 12 +++++++++++-
2 files changed, 13 insertions(+), 2 deletions(-)
diffs (50 lines):
diff -r d1cf76e8e7cb -r a3ecddc9f043 share/man/man9/Makefile
--- a/share/man/man9/Makefile Thu Apr 06 00:02:19 2017 +0000
+++ b/share/man/man9/Makefile Thu Apr 06 01:54:17 2017 +0000
@@ -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 @@
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 \
diff -r d1cf76e8e7cb -r a3ecddc9f043 share/man/man9/ubc.9
--- a/share/man/man9/ubc.9 Thu Apr 06 00:02:19 2017 +0000
+++ b/share/man/man9/ubc.9 Thu Apr 06 01:54:17 2017 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index