module revision 1.1
11.1Syamtdefine modules
21.1Syamt	set $h = module_list
31.1Syamt	set $e = $h->tqh_first
41.1Syamt	while ($e != 0)
51.1Syamt		if ($e->mod_kobj != 0)
61.1Syamt			printf "module %s\t0x%016x-0x%016x\n", \
71.1Syamt			    $e->mod_info.mi_name, \
81.1Syamt			    $e->mod_kobj->ko_address, \
91.1Syamt			    $e->mod_kobj->ko_address + $e->mod_kobj->ko_size
101.1Syamt		else
111.1Syamt			printf "module %s\n", \
121.1Syamt			    $e->mod_info.mi_name
131.1Syamt		end
141.1Syamt		set $e = $e->mod_chain.tqe_next
151.1Syamt	end
161.1Syamtend
17