NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
doca_dpa_dev_sync_event.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES, ALL RIGHTS RESERVED.
3  *
4  * This software product is a proprietary product of NVIDIA CORPORATION &
5  * AFFILIATES (the "Company") and all right, title, and interest in and to the
6  * software product, including all associated intellectual property rights, are
7  * and shall remain exclusively with the Company.
8  *
9  * This software product is governed by the End User License Agreement
10  * provided with the software product.
11  *
12  */
13 
23 #ifndef DOCA_DPA_DEV_SYNC_EVENT_H_
24 #define DOCA_DPA_DEV_SYNC_EVENT_H_
25 
26 #include <doca_dpa_dev.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
36 
41 
49 void doca_dpa_dev_sync_event_get(doca_dpa_dev_sync_event_t dpa_dev_se_handle, uint64_t *value);
50 
59 
68 
77 void doca_dpa_dev_sync_event_wait_gt(doca_dpa_dev_sync_event_t dpa_dev_se_handle, uint64_t value, uint64_t mask);
78 
96  doca_dpa_dev_sync_event_t wait_se_handle,
97  uint64_t value);
98 
113  doca_dpa_dev_sync_event_t wait_se_handle,
114  uint64_t value);
115 
116 #ifdef __cplusplus
117 }
118 #endif
119 
122 #endif /* DOCA_DPA_DEV_SYNC_EVENT_H_ */
struct dpa_thread_arg __dpa_global__
#define DOCA_EXPERIMENTAL
To set a Symbol (or specifically a function) as experimental.
Definition: doca_compat.h:103
DOCA_EXPERIMENTAL void doca_dpa_dev_sync_event_get(doca_dpa_dev_sync_event_t dpa_dev_se_handle, uint64_t *value)
Get the counter's value of a DOCA Sync Event.
DOCA_EXPERIMENTAL void doca_dpa_dev_sync_event_update_set(doca_dpa_dev_sync_event_t dpa_dev_se_handle, uint64_t value)
Set the counter of a DOCA Sync Event to a given value.
DOCA_EXPERIMENTAL void doca_dpa_dev_sync_event_wait_gt(doca_dpa_dev_sync_event_t dpa_dev_se_handle, uint64_t value, uint64_t mask)
Wait for the value of a DOCA Sync Event to be greater than a given value.
DOCA_EXPERIMENTAL void doca_dpa_dev_sync_event_post_wait_gt(doca_dpa_dev_async_ops_t async_ops_handle, doca_dpa_dev_sync_event_t wait_se_handle, uint64_t value)
Wait for the value of a DOCA Sync Event to be greater than a given value.
DOCA_EXPERIMENTAL void doca_dpa_dev_sync_event_update_add(doca_dpa_dev_sync_event_t dpa_dev_se_handle, uint64_t value)
Atomically increase the counter of a DOCA Sync Event by a given value.
DOCA_EXPERIMENTAL void doca_dpa_dev_sync_event_post_wait_ne(doca_dpa_dev_async_ops_t async_ops_handle, doca_dpa_dev_sync_event_t wait_se_handle, uint64_t value)
Wait for the value of a DOCA Sync Event to be not equal to a given value.
__dpa_global__ typedef uint64_t doca_dpa_dev_sync_event_t
DPA sync event handle type definition.
__dpa_global__ typedef uint64_t doca_dpa_dev_sync_event_remote_net_t
DPA remote sync event handle type definition.
uint64_t doca_dpa_dev_async_ops_t
DPA asynchronous ops handle type definition.
Definition: doca_dpa.h:93
uint64_t doca_dpa_dev_sync_event_t
DOCA Sync Event DPA handle.
type value