Skip to content
Pavel A edited this page Apr 7, 2016 · 19 revisions

Why yet another variation of the honorable devmem utility (a.k.a. devmem2) ?

  • Parameters validation. The original variant skips it.

  • limit the spew to help parsing output

  • Remove the mandatory read-back after write (but left it as option)

The memory we need to access is I/O memory, a memory mapped thru some PCI device's BARs. The BAR physical base address will vary on different host systems. (Yes I know about /sys/bus/pci... but we have a lot of existing code that uses fixed physical addresses).

There are two versions: branch master (tags "0.xxx-tc") is drop-in compatible with devmem2 (except the output is slightly different).

The other branch (tags "1.x-tc") is temporary and will be deleted.

Clone this wiki locally