PatchworkOS
Loading...
Searching...
No Matches
munmap.c
Go to the documentation of this file.
1#include <stdio.h>
2#include <sys/io.h>
3
5
7{
8 uint64_t result = _syscall_munmap(address, length);
9 if (result == ERR)
10 {
12 }
13 return result;
14}
#define errno
Error number variable.
Definition errno.h:27
uint64_t munmap(void *address, uint64_t length)
System call to unmap mapped memory.
Definition munmap.c:6
#define ERR
Integer error value.
Definition ERR.h:17
static uintptr_t address
Definition hpet.c:12
static uint64_t _syscall_munmap(void *address, uint64_t length)
Definition syscalls.h:198
static errno_t _syscall_errno(void)
Definition syscalls.h:118
__UINT64_TYPE__ uint64_t
Definition stdint.h:17