libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
alloc_pages.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include<libtransistor/types.h>
13 
14 #include<stdint.h>
15 
37 void *alloc_pages(size_t min, size_t max, size_t *actual);
38 
51 bool free_pages(void *pages);
52 
53 #ifdef __cplusplus
54 }
55 #endif
Various system types.
bool free_pages(void *pages)
Frees memory pages returned from alloc_pages.
void * alloc_pages(size_t min, size_t max, size_t *actual)
Allocates memory pages.