> It would.  Fortunately, it's easy to reuse existing walkers and dcmds
> from inside mdb.  See the mdb_pwalk() call in th_trace() (recently
> added to $SRC/cmd/mdb/common/modules/ip.c) for an example of a dcmd
> that calls a walker.  Then see its callback function,
> th_hash_summary(), for an example of a nested walk on a modent.

Thanks, I actually used your ip.c as an example. Once I saw mdb_pwalk I 
instantly found relevant chapters in the MDB Guide. Pretty rich API indeed.

-Artem

Reply via email to