Add warning that the PNP info has to follow the module declaration.

Due to how the linker.hints file is laid out, we'll associate the pnp
info with the wrong module if the module declaration comes after the
pnp info. Until that limiation is removed, we need to have this
ordering. Ideally, we'd also enforce the ordering somehow, but I've
come up with no way to do that yet...
This commit is contained in:
Warner Losh 2019-05-23 15:53:41 +00:00
parent 06cd525fe3
commit ad018aa4da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348171

View File

@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd October 5, 2018
.Dd May 23, 2019
.Dt MODULE_PNP_INFO 9
.Os
.Sh NAME
@ -196,6 +196,14 @@ MODULE_PNP_INFO("U16:device;D:#;T:vendor=0x1234", pci, my_driver,
.Ed
.El
.\"
.Sh BUGS
The
.Nm
macro must follow
.Dv DRIVER_MODULE
invocations due to limitations in the
.Dv linker.hints
file format.
.Sh SEE ALSO
.Xr devmatch 8 ,
.Xr DRIVER_MODULE 9 ,