]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add the MEM_EXTRACT_PADDR ioctl to /dev/mem.
authorMark Johnston <markj@FreeBSD.org>
Wed, 2 Sep 2020 18:12:47 +0000 (18:12 +0000)
committerMark Johnston <markj@FreeBSD.org>
Wed, 2 Sep 2020 18:12:47 +0000 (18:12 +0000)
commit2d838cd867e32267fe6610c3bf2edf09f67f3ac4
tree02c7347ef20ceb7b8f217d51ad7c7dda4760ba77
parent662c3e20840136baf2ba4ecac654866491f86d7c
Add the MEM_EXTRACT_PADDR ioctl to /dev/mem.

This allows privileged userspace processes to find information about the
physical page backing a given mapping.  It is useful in applications
such as DPDK which perform some of their own memory management.

Reviewed by: kib, jhb (previous version)
MFC after: 2 weeks
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara Inc.
Differential Revision: https://reviews.freebsd.org/D26237
17 files changed:
share/man/man4/mem.4
sys/amd64/amd64/mem.c
sys/amd64/include/memdev.h
sys/arm/arm/mem.c
sys/arm/include/memdev.h
sys/arm64/arm64/mem.c
sys/arm64/include/memdev.h
sys/dev/mem/memdev.c
sys/i386/i386/mem.c
sys/i386/include/memdev.h
sys/mips/include/memdev.h
sys/mips/mips/mem.c
sys/powerpc/include/memdev.h
sys/powerpc/powerpc/mem.c
sys/riscv/include/memdev.h
sys/riscv/riscv/mem.c
sys/sys/memrange.h