Tor
0.4.9.2-alpha-dev
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
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
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
b
c
d
f
g
h
l
m
n
o
p
r
s
v
Enumerations
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
g
h
i
m
n
o
p
q
r
s
t
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
ext
equix
hashx
src
virtual_memory.h
1
/* Copyright (c) 2020 tevador <tevador@gmail.com> */
2
/* See LICENSE for licensing information */
3
4
#ifndef VIRTUAL_MEMORY_H
5
#define VIRTUAL_MEMORY_H
6
7
#include <stdint.h>
8
#include <stddef.h>
9
#include <stdbool.h>
10
#include <hashx.h>
11
12
#define ALIGN_SIZE(pos, align) ((((pos) - 1) / (align) + 1) * (align))
13
14
HASHX_PRIVATE
void
* hashx_vm_alloc(
size_t
size);
15
HASHX_PRIVATE
bool
hashx_vm_rw(
void
* ptr,
size_t
size);
16
HASHX_PRIVATE
bool
hashx_vm_rx(
void
* ptr,
size_t
size);
17
HASHX_PRIVATE
void
hashx_vm_free(
void
* ptr,
size_t
size);
18
19
#ifdef EQUIX_SUPPORT_HUGEPAGES
20
HASHX_PRIVATE
void
* hashx_vm_alloc_huge(
size_t
size);
21
#endif
22
23
#endif
Generated by
1.9.4