DAOS API: src/include/daos_kv.h Source File

| DAOS API (v2.1 - dev)

Loading...
Searching...
No Matches
daos_kv.h
Go to the documentation of this file.
1/*
2 * (C) Copyright 2016-2022 Intel Corporation.
3 *
4 * SPDX-License-Identifier: BSD-2-Clause-Patent
5 */
14
15#ifndef __DAOS_KV_H__
16#define __DAOS_KV_H__
17
18#if defined(__cplusplus)
19extern "C" {
20#endif
21
23#define DAOS_COND_KEY_INSERT DAOS_COND_DKEY_INSERT
25#define DAOS_COND_KEY_UPDATE DAOS_COND_DKEY_UPDATE
27#define DAOS_COND_KEY_GET DAOS_COND_DKEY_FETCH
29#define DAOS_COND_KEY_REMOVE DAOS_COND_PUNCH
30
49int
50daos_kv_open(daos_handle_t coh, daos_obj_id_t oid, unsigned int mode,
51 daos_handle_t *oh, daos_event_t *ev);
52
65int
66daos_kv_close(daos_handle_t oh, daos_event_t *ev);
67
84int
85daos_kv_destroy(daos_handle_t oh, daos_handle_t th, daos_event_t *ev);
86
110int
111daos_kv_put(daos_handle_t oh, daos_handle_t th, uint64_t flags, const char *key,
112 daos_size_t size, const void *buf, daos_event_t *ev);
113
138int
139daos_kv_get(daos_handle_t oh, daos_handle_t th, uint64_t flags, const char *key,
140 daos_size_t *size, void *buf, daos_event_t *ev);
141
161int
162daos_kv_remove(daos_handle_t oh, daos_handle_t th, uint64_t flags,
163 const char *key, daos_event_t *ev);
164
195int
196daos_kv_list(daos_handle_t oh, daos_handle_t th, uint32_t *nr,
197 daos_key_desc_t *kds, d_sg_list_t *sgl, daos_anchor_t *anchor,
198 daos_event_t *ev);
199
200#if defined(__cplusplus)
201}
202#endif
203
204#endif /* __DAOS_KV_H__ */
daos_kv_get
int daos_kv_get(daos_handle_t oh, daos_handle_t th, uint64_t flags, const char *key, daos_size_t *size, void *buf, daos_event_t *ev)
daos_kv_put
int daos_kv_put(daos_handle_t oh, daos_handle_t th, uint64_t flags, const char *key, daos_size_t size, const void *buf, daos_event_t *ev)
daos_kv_list
int daos_kv_list(daos_handle_t oh, daos_handle_t th, uint32_t *nr, daos_key_desc_t *kds, d_sg_list_t *sgl, daos_anchor_t *anchor, daos_event_t *ev)
daos_kv_open
int daos_kv_open(daos_handle_t coh, daos_obj_id_t oid, unsigned int mode, daos_handle_t *oh, daos_event_t *ev)
daos_kv_destroy
int daos_kv_destroy(daos_handle_t oh, daos_handle_t th, daos_event_t *ev)
daos_kv_close
int daos_kv_close(daos_handle_t oh, daos_event_t *ev)
daos_kv_remove
int daos_kv_remove(daos_handle_t oh, daos_handle_t th, uint64_t flags, const char *key, daos_event_t *ev)
daos_anchor_t
Definition daos_types.h:58
daos_handle_t
Definition daos_types.h:73
daos_key_desc_t
Definition daos_obj.h:475
daos_obj_id_t
Definition daos_types.h:222