mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
update ciss debugger command to iterate over multiple raid controllers up to
max controllers supported PR: kern/179932 Reviewed by: Markus Gebert <markus.gebert@hostpoint.ch> MFC after: 2 weeks Sponsored by: Yahoo! Inc.
This commit is contained in:
parent
18ec23deea
commit
11f9f6ea9a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253712
@ -4378,11 +4378,17 @@ ciss_print_adapter(struct ciss_softc *sc)
|
||||
DB_COMMAND(ciss_prt, db_ciss_prt)
|
||||
{
|
||||
struct ciss_softc *sc;
|
||||
devclass_t dc;
|
||||
int maxciss, i;
|
||||
|
||||
sc = devclass_get_softc(devclass_find("ciss"), 0);
|
||||
if (sc == NULL) {
|
||||
printf("no ciss controllers\n");
|
||||
} else {
|
||||
dc = devclass_find("ciss");
|
||||
if ( dc == NULL ) {
|
||||
printf("%s: can't find devclass!\n", __func__);
|
||||
return;
|
||||
}
|
||||
maxciss = devclass_get_maxunit(dc);
|
||||
for (i = 0; i < maxciss; i++) {
|
||||
sc = devclass_get_softc(dc, i);
|
||||
ciss_print_adapter(sc);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user