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

hongz at hongz at
Thu May 11 09:45:04 UTC 2006

Hi guys:


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!


Thanks a lot!



More information about the freebsd-hackers mailing list