2009/3/7 Robert Watson <[email protected]> > On Wed, 4 Mar 2009, Alexej Sokolov wrote: > > how can I get the size and pointer of some allocated uma zone ? For >> example: zone_pack >> > > Could you tell us a bit more about the context in which you want to do > this?
Interrupt kontext. > Normally kernel modules acquire pointers to globally visible zones via a > symbol dependency resolved by the kernel linker (zone_pack is a globally > visible symbol in the kernel). But what about the size ? Do the UMA zones have fixed sizes? What I want to do is to remap zone_pack into the user space in order to give user applications access to mbuf clusters with frames. > Our general userspace monitoring tools, such as vmstat -z, don't display > the UMA zone pointers, and a pointer to the zone is not exported by the > sysctls it depends on, currently, but if you run kgdb on kernel.symbols you > should be able to print out the address of the global zone_pack directly. > > Robert N M Watson > Computer Laboratory > University of Cambridge Thanx a lot! _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[email protected]"

