]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: replace libhugetlbfs with mmap and madvise
authorDaniel Wagner <dwagner@suse.de>
Fri, 17 Nov 2023 08:01:35 +0000 (09:01 +0100)
committerDaniel Wagner <wagi@monom.org>
Fri, 1 Dec 2023 09:39:47 +0000 (10:39 +0100)
commit51e68f773bc16e6a0b0bfa954b9c27e5784b4da5
treee2679ce426cdc5fd8f2ba340cc1daa99aaef5f47
parent160d49709ecb63bf119186c1c1eeb5100a9fbea1
nvme: replace libhugetlbfs with mmap and madvise

Instead depending on libhugetlbfs for large memory allocation mapping
just use mmap and madvise for trying to allocate contiguous memory.

While at it also introduce an auto cleanup helper.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
meson.build
meson_options.txt
nvme.c
plugins/micron/micron-nvme.c
plugins/scaleflux/sfx-nvme.c
plugins/wdc/wdc-nvme.c
plugins/zns/zns.c
util/cleanup.h
util/mem.c
util/mem.h