📨 chic
0.0.0
Realtime-safe channels in C
Toggle main menu visibility
Loading...
Searching...
No Matches
pin.h
Go to the documentation of this file.
1
// This Source Code Form is subject to the terms of the Mozilla Public
2
// License, v. 2.0. If a copy of the MPL was not distributed with this
3
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
9
10
#pragma once
11
#include <stddef.h>
12
#ifdef __cplusplus
13
extern
"C"
{
14
#elif __STDC_VERSION__ < 202311L
15
#include <stdbool.h>
16
#endif
17
18
#ifdef CHIC_BUILD_PIN
19
33
bool
chic_pin(
void
*addr,
size_t
size);
34
48
bool
chic_unpin(
void
*addr,
size_t
size);
49
50
#endif
// CHIC_BUILD_PIN
51
66
void
*
chic_prefault
(
void
*addr,
size_t
size);
67
68
#ifdef __cplusplus
69
}
70
#endif
chic_prefault
void * chic_prefault(void *addr, size_t size)
Writes zeroes to several locations in a memory range to trigger page faults ahead of time.
include
pin.h
Generated on
for 📨 chic by
1.17.0