GNU/Linux & PCI (Express): Part 10 - Accessing PCI(e) IO ports from userspace
Вставка
- Опубліковано 1 жов 2024
- #GNU #Linux #PCIe #PCI #Programming #Tutorial #foss
In this series I already covered how to access the config and memory space of a PCI or PCI Express device from userspace. So, there is one address space missing. In this video I will show you how to access the IO ports of a PCI or PCI Express devices from userspace in a simple C application. Enjoy!
You want to support my work? You can buy me a coffee here: www.buymeacoff...
If you want to contact me, you can find my E-Mail on www.gnu-linux.rocks
WunderBAR 😉 Really nice series of tuts, no nonsense just plain, interesting info. Subscribed.
‘gnu slash linux’ …. 🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️ jezzzz that is profoundly stupid…
Very nice explanation as usual, thank you for another great video! Aren't there any plans for creating userspace drivers with the use of VFIO? It would be incredibly interesting!
Thanks.
No concret plans but I am currently preparing a Video on uio for the near Future.
Thanks Johannes for the wonderful explanation. Here why are you not using mmap() ? Is mmap() not possible here or you are trying out a different method ? Are these address space different from memory address space ?
@@ShreyaMandal-f7b you are welcome ;) you can only memory map memory but Not io Ports. Thats why I am using the io functions here.
But modern devices don't use Classic io Ports any longer. Instead they are using memory mapped io (mmio) which can bei accessed with mmap.
Wow, this is really cool! Thank you so much for this!!
Great job dude 😊
very good
Nice explanation.. Thanks Team