DPDK
19.08.0-rc0
Main Page
Related Pages
+
Data Structures
Data Structures
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
w
+
Functions
_
c
e
p
r
s
t
+
Variables
b
c
l
m
r
+
Typedefs
a
c
d
e
h
l
m
p
r
s
u
+
Enumerations
r
+
Enumerator
c
e
f
i
m
r
s
w
+
Macros
_
b
c
d
e
i
l
m
o
p
r
s
t
u
v
Examples
lib
librte_eal
common
include
rte_malloc_heap.h
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(c) 2010-2014 Intel Corporation
3
*/
4
5
#ifndef _RTE_MALLOC_HEAP_H_
6
#define _RTE_MALLOC_HEAP_H_
7
8
#include <stddef.h>
9
#include <sys/queue.h>
10
#include <
rte_spinlock.h
>
11
#include <
rte_memory.h
>
12
13
/* Number of free lists per heap, grouped by size. */
14
#define RTE_HEAP_NUM_FREELISTS 13
15
#define RTE_HEAP_NAME_MAX_LEN 32
16
17
/* dummy definition, for pointers */
18
struct
malloc_elem;
19
23
struct
malloc_heap
{
24
rte_spinlock_t
lock;
25
LIST_HEAD(, malloc_elem) free_head[RTE_HEAP_NUM_FREELISTS];
26
struct
malloc_elem *
volatile
first;
27
struct
malloc_elem *
volatile
last;
28
29
unsigned
alloc_count;
30
unsigned
int
socket_id;
31
size_t
total_size;
32
char
name[RTE_HEAP_NAME_MAX_LEN];
33
}
__rte_cache_aligned
;
34
35
#endif
/* _RTE_MALLOC_HEAP_H_ */
rte_memory.h
malloc_heap
Definition:
rte_malloc_heap.h:23
rte_spinlock_t
Definition:
rte_spinlock.h:30
rte_spinlock.h
__rte_cache_aligned
#define __rte_cache_aligned
Definition:
rte_memory.h:66
Generated by
1.8.15