MOS Source Code
Loading...
Searching...
No Matches
mm_types.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2// This file defines the flags for mmap_anonymous and mmap_file system calls.
3
4#pragma once
5
6typedef enum
7{
9 MEM_PERM_READ = 1 << 0, // the memory is readable
10 MEM_PERM_WRITE = 1 << 1, // the memory is writable
11 MEM_PERM_EXEC = 1 << 2, // the memory is executable
13
14typedef enum
15{
16 MMAP_EXACT = 1 << 0, // map the memory at the exact address specified
17 MMAP_PRIVATE = 1 << 1, // the memory is private, and will be CoWed when forking
18 MMAP_SHARED = 1 << 2, // the memory is shared when forking
mem_perm_t
Definition mm_types.h:7
@ MEM_PERM_NONE
Definition mm_types.h:8
@ MEM_PERM_EXEC
Definition mm_types.h:11
@ MEM_PERM_READ
Definition mm_types.h:9
@ MEM_PERM_WRITE
Definition mm_types.h:10
mmap_flags_t
Definition mm_types.h:15
@ MMAP_PRIVATE
Definition mm_types.h:17
@ MMAP_EXACT
Definition mm_types.h:16
@ MMAP_SHARED
Definition mm_types.h:18