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
6
typedef
enum
7
{
8
MEM_PERM_NONE
= 0,
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
12
}
mem_perm_t
;
13
14
typedef
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
19
}
mmap_flags_t
;
mem_perm_t
mem_perm_t
Definition
mm_types.h:7
MEM_PERM_NONE
@ MEM_PERM_NONE
Definition
mm_types.h:8
MEM_PERM_EXEC
@ MEM_PERM_EXEC
Definition
mm_types.h:11
MEM_PERM_READ
@ MEM_PERM_READ
Definition
mm_types.h:9
MEM_PERM_WRITE
@ MEM_PERM_WRITE
Definition
mm_types.h:10
mmap_flags_t
mmap_flags_t
Definition
mm_types.h:15
MMAP_PRIVATE
@ MMAP_PRIVATE
Definition
mm_types.h:17
MMAP_EXACT
@ MMAP_EXACT
Definition
mm_types.h:16
MMAP_SHARED
@ MMAP_SHARED
Definition
mm_types.h:18
kernel
include
public
mos
mm
mm_types.h
Generated on Sun Sep 1 2024 18:22:52 for MOS Source Code by
1.12.0