Groonga
Loading...
Searching...
No Matches
memory_map.h File Reference
#include <stdint.h>
Include dependency graph for memory_map.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GRN_MEMORY_MAP_READ   (1 << 0)
#define GRN_MEMORY_MAP_WRITE   (1 << 1)
#define GRN_MEMORY_MAP_EXCLUDE   (1 << 2)

Typedefs

typedef struct grn_memory_map grn_memory_map
typedef uint32_t grn_memory_map_flags

Functions

GRN_API grn_memory_map * grn_memory_map_open (grn_ctx *ctx, const char *path, grn_memory_map_flags flags, uint64_t offset, size_t length)
GRN_API void * grn_memory_map_get_address (grn_ctx *ctx, grn_memory_map *map)
GRN_API void grn_memory_map_close (grn_ctx *ctx, grn_memory_map *map)

Macro Definition Documentation

◆ GRN_MEMORY_MAP_EXCLUDE

#define GRN_MEMORY_MAP_EXCLUDE   (1 << 2)

◆ GRN_MEMORY_MAP_READ

#define GRN_MEMORY_MAP_READ   (1 << 0)

◆ GRN_MEMORY_MAP_WRITE

#define GRN_MEMORY_MAP_WRITE   (1 << 1)

Typedef Documentation

◆ grn_memory_map

◆ grn_memory_map_flags

typedef uint32_t grn_memory_map_flags

Function Documentation

◆ grn_memory_map_close()

GRN_API void grn_memory_map_close ( grn_ctx * ctx,
grn_memory_map * map )

◆ grn_memory_map_get_address()

GRN_API void * grn_memory_map_get_address ( grn_ctx * ctx,
grn_memory_map * map )

◆ grn_memory_map_open()

GRN_API grn_memory_map * grn_memory_map_open ( grn_ctx * ctx,
const char * path,
grn_memory_map_flags flags,
uint64_t offset,
size_t length )