Skip to content

Instantly share code, notes, and snippets.

@arekinath
Created March 12, 2014 12:39
Show Gist options
  • Save arekinath/9506138 to your computer and use it in GitHub Desktop.
Save arekinath/9506138 to your computer and use it in GitHub Desktop.
# mdb -kw
> 0x0::zid2zone | ::walk zsd z | ::print 'struct zsd_entry' zsd_create | ::grep .==evch_zoneinit | ::eval "<z::print 'struct zsd_entry' zsd_data | ::print 'struct evch_globals'"
{
evch_list = {
dh_head = {
dl_next = 0xffffff21d16b0f10
dl_prev = 0xffffff21ff76a320
}
dh_count = 0x7
}
evch_list_lock = {
_opaque = [ 0 ]
}
}
> 0xffffff21d16b0f10::print evch_chan_t ch_name ch_link ch_maxsubscr
ch_name = 0xffffff21d16e7528 "com.sun:fm:error"
ch_link = {
ch_link.dl_next = 0xffffff21d16b01f0
ch_link.dl_prev = 0xffffff21d16dee70
}
ch_maxsubscr = 0x20
> 0xffffff21d16b01f0
ch_name = 0xffffff21d1a356d0 "com.sun:zones:status"
ch_link = {
ch_link.dl_next = 0xffffff21e90db828
ch_link.dl_prev = 0xffffff21d16b0f10
}
ch_maxsubscr = 0x20
> ::offsetof evch_chan_t ch_maxsubscr
offsetof (evch_chan_t, ch_maxsubscr) = 0x6c, sizeof (...->ch_maxsubscr) = 4
> 0xffffff21d16b01f0 + 0x6c / W 0t256
0xffffff21d16b025c: 0x20 = 0x100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment