how to do page level mem alloc in freebsd kernel?

kalash nainwal kalash.nainwal at gmail.com
Thu Jul 15 10:56:49 UTC 2010


Hi,

I want to allocate one (or more) pages in kernel space.
I'm not sure what is the api in freebsd (something which
is similar to __get_free_pages() of linux).

Would malloc(4096, ...) guarantee that the returned
address is aligned on page boundary?

Thanks and regards,
-Kalash


More information about the freebsd-hackers mailing list