Skip to content

Instantly share code, notes, and snippets.

@proger
Created January 1, 2012 17:40
Show Gist options
  • Select an option

  • Save proger/1547880 to your computer and use it in GitHub Desktop.

Select an option

Save proger/1547880 to your computer and use it in GitHub Desktop.
walking MAC impl structures in uts
> ::walkers ! grep mod_hash
mod_hash_entries - walk the mod_hash_entries cache
modchain - walk list of entries in a given mod_hash_entry
modent - walk list of entries in a given mod_hash
modhash - walk list of mod_hash structures
> ::dcmds ! grep mod_hash
modent - display information about a mod_hash_entry
modhash - display information about one or all mod_hash structures
> ::modhash ! grep mac_impl
ffffff01c7581a40 43 8 1 4 mac_impl_hash
> ffffff01c7581a40::walk modent | ::modent
ADDR VAL KEY
ffffff01ed8f8280 ffffff021e954a80 ffffff021e954a98
ffffff01d0085f00 ffffff01d0561a80 ffffff01d0561a98
ffffff01d0085e40 ffffff01d664da80 ffffff01d664da98
ffffff01d0085d50 ffffff01d667aa80 ffffff01d667aa98
ffffff01d0085f60 ffffff01d66b2a80 ffffff01d66b2a98
ffffff01d0085c00 ffffff01d66f0a80 ffffff01d66f0a98
ffffff01d0085b10 ffffff01d670ea80 ffffff01d670ea98
ffffff01ca14d4f0 ffffff01ce286a80 ffffff01ce286a98
> ffffff01c7581a40::walk modent | ::modent -v | ::print mac_impl_t mi_name
mi_name = [ "vnic1076" ]
mi_name = [ "e1000g0" ]
mi_name = [ "vnic1000" ]
mi_name = [ "vnic1001" ]
mi_name = [ "vnic1002" ]
mi_name = [ "vnic1003" ]
mi_name = [ "vnic1004" ]
mi_name = [ "rum0" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment