Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access physical memory in linux from userspace?

I have a physical memory address, which driver provide me through ioctl. How can I access it in my application in linux.

like image 601
SunnyShah Avatar asked May 13 '26 07:05

SunnyShah


1 Answers

If you absolutely have to, use the functions mmap and mprotect from the header <unistd.h> Open /dev/mem


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!