DAOS API (v2.1 - dev)
Loading...
Searching...
No Matches
daos.h File Reference
#include <daos_version.h>
#include <daos_types.h>
#include <daos_event.h>
#include <daos_obj.h>
#include <daos_array.h>
#include <daos_kv.h>
#include <daos_prop.h>
#include <daos_cont.h>
#include <daos_pool.h>
#include <daos_mgmt.h>
#include <daos_security.h>
#include <daos_api.h>

Go to the source code of this file.

Functions

int daos_init (void)
 
int daos_fini (void)
 
int daos_reinit (void)
 

Detailed Description

DAOS API

Definition in file daos.h.

Function Documentation

◆ daos_fini()

int daos_fini ( void )

Finalize the DAOS library. Should be invoked only when daos_init() was previously successfully executed. An internal reference count is maintained by the library that will tear down the DAOS stack on the last call to daos_fini()

◆ daos_init()

int daos_init ( void )

Initialize the DAOS library. Should be invoked prior to any DAOS calls. Can be called multiple times.

◆ daos_reinit()

int daos_reinit ( void )

Reinitialize DAOS library after a fork call. For applications that initialize DAOS and then call fork without exec, some internal data structures must be reinitialized in the child process. It is recommended to call this function from a fork handler registered via pthread_atfork(). If any event queues were created prior to the fork call, those must be re-created in the child process.