Thu Jul 22 01:38:45 2021 UTC ()
module_hold() returns void, not int

XXX module_hold() and module_rele() should probably not be exposed, since
XXX they really aren't MP-safe.


(pgoyette)
diff -r1.52 -r1.53 src/share/man/man9/module.9

cvs diff -r1.52 -r1.53 src/share/man/man9/module.9 (expand / switch to unified diff)

--- src/share/man/man9/module.9 2019/04/07 22:32:10 1.52
+++ src/share/man/man9/module.9 2021/07/22 01:38:45 1.53
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: module.9,v 1.52 2019/04/07 22:32:10 pgoyette Exp $ 1.\" $NetBSD: module.9,v 1.53 2021/07/22 01:38:45 pgoyette Exp $
2.\" 2.\"
3.\" Copyright (c) 2010 The NetBSD Foundation, Inc. 3.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
4.\" All rights reserved. 4.\" All rights reserved.
5.\" 5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation 6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Andrew Doran. 7.\" by Andrew Doran.
8.\" 8.\"
9.\" Redistribution and use in source and binary forms, with or without 9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions 10.\" modification, are permitted provided that the following conditions
11.\" are met: 11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright 12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer. 13.\" notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" 2. Redistributions in binary form must reproduce the above copyright
@@ -17,27 +17,27 @@ @@ -17,27 +17,27 @@
17.\" 17.\"
18.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 18.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 21.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28.\" POSSIBILITY OF SUCH DAMAGE. 28.\" POSSIBILITY OF SUCH DAMAGE.
29.\" 29.\"
30.Dd April 8, 2019 30.Dd July 21, 2021
31.Dt MODULE 9 31.Dt MODULE 9
32.Os 32.Os
33.Sh NAME 33.Sh NAME
34.Nm module , 34.Nm module ,
35.Nm module_load , 35.Nm module_load ,
36.Nm module_autoload , 36.Nm module_autoload ,
37.Nm module_unload , 37.Nm module_unload ,
38.Nm module_init_class , 38.Nm module_init_class ,
39.Nm module_hold , 39.Nm module_hold ,
40.Nm module_rele , 40.Nm module_rele ,
41.Nm module_find_section , 41.Nm module_find_section ,
42.Nm module_kernel , 42.Nm module_kernel ,
43.Nm module_name , 43.Nm module_name ,
@@ -51,27 +51,27 @@ @@ -51,27 +51,27 @@
51.Nd kernel module loader 51.Nd kernel module loader
52.Sh SYNOPSIS 52.Sh SYNOPSIS
53.In sys/module.h 53.In sys/module.h
54.Fn MODULE "class" "name" "required" 54.Fn MODULE "class" "name" "required"
55.Ft int 55.Ft int
56.Fn module_load "const char *name" "int flags" "prop_dictionary_t props" \ 56.Fn module_load "const char *name" "int flags" "prop_dictionary_t props" \
57"modclass_t class" 57"modclass_t class"
58.Ft int 58.Ft int
59.Fn module_autoload "const char *name" "modclass_t class" 59.Fn module_autoload "const char *name" "modclass_t class"
60.Ft int 60.Ft int
61.Fn module_unload "const char *name" 61.Fn module_unload "const char *name"
62.Ft void 62.Ft void
63.Fn module_init_class "modclass_t class" 63.Fn module_init_class "modclass_t class"
64.Ft int 64.Ft void
65.Fn module_hold "module_t *module" 65.Fn module_hold "module_t *module"
66.Ft void 66.Ft void
67.Fn module_rele "module_t *module" 67.Fn module_rele "module_t *module"
68.Ft int 68.Ft int
69.Fn module_find_section "const char *" "void **" "size_t *" 69.Fn module_find_section "const char *" "void **" "size_t *"
70.Ft "module_t *" 70.Ft "module_t *"
71.Fn module_kernel "void" 71.Fn module_kernel "void"
72.Ft "const char *" 72.Ft "const char *"
73.Fn module_name "struct module *module" 73.Fn module_name "struct module *module"
74.Ft modsrc_t 74.Ft modsrc_t
75.Fn module_source "struct module *module" 75.Fn module_source "struct module *module"
76.Ft void 76.Ft void
77.Fn module_init "void" 77.Fn module_init "void"