mem: support mapping hugepages at runtime
[dpdk.git] / lib / librte_eal / bsdapp / eal / eal_memalloc.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2017-2018 Intel Corporation
3  */
4
5 #include <inttypes.h>
6
7 #include <rte_log.h>
8 #include <rte_memory.h>
9
10 #include "eal_memalloc.h"
11
12 int
13 eal_memalloc_alloc_seg_bulk(struct rte_memseg **ms __rte_unused,
14                 int __rte_unused n_segs, size_t __rte_unused page_sz,
15                 int __rte_unused socket, bool __rte_unused exact)
16 {
17         RTE_LOG(ERR, EAL, "Memory hotplug not supported on FreeBSD\n");
18         return -1;
19 }
20
21 struct rte_memseg *
22 eal_memalloc_alloc_seg(size_t __rte_unused page_sz, int __rte_unused socket)
23 {
24         RTE_LOG(ERR, EAL, "Memory hotplug not supported on FreeBSD\n");
25         return NULL;
26 }