10#ifndef __DAOS_TASK_H__
11#define __DAOS_TASK_H__
13#if defined(__cplusplus)
17#include <daos_types.h>
21#include <daos_errno.h>
30 DAOS_OPC_INVALID = -1,
35 DAOS_OPC_SET_PARAMS = 3,
36 DAOS_OPC_MGMT_GET_BS_STATE,
39 DAOS_OPC_POOL_CONNECT = 5,
40 DAOS_OPC_POOL_DISCONNECT,
41 DAOS_OPC_POOL_EXCLUDE,
42 DAOS_OPC_POOL_EXCLUDE_OUT,
45 DAOS_OPC_POOL_QUERY_INFO,
46 DAOS_OPC_POOL_LIST_ATTR,
47 DAOS_OPC_POOL_GET_ATTR,
48 DAOS_OPC_POOL_SET_ATTR,
49 DAOS_OPC_POOL_DEL_ATTR,
50 DAOS_OPC_POOL_STOP_SVC,
51 DAOS_OPC_POOL_LIST_CONT,
54 DAOS_OPC_CONT_CREATE = 18,
57 DAOS_OPC_CONT_DESTROY,
59 DAOS_OPC_CONT_SET_PROP,
60 DAOS_OPC_CONT_UPDATE_ACL,
61 DAOS_OPC_CONT_DELETE_ACL,
62 DAOS_OPC_CONT_AGGREGATE,
63 DAOS_OPC_CONT_ROLLBACK,
64 DAOS_OPC_CONT_SUBSCRIBE,
65 DAOS_OPC_CONT_LIST_ATTR,
66 DAOS_OPC_CONT_GET_ATTR,
67 DAOS_OPC_CONT_SET_ATTR,
68 DAOS_OPC_CONT_DEL_ATTR,
69 DAOS_OPC_CONT_ALLOC_OIDS,
70 DAOS_OPC_CONT_LIST_SNAP,
71 DAOS_OPC_CONT_CREATE_SNAP,
72 DAOS_OPC_CONT_DESTROY_SNAP,
75 DAOS_OPC_TX_OPEN = 37,
78 DAOS_OPC_TX_OPEN_SNAP,
83 DAOS_OPC_OBJ_QUERY_CLASS = 44,
84 DAOS_OPC_OBJ_LIST_CLASS,
88 DAOS_OPC_OBJ_PUNCH_DKEYS,
89 DAOS_OPC_OBJ_PUNCH_AKEYS,
91 DAOS_OPC_OBJ_QUERY_KEY,
95 DAOS_OPC_OBJ_LIST_DKEY,
96 DAOS_OPC_OBJ_LIST_AKEY,
97 DAOS_OPC_OBJ_LIST_RECX,
98 DAOS_OPC_OBJ_LIST_OBJ,
101 DAOS_OPC_ARRAY_CREATE = 60,
103 DAOS_OPC_ARRAY_CLOSE,
104 DAOS_OPC_ARRAY_DESTROY,
106 DAOS_OPC_ARRAY_WRITE,
107 DAOS_OPC_ARRAY_PUNCH,
108 DAOS_OPC_ARRAY_GET_SIZE,
109 DAOS_OPC_ARRAY_SET_SIZE,
113 DAOS_OPC_KV_OPEN = 70,
121 DAOS_OPC_POOL_FILTER_CONT,
122 DAOS_OPC_OBJ_KEY2ANCHOR,
123 DAOS_OPC_CONT_SNAP_OIT_CREATE,
124 DAOS_OPC_CONT_SNAP_OIT_DESTROY,
1062daos_task_create(daos_opc_t opc, tse_sched_t *sched,
1063 unsigned int num_deps, tse_task_t *dep_tasks[],
1064 tse_task_t **taskp);
1081daos_task_reset(tse_task_t *task, daos_opc_t opc);
1094daos_task_get_args(tse_task_t *task);
1105daos_task_get_priv(tse_task_t *task);
1116daos_task_set_priv(tse_task_t *task,
void *priv);
1132daos_progress(tse_sched_t *sched, int64_t timeout,
bool *is_empty);
1134#if defined(__cplusplus)
unsigned int open_with_attr
daos_array_stbuf_t * stbuf
char const *const * names
char const *const * names
void const *const * values
char const *const * names
struct daos_oclass_list * clist
daos_anchor_t * dkey_anchor
daos_epoch_range_t * eprs
daos_anchor_t * akey_anchor
struct daos_oclass_attr * cattr
struct daos_obj_attr * oa
struct daos_oclass_attr * cattr
char const *const * names
struct daos_pool_cont_info2 * cont_buf
daos_pool_cont_filter_t * filt
char const *const * names
struct daos_pool_cont_info * cont_buf
daos_target_info_t * info
void const *const * values
char const *const * names