Reputation: 41
I am writing a pci driver
for a PCIe FPGA
card.
I am not sure how to implement the "read" and "write" functions - How to use the arguments:
struct file *filp, char _ _user *buff, size_t count, loff_t *offp
, correctly in order to do reads and writes to pci memory space.
Can you give me examples of how to use these functions, along with an example of using open/release as well.
Upvotes: 4
Views: 2711