I would like to write into the VGA memory (video memory, not buffer) from user space by mmap-ing in user space and sending the address to kernel space where, i would use pfn remap to map those mmap-ed address to the vga memory (i'll get the address through lspci). And by doing so, i want to display an image/logo on screen? any help regarding this?
No need to jump through all those hoops.
Map the corresponding /sys/devices/pci<addr>/resource<N>
-file into your process's memory via mmap
, et voilà, direct access to PCI memory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With