DAOS API (v2.1 - dev)
Loading...
Searching...
No Matches
daos_kv.h
Go to the documentation of this file.
1/*
2 * (C) Copyright 2016-2024 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
22#include <daos_types.h>
23#include <daos_obj.h>
24
26#define DAOS_COND_KEY_INSERT DAOS_COND_DKEY_INSERT
28#define DAOS_COND_KEY_UPDATE DAOS_COND_DKEY_UPDATE
30#define DAOS_COND_KEY_GET DAOS_COND_DKEY_FETCH
32#define DAOS_COND_KEY_REMOVE DAOS_COND_PUNCH
33
52int
53daos_kv_open(daos_handle_t coh, daos_obj_id_t oid, unsigned int mode,
55
68int
70
87int
89
113int
114daos_kv_put(daos_handle_t oh, daos_handle_t th, uint64_t flags, const char *key,
115 daos_size_t size, const void *buf, daos_event_t *ev);
116
141int
142daos_kv_get(daos_handle_t oh, daos_handle_t th, uint64_t flags, const char *key,
143 daos_size_t *size, void *buf, daos_event_t *ev);
144
164int
166 const char *key, daos_event_t *ev);
167
198int
200 daos_key_desc_t *kds, d_sg_list_t *sgl, daos_anchor_t *anchor,
201 daos_event_t *ev);
202
203#if defined(__cplusplus)
204}
205#endif
206
207#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)