📨 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
30
bool
chic_pin
(
void
*addr,
size_t
size);
31
44
bool
chic_unpin
(
void
*addr,
size_t
size);
45
60
void
*
chic_prefault
(
void
*addr,
size_t
size);
61
62
#ifdef __cplusplus
63
}
64
#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.
chic_pin
bool chic_pin(void *addr, size_t size)
Pins an object in memory, preventing it from being paged out.
chic_unpin
bool chic_unpin(void *addr, size_t size)
Unpins an object that was previously pinned in memory using chic_pin, permitting its memory to be pag...
include
pin.h
Generated on
for 📨 chic by
1.17.0