I'd say yes.
you could let uma hold them for you
as it has support for 'constructors and destructors' for
types you ask it to manage. it will call the constructor whenever it needs
to create a new one and teh destructor when it gives that memeory
back to the system. In between the two operations, the
memory is type-stable, so you can have it 
allocate arbitrarily complicated objects.

I'm allocating thread structures, which have KVM mapped kernel stacks
hanging off them. So what UMA is handing me is not a simple mamory object
but a structure, which owns a vm object and anothermamory range
linked to it. (including the PCB). there is no reason uma cannot
and you a mbuf wit a cluster already on it..

Julian



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to