forked from freebsd/freebsd-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PNP info to the PCI attachment of the aacraid driver.
- Loading branch information
1 parent
18a47bd
commit 71384ca
Showing
1 changed file
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71384ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lakhanshiva , maybe my understanding of how all this works is wrong, but can you comment on why the
.num_entry
field is set tonitems() - 1
and not justnitems()
? My guess is this was copied from thedev/ed/if_ed_*.c
drivers. Other drivers effectively usenitems()
, although they literally use something of the formsizeof(table) / sizeof(table[0])
.kldxref
does things like this:for (i = 0; i < pnp.num_entry; i++) {
which suggests using the value
nitems() - 1
will preventkldxref
from ever matching the last entry.@bsdimp , what would you think of normalizing the
MODULE_PNP_INFO()
usage in the driver as a part of this GSoC effort (i.e. usingnitems()
everywhere)?71384ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
71384ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lakhanshiva , ahh, OK, thanks.