On 5/1/25 13:01, Arnd Bergmann wrote:
If there is software that still relies on those hacks, it's probably very old, and more likely to be on 32-bit systems. There are many references to /dev/mem in Debian codesearch [1], but it's usually related to pre-PCIe graphics (svgalib, XFree86, uvesafb/v86), or it's memory-only accesses that rely on !CONFIG_STRICT_DEVMEM to read kernel structures.
Arnd
[1] https://codesearch.debian.net/search?q=%2Fdev%2Fmem&literal=1&perpkg...
I did basically the same exercise a week or two ago. I really didn't see any examples that concerned me. I completely agree that it looked very much limited to old, crusty code that either doesn't matter at _all_ or code that falls back to newer mechanisms on modern CONFIG_STRICT_DEVMEM=y systems.