mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-23 16:01:42 +00:00
. Use a .Bl list for describing macro arguments.
. Various wordign fixes. . Bump document date. MFC after: 3 days
This commit is contained in:
parent
1aaeeac1e8
commit
c91b6b9ef2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139769
@ -28,7 +28,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd March 3, 2001
|
.Dd January 6, 2005
|
||||||
.Dt DECLARE_MODULE 9
|
.Dt DECLARE_MODULE 9
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -52,28 +52,27 @@ is usually used within other macros, such as
|
|||||||
.Xr DEV_MODULE 9
|
.Xr DEV_MODULE 9
|
||||||
and
|
and
|
||||||
.Xr SYSCALL_MODULE 9 .
|
.Xr SYSCALL_MODULE 9 .
|
||||||
However, it can be called directly of course, for example in
|
Of course, it can also be called directly, for example in
|
||||||
order to implement dynamic sysctls.
|
order to implement dynamic sysctls.
|
||||||
.Pp
|
.Pp
|
||||||
The arguments to
|
The arguments to
|
||||||
.Fn DECLARE_MODULE :
|
.Fn DECLARE_MODULE
|
||||||
.Pp
|
expects are:
|
||||||
.Fa name
|
.Bl -tag -width indent
|
||||||
is the name of the module, which will be used in the
|
.It Fa name
|
||||||
|
The module name, which will be used in the
|
||||||
.Fn SYSINIT
|
.Fn SYSINIT
|
||||||
call to identify the module.
|
call to identify the module.
|
||||||
.Pp
|
.It Fa data
|
||||||
.Fa data
|
A
|
||||||
is a
|
|
||||||
.Vt moduledata_t
|
.Vt moduledata_t
|
||||||
structure, which contains two main items, the official name of the
|
structure, which contains two main items, the official name of the
|
||||||
module name, which will be used in the
|
module name, which will be used in the
|
||||||
.Vt module_t
|
.Vt module_t
|
||||||
structure and a pointer to the event handler function of type
|
structure and a pointer to the event handler function of type
|
||||||
.Vt modeventhand_t .
|
.Vt modeventhand_t .
|
||||||
.Pp
|
.It Fa sub
|
||||||
.Fa sub
|
An argument directed to the
|
||||||
is an argument directed to the
|
|
||||||
.Fn SYSINIT
|
.Fn SYSINIT
|
||||||
macro.
|
macro.
|
||||||
Valid values for this are contained in the
|
Valid values for this are contained in the
|
||||||
@ -90,16 +89,15 @@ here for example, since these modules contain a driver for a device.
|
|||||||
For kernel modules that are loaded at runtime, a value of
|
For kernel modules that are loaded at runtime, a value of
|
||||||
.Dv SI_SUB_EXEC
|
.Dv SI_SUB_EXEC
|
||||||
is common.
|
is common.
|
||||||
.Pp
|
.It Fa order
|
||||||
The
|
An argument for
|
||||||
.Fa order
|
|
||||||
value is another argument for
|
|
||||||
.Fn SYSINIT .
|
.Fn SYSINIT .
|
||||||
It represents the KLDs order of initialization within the subsystem.
|
It represents the KLDs order of initialization within the subsystem.
|
||||||
Valid values are defined in the
|
Valid values are defined in the
|
||||||
.Vt sysinit_elem_order
|
.Vt sysinit_elem_order
|
||||||
enumeration
|
enumeration
|
||||||
.Pq In sys/kernel.h .
|
.Pq In sys/kernel.h .
|
||||||
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr DEV_MODULE 9 ,
|
.Xr DEV_MODULE 9 ,
|
||||||
.Xr DRIVER_MODULE 9 ,
|
.Xr DRIVER_MODULE 9 ,
|
||||||
|
Loading…
Reference in New Issue
Block a user