cvs commit: src/sys/ddb db_command.c ddb.h src/sys/dev/aic7xxx
aic79xx_osm.c
John Baldwin
jhb at FreeBSD.org
Tue Mar 7 14:17:06 PST 2006
jhb 2006-03-07 22:17:06 UTC
FreeBSD src repository
Modified files:
sys/ddb db_command.c ddb.h
sys/dev/aic7xxx aic79xx_osm.c
Log:
Clean up the way we handle auxiliary commands for a given ddb command
table. Previously, the ddb code knew of each linker set of auxiliary
commands and which explicit command list they were tied to. These changes
add a simple command_table struct that contains both the static list of
commands and the pointers for any auxiliary linker set of additional
commands. This also makes it possible for other arbitrary command tables
to be defined in other parts of the kernel w/o having to edit ddb itself.
The DB_SET macro has also been trimmed down to just creating an entry in
a linker set. A new DB_FUNC macro does what the old DB_SET did which is
to not only add an entry to the linker set but also to include a function
prototype for the function being added. With these changes, it's now also
possible to create aliases for ddb functions using DB_SET() directly if
desired.
Revision Changes Path
1.65 +87 -97 src/sys/ddb/db_command.c
1.41 +19 -8 src/sys/ddb/ddb.h
1.24 +1 -1 src/sys/dev/aic7xxx/aic79xx_osm.c
More information about the cvs-src
mailing list