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-2024 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
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,
54 daos_handle_t *oh, daos_event_t *ev);
55
68int
69daos_kv_close(daos_handle_t oh, daos_event_t *ev);
70
87int
88daos_kv_destroy(daos_handle_t oh, daos_handle_t th, daos_event_t *ev);
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
165daos_kv_remove(daos_handle_t oh, daos_handle_t th, uint64_t flags,
166 const char *key, daos_event_t *ev);
167
198int
199daos_kv_list(daos_handle_t oh, daos_handle_t th, uint32_t *nr,
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__ */
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:61
daos_handle_t
Definition daos_types.h:76
daos_key_desc_t
Definition daos_obj.h:476
daos_obj_id_t
Definition daos_types.h:231