Physical Memory

Hi,
My problem is next....
How can I work with physical memory in the Unix FreeBSD 2.2 or hight?
What is the "mem" & "kmem" drivers?

P.S./ writing device driver for UNIX FreeBSD 2.2 :smiley:

The mem driver does let you access physical memory. You can seek and read (or write) to any physical address.

The kmem driver gives you access to the kernel's virtual address space.

But both are intended to be used from userland. If, for some reason, you want to do this stuff inside a driver, you should examine the code for the kmem and mem pseudodrivers to see how they work on your system. Then you should do the same thing in your driver.

Ok