summaryrefslogtreecommitdiffstats
path: root/util/oslib-posix.c
diff options
context:
space:
mode:
authorMurilo Opsfelder Araujo2019-01-31 00:36:04 +0100
committerMichael S. Tsirkin2019-02-05 16:58:33 +0100
commit94af9e34821c5c47a3c69fe242e32d0b33c2fff6 (patch)
tree4e0200ccc4c551f78fca154740fd468720240bfe /util/oslib-posix.c
parenti386, acpi: cleanup build_facs by removing second unused argument (diff)
downloadqemu-94af9e34821c5c47a3c69fe242e32d0b33c2fff6.tar.gz
qemu-94af9e34821c5c47a3c69fe242e32d0b33c2fff6.tar.xz
qemu-94af9e34821c5c47a3c69fe242e32d0b33c2fff6.zip
mmap-alloc: unfold qemu_ram_mmap()
Unfold parts of qemu_ram_mmap() for the sake of understanding, moving declarations to the top, and keeping architecture-specifics in the ifdef-else blocks. No changes in the function behaviour. Give ptr and ptr1 meaningful names: ptr -> guardptr : pointer to the PROT_NONE guard region ptr1 -> ptr : pointer to the mapped memory returned to caller Signed-off-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'util/oslib-posix.c')
0 files changed, 0 insertions, 0 deletions