IOR
Functions | Variables
aiori-MMAP.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <assert.h>
#include "ior.h"
#include "aiori.h"
#include "iordef.h"
#include "utilities.h"
Include dependency graph for aiori-MMAP.c:

Go to the source code of this file.

Functions

static void * MMAP_Create (char *, IOR_param_t *)
 
static void * MMAP_Open (char *, IOR_param_t *)
 
static IOR_offset_t MMAP_Xfer (int, void *, IOR_size_t *, IOR_offset_t, IOR_param_t *)
 
static void MMAP_Close (void *, IOR_param_t *)
 
static void MMAP_Fsync (void *, IOR_param_t *)
 
static void ior_mmap_file (int *file, IOR_param_t *param)
 

Variables

ior_aiori_t mmap_aiori
 

Function Documentation

◆ ior_mmap_file()

static void ior_mmap_file ( int *  file,
IOR_param_t param 
)
static

Definition at line 52 of file aiori-MMAP.c.

References ERR, IOR_param_t::expectedAggFileSize, IOR_param_t::mmap_ptr, NULL, IOR_param_t::open, IOR_param_t::randomOffset, size, and WRITE.

Referenced by MMAP_Create(), and MMAP_Open().

Here is the caller graph for this function:

◆ MMAP_Close()

static void MMAP_Close ( void *  fd,
IOR_param_t param 
)
static

Definition at line 138 of file aiori-MMAP.c.

References ERR, IOR_param_t::expectedAggFileSize, IOR_param_t::mmap_ptr, NULL, and POSIX_Close().

Here is the call graph for this function:

◆ MMAP_Create()

static void * MMAP_Create ( char *  testFileName,
IOR_param_t param 
)
static

Definition at line 81 of file aiori-MMAP.c.

References ERR, IOR_param_t::expectedAggFileSize, ior_mmap_file(), and POSIX_Create().

Here is the call graph for this function:

◆ MMAP_Fsync()

static void MMAP_Fsync ( void *  fd,
IOR_param_t param 
)
static

Definition at line 129 of file aiori-MMAP.c.

References EWARN, IOR_param_t::expectedAggFileSize, and IOR_param_t::mmap_ptr.

◆ MMAP_Open()

static void * MMAP_Open ( char *  testFileName,
IOR_param_t param 
)
static

Definition at line 95 of file aiori-MMAP.c.

References ior_mmap_file(), and POSIX_Open().

Here is the call graph for this function:

◆ MMAP_Xfer()

static IOR_offset_t MMAP_Xfer ( int  access,
void *  file,
IOR_size_t buffer,
IOR_offset_t  length,
IOR_param_t param 
)
static

Variable Documentation

◆ mmap_aiori

ior_aiori_t mmap_aiori
Initial value:
= {
.name = "MMAP",
.create = MMAP_Create,
.open = MMAP_Open,
.xfer = MMAP_Xfer,
.close = MMAP_Close,
.delete = POSIX_Delete,
.get_version = aiori_get_version,
.fsync = MMAP_Fsync,
.get_file_size = POSIX_GetFileSize,
}
static void * MMAP_Create(char *, IOR_param_t *)
Definition: aiori-MMAP.c:81
static void MMAP_Fsync(void *, IOR_param_t *)
Definition: aiori-MMAP.c:129
char * aiori_get_version()
Definition: aiori.c:149
void POSIX_Delete(char *testFileName, IOR_param_t *param)
Definition: aiori-POSIX.c:516
static void MMAP_Close(void *, IOR_param_t *)
Definition: aiori-MMAP.c:138
IOR_offset_t POSIX_GetFileSize(IOR_param_t *test, MPI_Comm testComm, char *testFileName)
Definition: aiori-POSIX.c:528
static void * MMAP_Open(char *, IOR_param_t *)
Definition: aiori-MMAP.c:95
static IOR_offset_t MMAP_Xfer(int, void *, IOR_size_t *, IOR_offset_t, IOR_param_t *)
Definition: aiori-MMAP.c:107

Definition at line 38 of file aiori-MMAP.c.