Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2010 15:26:30 +0530
From:      kc nainwal <kcnainwal@gmail.com>
To:        freebsd-hackers@freebsd.org
Cc:        kc nainwal <kcnainwal@gmail.com>
Subject:   how to do page level mem alloc in freebsd kernel?
Message-ID:  <AANLkTikmJe25OTGOtHIT7-1ZcwVSbw8ZOX0L30YKby6k@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikmJe25OTGOtHIT7-1ZcwVSbw8ZOX0L30YKby6k>