Motr  M0
example2.c File Reference
#include "motr/client.h"
#include "lib/assert.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
Include dependency graph for example2.c:

Go to the source code of this file.

Enumerations

enum  { KV_COUNT = 10, KV_LEN = 32 }
 

Functions

static void op_entity_fini (struct m0_entity *e, struct m0_op **ops)
 
static int op_launch_wait_fini (struct m0_entity *e, struct m0_op **ops, int *sm_rc)
 
int index_create (struct m0_container *container, struct m0_uint128 *fid)
 
int index_delete (struct m0_container *container, struct m0_uint128 *fid)
 
int index_put (struct m0_container *container, struct m0_uint128 *fid)
 
int index_get (struct m0_container *container, struct m0_uint128 *fid)
 
int main (int argc, char *argv[])
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
KV_COUNT 
KV_LEN 

Definition at line 49 of file example2.c.

Function Documentation

◆ index_create()

int index_create ( struct m0_container container,
struct m0_uint128 fid 
)

Definition at line 80 of file example2.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ index_delete()

int index_delete ( struct m0_container container,
struct m0_uint128 fid 
)

Definition at line 96 of file example2.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ index_get()

int index_get ( struct m0_container container,
struct m0_uint128 fid 
)

Definition at line 153 of file example2.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ index_put()

int index_put ( struct m0_container container,
struct m0_uint128 fid 
)

Definition at line 117 of file example2.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 189 of file example2.c.

Here is the call graph for this function:

◆ op_entity_fini()

static void op_entity_fini ( struct m0_entity e,
struct m0_op **  ops 
)
static

Definition at line 54 of file example2.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ op_launch_wait_fini()

static int op_launch_wait_fini ( struct m0_entity e,
struct m0_op **  ops,
int *  sm_rc 
)
static

Definition at line 62 of file example2.c.

Here is the call graph for this function:
Here is the caller graph for this function: