Shared Persistent Heap Data Environment Manual  1.1.0
sasmsync.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009-2014 IBM Corporation.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation, Steven Munroe - initial API and implementation
10  */
11 
12 #ifndef __SAS_MSYNC_H
13 #define __SAS_MSYNC_H
14 
24 #define SAS_ASYNC 1
25 
26 #define SAS_SYNC 0
27 
29 #ifdef __cplusplus
30 #define __C__ "C"
31 #else
32 #define __C__
33 #endif
34 
46 extern __C__ int sasMsyncPurge(void *startAddr, size_t size, int asyncBool);
47 
57 extern __C__ int sasMsyncRelease(void *startAddr, size_t size);
58 
67 extern __C__ int sasMsyncBring(void *startAddr, size_t size);
68 
78 extern __C__ int sasMsyncSequential(void *startAddr, size_t size);
79 
89 extern __C__ int sasMsyncRandom(void *startAddr, size_t size);
90 
100 extern __C__ int sasMsyncWrite(void *startAddr, size_t size, int asyncBool);
101 
102 #endif
103 
__C__ int sasMsyncRandom(void *startAddr, size_t size)
Inform the kernel that those pages will be needed soon and will be accessed in random order...
__C__ int sasMsyncPurge(void *startAddr, size_t size, int asyncBool)
Write a range of pages to persistent storage and inform the kernel that those pages can be removed fr...
__C__ int sasMsyncRelease(void *startAddr, size_t size)
Inform the kernel that those pages can be removed from real memory.
#define __C__
ignore this macro behind the curtain
Definition: sasmsync.h:32
__C__ int sasMsyncWrite(void *startAddr, size_t size, int asyncBool)
Write a range of pages to persistent storage.
__C__ int sasMsyncBring(void *startAddr, size_t size)
Inform the kernel that those pages will be needed soon.
__C__ int sasMsyncSequential(void *startAddr, size_t size)
Inform the kernel that those pages will be needed soon and will be accessed in sequential order...