title: How do I read data from bar 0, from userspace, on a pci-e card in linux?
body: <p>On windows there is this program called <a href="http://www.pcitree.de/" rel="noreferrer">pcitree</a> that allows you to set and read memory without writing a device driver. Is there a linux alternative to pcitree that will allow me read memory on block 0 of my pcie card? </p>
  
  <p>A simple use case would be that I use driver code to write a 32bit integer on the first memory address in block zero of my pci-e card. I then use pcitree alternative to read the value at the first memory address of block zero and see my integer.</p>
  
  <p>Thank you</p>