Oliver Yang wrote:
Hi Guys,
If I use kmem_alloc to alloc a buffer less than 4K, can it ensure that
buffer doesn't cross the page boundary(4k on x86)?
It probably won't cross a page boundary, but the DDI does not guarantee
this.
If you want to provide guarantees like this, use ddi_dma_mem_alloc()
with attributes that specify that page boundaries should not be crossed.
- Garrett
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code