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 */
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,
52
65int
67
84int
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
163 const char *key, daos_event_t *ev);
164
195int
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__ */
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)
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)
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)
int daos_kv_open(daos_handle_t coh, daos_obj_id_t oid, unsigned int mode, daos_handle_t *oh, daos_event_t *ev)
int daos_kv_destroy(daos_handle_t oh, daos_handle_t th, daos_event_t *ev)
int daos_kv_close(daos_handle_t oh, daos_event_t *ev)
int daos_kv_remove(daos_handle_t oh, daos_handle_t th, uint64_t flags, const char *key, daos_event_t *ev)