help:How to map a physical address into a kernel address?

M. Warner Losh imp at bsdimp.com
Sat May 13 00:36:02 UTC 2006


In message: <1147340690$36076$55833599 at hongz@promisechina.com>
            <hongz at promisechina.com> writes:
: To access sg_table in kernel address, I need to map the starting physical
: address of a segment into a kernel address. As I know that, we can use
: phystovirt()/bustovirt(), or kmap()/kmap_atomic() to map a bus/physical
: address or a physical page into a kernel address in Linux, but I did not
: find such a function in FreeBSD. Please help me on this, it is very urgent!

Use busdma.

Warner


More information about the freebsd-hackers mailing list