The Pedigree Project 0.1
vm-syscalls.h
1/* Copyright (c) 2026, Pedigree Developers. */
2#ifndef POSIX_VM_SYSCALLS_H
3#define POSIX_VM_SYSCALLS_H
4
5#include "pedigree/kernel/processor/types.h"
6
7void* posix_mremap(void* oldAddress, size_t oldLength, size_t newLength, int flags,
8 void* newAddress);
9int posix_mincore(void* address, size_t length, unsigned char* vector);
10int posix_madvise(void* address, size_t length, int advice);
11int posix_remap_file_pages(void* address, size_t length, size_t prot, size_t pageOffset,
12 size_t flags);
13int posix_mlock(const void* address, size_t length, unsigned int flags);
14int posix_munlock(const void* address, size_t length);
15int posix_mlockall(int flags);
16int posix_munlockall();
17
18#endif