I am writing a PCIe driver for Linux, currently without DMA, and I need to know how to read and write to a PCIe device when it is turned on from user space.
In the driver, I do the basics in probe ():
pci_enable_device(); pci_request_regions(); pci_iomap();
But how can I access this memory from user space for reading and writing? Do I add files to my PCIe driver? Does the pci_iomap memory appear in any place where user space code can be called:
open('mapped memory location'); mmap(...);
If so, what is the location?
Note. A PCIe device will not connect to any Linux subsystem, such as audio, Ethernet, etc.
source share