我想从用户区访问PCIe IO。
在模块驱动程序中,我可以使用ioremap()返回的指针进行写/读而没有任何问题。
从userland,我想使用mmap()返回的指针,但是主机挂起我在PCIe总线上写入或读取的内容。
我在文件操作结构中实现了mmap调用,该结构调用 EditText cat = (EditText)findViewById(R.id.editText10);
String cate = cat.getText().toString();
adapter.insert(cate, 0);
,其中start是pci_resource_start()返回的值。
我错过了什么?
请注意,我的模块在x86上运行正常。
谢谢,
佛瑞德