]> git.proxmox.com Git - mirror_qemu.git/commit - backends/hostmem.c
util: Cleanup and rename os_mem_prealloc()
authorDavid Hildenbrand <david@redhat.com>
Fri, 14 Oct 2022 13:47:14 +0000 (15:47 +0200)
committerDavid Hildenbrand <david@redhat.com>
Thu, 27 Oct 2022 09:00:28 +0000 (11:00 +0200)
commit6556aadc18c560e493b29dd99cae2cbf86d214cb
tree7d4b15d6988db2f112fab919483a2b783ad7856a
parentd0180f0acb142ca78e30857b8d8511ee9f3bd764
util: Cleanup and rename os_mem_prealloc()

Let's
* give the function a "qemu_*" style name
* make sure the parameters in the implementation match the prototype
* rename smp_cpus to max_threads, which makes the semantics of that
  parameter clearer

... and add a function documentation.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Message-Id: <20221014134720.168738-2-david@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
backends/hostmem.c
hw/virtio/virtio-mem.c
include/qemu/osdep.h
softmmu/cpus.c
util/oslib-posix.c
util/oslib-win32.c