Adding upstream version 2.7.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
04338f02fe
commit
d6e1a5d456
663 changed files with 15529 additions and 6994 deletions
20
util/mem.h
Normal file
20
util/mem.h
Normal 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_ */
|
Loading…
Add table
Add a link
Reference in a new issue