Subject: kernel mem
To: NetBSD technical kernel mailing list <>
From: David Ferlier <>
List: tech-kern
Date: 01/08/2003 17:42:24

I am writing a piece of code (a filesystem), and i need to alloc kernel memory of
a dynamic size for bitmap cache stuff.

For the moment, i alloc'ed all that with uvm_km_zalloc, and then i read the
vm_space structure, and do a loop over all the vm_map_entry structures it contains.

I didn't test the code, but i'd like to know which of the uvm api or malloc(9) api (with
a special type specific to the filesystem) to choose (before going further)

Thanks in advance.


David Ferlier	-     ||	- Of Course It Runs NetBSD