ATLAS Offline Software
Loading...
Searching...
No Matches
PageAccessControl.cxx File Reference
#include <algorithm>
#include <sys/mman.h>
#include "CxxUtils/PageAccessControl.h"
#include "CxxUtils/page_access.h"
#include "CxxUtils/checker_macros.h"
#include <iostream>
Include dependency graph for PageAccessControl.cxx:

Go to the source code of this file.

Macros

#define DEBUG   1

Functions

const void * page_address (const void *addr)
void * next_page_address (void *addr)

Macro Definition Documentation

◆ DEBUG

#define DEBUG   1

Definition at line 5 of file PageAccessControl.cxx.

Function Documentation

◆ next_page_address()

void * athena::next_page_address ( void * addr)

Definition at line 17 of file page_access.cxx.

17 {
18 return (void*)(((long)addr & ~(PAGESIZE-1)) + PAGESIZE);
19 }
const size_t PAGESIZE

◆ page_address()

const void * athena::page_address ( const void * addr)

Definition at line 11 of file page_access.cxx.

11 {
12 return (const void*)((long)addr & ~(PAGESIZE-1));
13 }