Loading...
Searching...
No Matches
sasmsync.h
Go to the documentation of this file.
/*
* Copyright (c) 2009-2014 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation, Steven Munroe - initial API and implementation
*/
#ifndef __SAS_MSYNC_H
#define __SAS_MSYNC_H
#define SAS_ASYNC 1
#define SAS_SYNC 0
#ifdef __cplusplus
#define __C__ "C"
#else
#define __C__
#endif
extern __C__ int sasMsyncPurge(void *startAddr, size_t size, int asyncBool);
extern __C__ int sasMsyncRelease(void *startAddr, size_t size);
extern __C__ int sasMsyncBring(void *startAddr, size_t size);
extern __C__ int sasMsyncSequential(void *startAddr, size_t size);
extern __C__ int sasMsyncRandom(void *startAddr, size_t size);
extern __C__ int sasMsyncWrite(void *startAddr, size_t size, int asyncBool);
#endif
sasMsyncSequential
__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.
sasMsyncPurge
__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__
#define __C__
ignore this macro behind the curtain
Definition sasmsync.h:32
sasMsyncBring
__C__ int sasMsyncBring(void *startAddr, size_t size)
Inform the kernel that those pages will be needed soon.
sasMsyncRandom
__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.
sasMsyncRelease
__C__ int sasMsyncRelease(void *startAddr, size_t size)
Inform the kernel that those pages can be removed from real memory.
sasMsyncWrite
__C__ int sasMsyncWrite(void *startAddr, size_t size, int asyncBool)
Write a range of pages to persistent storage.