Baolu Lu 写道: > Hi, > > How can I allocate a locked page in the driver? The kmem_allocate > interface can't guarantee the physical continuity on that large. I > searched the kernel source tree, and some drivers, such as the ramdisk > driver, have some functions to allocate a hole page. But, does the > Solaris kernel has an interface to allocate a page? Or, if I want one, > what are the general steps to allocate? And, which interfaces should > be used? > > Thanks, > Allen > _______________________________________________ > driver-discuss mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/driver-discuss > One way is to use ddi_dma_mem_alloc(9F). You can easily find the example code in NIC/WiFi driver.
- Michael _______________________________________________ driver-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/driver-discuss
