Module Name: src
Committed By: pgoyette
Date: Wed Dec 4 23:35:36 UTC 2019
Modified Files:
src/lib/libc/sys: modctl.2
src/sbin/modstat: modstat.8
Log Message:
Note that the size returned by modctl(2) and displayed by modstat(8) is
only for the module's text section, not for the entire size of the module.
Addresses PR kern-54737
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libc/sys/modctl.2
cvs rdiff -u -r1.23 -r1.24 src/sbin/modstat/modstat.8
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/sys/modctl.2
diff -u src/lib/libc/sys/modctl.2:1.15 src/lib/libc/sys/modctl.2:1.16
--- src/lib/libc/sys/modctl.2:1.15 Mon Apr 8 10:47:16 2019
+++ src/lib/libc/sys/modctl.2 Wed Dec 4 23:35:36 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: modctl.2,v 1.15 2019/04/08 10:47:16 pgoyette Exp $
+.\" $NetBSD: modctl.2,v 1.16 2019/12/04 23:35:36 pgoyette Exp $
.\"
.\" Copyright (c) 2009 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -24,7 +24,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd April 8, 2019
+.Dd December 4, 2019
.Dt MODCTL 2
.Os
.Sh NAME
@@ -184,7 +184,7 @@ Miscellaneous.
The load address within the kernel.
(This value is available only for privileged users.)
.It Fa "u_int ms_size"
-Loaded size of the module.
+Loaded size of the module's text section.
(This value is available only for privileged users.)
.It Fa "u_int ms_refcnt"
Current number of live references to this module.
Index: src/sbin/modstat/modstat.8
diff -u src/sbin/modstat/modstat.8:1.23 src/sbin/modstat/modstat.8:1.24
--- src/sbin/modstat/modstat.8:1.23 Sun Jan 27 02:08:36 2019
+++ src/sbin/modstat/modstat.8 Wed Dec 4 23:35:36 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: modstat.8,v 1.23 2019/01/27 02:08:36 pgoyette Exp $
+.\" $NetBSD: modstat.8,v 1.24 2019/12/04 23:35:36 pgoyette Exp $
.\"
.\" Copyright (c) 1993 Christopher G. Demetriou
.\" All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
.\"
-.Dd September 8, 2018
+.Dd December 4, 2019
.Dt MODSTAT 8
.Os
.Sh NAME
@@ -90,7 +90,7 @@ indicates that the module was loaded dur
.Qq Dv filesys
indicates that the module was loaded from the file system.
.It Li SIZE
-Size of the module in bytes.
+Size of the module's text section, in bytes.
.It Li FLAG
The module flags:
.Bl -tag -width a -offset indent -compact