1
0
Fork 0

Adding upstream version 2.7.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-16 12:25:41 +01:00
parent 04338f02fe
commit d6e1a5d456
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
663 changed files with 15529 additions and 6994 deletions

20
util/mem.h Normal file
View file

@ -0,0 +1,20 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef MEM_H_
#define MEM_H_
#include <stddef.h>
#include <stdbool.h>
void *nvme_alloc(size_t len);
void *nvme_realloc(void *p, size_t len);
struct nvme_mem_huge {
size_t len;
bool posix_memalign; /* p has been allocated using posix_memalign */
void *p;
};
void *nvme_alloc_huge(size_t len, struct nvme_mem_huge *mh);
void nvme_free_huge(struct nvme_mem_huge *mh);
#endif /* MEM_H_ */