diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2022-08-31 11:03:32 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-09-30 08:40:10 +0300 |
commit | 4d219446a5867a1ee82852b538de8458d3d06787 (patch) | |
tree | c417177da50e2cb2f65105cef82ce8c5acc43b9f /include/odp/api/spec/timer.h | |
parent | 91bfa674f6e833711741a991cff21178b483fa1f (diff) |
api: timer: add pointer to timeout user area
Added odp_timeout_user_area() which returns pointer to the user
area. Area size is configured with pool create parameters.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Ashwin Sekhar T K <asekhar@marvell.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'include/odp/api/spec/timer.h')
-rw-r--r-- | include/odp/api/spec/timer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/odp/api/spec/timer.h b/include/odp/api/spec/timer.h index b51db7dbc..edfa423e7 100644 --- a/include/odp/api/spec/timer.h +++ b/include/odp/api/spec/timer.h @@ -505,6 +505,19 @@ uint64_t odp_timeout_tick(odp_timeout_t tmo); void *odp_timeout_user_ptr(odp_timeout_t tmo); /** + * Timeout user area + * + * Returns pointer to the user area associated with the timeout. Size of the area is fixed + * and defined in timeout pool parameters. + * + * @param tmo Timeout handle + * + * @return Pointer to the user area of the timeout + * @retval NULL The timeout does not have user area + */ +void *odp_timeout_user_area(odp_timeout_t tmo); + +/** * Timeout alloc * * Allocates timeout from pool. Pool must be created with ODP_POOL_TIMEOUT type. |