tag | line | file | source code |
---|---|---|---|
T | 34 | mm/mmap.c | #define MTYP(T) ((T) & MAP_TYPE) |
T | 35 | mm/mmap.c | #define PREAD(T,P) (((P) & PROT_READ) ? 1 : 0) |
T | 36 | mm/mmap.c | #define PWRITE(T,P) (((P) & PROT_WRITE) ? (MTYP(T) == MAP_SHARED ? 2 : 10) : 0) |
T | 37 | mm/mmap.c | #define PEXEC(T,P) (((P) & PROT_EXEC) ? 4 : 0) |
T | 38 | mm/mmap.c | #define PERMISS(T,P) (PREAD(T,P)|PWRITE(T,P)|PEXEC(T,P)) |