4064 pattr2multidata },
4065 { "pdesc2slab", ":", "print pdesc slab pointer from pdesc_t",
4066 pdesc2slab },
4067 { "pdesc_verify", ":", "verify integrity of a pdesc_t", pdesc_verify },
4068 { "slab2multidata", ":", "print multidata pointer from pdesc_slab_t",
4069 slab2multidata },
4070
4071 /* from modhash.c */
4072 { "modhash", "?[-ceht] [-k key] [-v val] [-i index]",
4073 "display information about one or all mod_hash structures",
4074 modhash, modhash_help },
4075 { "modent", ":[-k | -v | -t type]",
4076 "display information about a mod_hash_entry", modent,
4077 modent_help },
4078
4079 /* from net.c */
4080 { "dladm", "?<sub-command> [flags]", "show data link information",
4081 dladm, dladm_help },
4082 { "mi", ":[-p] [-d | -m]", "filter and display MI object or payload",
4083 mi },
4084 { "netstat", "[-arv] [-f inet | inet6 | unix] [-P tcp | udp | icmp]",
4085 "show network statistics", netstat },
4086 { "sonode", "?[-f inet | inet6 | unix | #] "
4087 "[-t stream | dgram | raw | #] [-p #]",
4088 "filter and display sonode", sonode },
4089
4090 /* from netstack.c */
4091 { "netstack", "", "show stack instances", netstack },
4092
4093 /* from nvpair.c */
4094 { NVPAIR_DCMD_NAME, NVPAIR_DCMD_USAGE, NVPAIR_DCMD_DESCR,
4095 nvpair_print },
4096 { NVLIST_DCMD_NAME, NVLIST_DCMD_USAGE, NVLIST_DCMD_DESCR,
4097 print_nvlist },
4098
4099 /* from pg.c */
4100 { "pg", "?[-q]", "display a pg", pg},
4101
4102 /* from rctl.c */
4103 { "rctl_dict", "?", "print systemwide default rctl definitions",
4104 rctl_dict },
4463 modhash_walk_step, NULL },
4464 { "modent", "walk list of entries in a given mod_hash",
4465 modent_walk_init, modent_walk_step, modent_walk_fini },
4466 { "modchain", "walk list of entries in a given mod_hash_entry",
4467 NULL, modchain_walk_step, NULL },
4468
4469 /* from net.c */
4470 { "icmp", "walk ICMP control structures using MI for all stacks",
4471 mi_payload_walk_init, mi_payload_walk_step, NULL,
4472 &mi_icmp_arg },
4473 { "mi", "given a MI_O, walk the MI",
4474 mi_walk_init, mi_walk_step, mi_walk_fini, NULL },
4475 { "sonode", "given a sonode, walk its children",
4476 sonode_walk_init, sonode_walk_step, sonode_walk_fini, NULL },
4477 { "icmp_stacks", "walk all the icmp_stack_t",
4478 icmp_stacks_walk_init, icmp_stacks_walk_step, NULL },
4479 { "tcp_stacks", "walk all the tcp_stack_t",
4480 tcp_stacks_walk_init, tcp_stacks_walk_step, NULL },
4481 { "udp_stacks", "walk all the udp_stack_t",
4482 udp_stacks_walk_init, udp_stacks_walk_step, NULL },
4483
4484 /* from netstack.c */
4485 { "netstack", "walk a list of kernel netstacks",
4486 netstack_walk_init, netstack_walk_step, NULL },
4487
4488 /* from nvpair.c */
4489 { NVPAIR_WALKER_NAME, NVPAIR_WALKER_DESCR,
4490 nvpair_walk_init, nvpair_walk_step, NULL },
4491
4492 /* from rctl.c */
4493 { "rctl_dict_list", "walk all rctl_dict_entry_t's from rctl_lists",
4494 rctl_dict_walk_init, rctl_dict_walk_step, NULL },
4495 { "rctl_set", "given a rctl_set, walk all rctls", rctl_set_walk_init,
4496 rctl_set_walk_step, NULL },
4497 { "rctl_val", "given a rctl_t, walk all rctl_val entries associated",
4498 rctl_val_walk_init, rctl_val_walk_step },
4499
4500 /* from sobj.c */
4501 { "blocked", "walk threads blocked on a given sobj",
4502 blocked_walk_init, blocked_walk_step, NULL },
|
4064 pattr2multidata },
4065 { "pdesc2slab", ":", "print pdesc slab pointer from pdesc_t",
4066 pdesc2slab },
4067 { "pdesc_verify", ":", "verify integrity of a pdesc_t", pdesc_verify },
4068 { "slab2multidata", ":", "print multidata pointer from pdesc_slab_t",
4069 slab2multidata },
4070
4071 /* from modhash.c */
4072 { "modhash", "?[-ceht] [-k key] [-v val] [-i index]",
4073 "display information about one or all mod_hash structures",
4074 modhash, modhash_help },
4075 { "modent", ":[-k | -v | -t type]",
4076 "display information about a mod_hash_entry", modent,
4077 modent_help },
4078
4079 /* from net.c */
4080 { "dladm", "?<sub-command> [flags]", "show data link information",
4081 dladm, dladm_help },
4082 { "mi", ":[-p] [-d | -m]", "filter and display MI object or payload",
4083 mi },
4084 { "netstat", "[-arv] [-f inet | inet6 | unix] [-P tcp | udp | icmp | dccp]",
4085 "show network statistics", netstat },
4086 { "sonode", "?[-f inet | inet6 | unix | #] "
4087 "[-t stream | dgram | raw | #] [-p #]",
4088 "filter and display sonode", sonode },
4089
4090 /* from netstack.c */
4091 { "netstack", "", "show stack instances", netstack },
4092
4093 /* from nvpair.c */
4094 { NVPAIR_DCMD_NAME, NVPAIR_DCMD_USAGE, NVPAIR_DCMD_DESCR,
4095 nvpair_print },
4096 { NVLIST_DCMD_NAME, NVLIST_DCMD_USAGE, NVLIST_DCMD_DESCR,
4097 print_nvlist },
4098
4099 /* from pg.c */
4100 { "pg", "?[-q]", "display a pg", pg},
4101
4102 /* from rctl.c */
4103 { "rctl_dict", "?", "print systemwide default rctl definitions",
4104 rctl_dict },
4463 modhash_walk_step, NULL },
4464 { "modent", "walk list of entries in a given mod_hash",
4465 modent_walk_init, modent_walk_step, modent_walk_fini },
4466 { "modchain", "walk list of entries in a given mod_hash_entry",
4467 NULL, modchain_walk_step, NULL },
4468
4469 /* from net.c */
4470 { "icmp", "walk ICMP control structures using MI for all stacks",
4471 mi_payload_walk_init, mi_payload_walk_step, NULL,
4472 &mi_icmp_arg },
4473 { "mi", "given a MI_O, walk the MI",
4474 mi_walk_init, mi_walk_step, mi_walk_fini, NULL },
4475 { "sonode", "given a sonode, walk its children",
4476 sonode_walk_init, sonode_walk_step, sonode_walk_fini, NULL },
4477 { "icmp_stacks", "walk all the icmp_stack_t",
4478 icmp_stacks_walk_init, icmp_stacks_walk_step, NULL },
4479 { "tcp_stacks", "walk all the tcp_stack_t",
4480 tcp_stacks_walk_init, tcp_stacks_walk_step, NULL },
4481 { "udp_stacks", "walk all the udp_stack_t",
4482 udp_stacks_walk_init, udp_stacks_walk_step, NULL },
4483 { "dccp_stacks", "walk all the dccp_stack_t",
4484 dccp_stacks_walk_init, dccp_stacks_walk_step, NULL },
4485
4486 /* from netstack.c */
4487 { "netstack", "walk a list of kernel netstacks",
4488 netstack_walk_init, netstack_walk_step, NULL },
4489
4490 /* from nvpair.c */
4491 { NVPAIR_WALKER_NAME, NVPAIR_WALKER_DESCR,
4492 nvpair_walk_init, nvpair_walk_step, NULL },
4493
4494 /* from rctl.c */
4495 { "rctl_dict_list", "walk all rctl_dict_entry_t's from rctl_lists",
4496 rctl_dict_walk_init, rctl_dict_walk_step, NULL },
4497 { "rctl_set", "given a rctl_set, walk all rctls", rctl_set_walk_init,
4498 rctl_set_walk_step, NULL },
4499 { "rctl_val", "given a rctl_t, walk all rctl_val entries associated",
4500 rctl_val_walk_init, rctl_val_walk_step },
4501
4502 /* from sobj.c */
4503 { "blocked", "walk threads blocked on a given sobj",
4504 blocked_walk_init, blocked_walk_step, NULL },
|