diff options
| author | Enji Cooper <ngie@FreeBSD.org> | 2026-06-09 19:21:35 +0000 |
|---|---|---|
| committer | Enji Cooper <ngie@FreeBSD.org> | 2026-06-09 19:21:35 +0000 |
| commit | 3a71a35ad9dad0e5d2cad8efecc8ba9d57c42d43 (patch) | |
| tree | 4f5b47534bc1016b89e70bd6dc27382670adcee5 /include/internal/rcu.h | |
| parent | ab5fc4ac933ff67bc800e774dffce15e2a541e90 (diff) | |
Diffstat (limited to 'include/internal/rcu.h')
| -rw-r--r-- | include/internal/rcu.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/internal/rcu.h b/include/internal/rcu.h index a89794c0c8ad..b5403fbd772b 100644 --- a/include/internal/rcu.h +++ b/include/internal/rcu.h @@ -1,5 +1,5 @@ /* - * Copyright 2023-2024 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2023-2026 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -17,6 +17,8 @@ typedef void (*rcu_cb_fn)(void *data); typedef struct rcu_lock_st CRYPTO_RCU_LOCK; +typedef struct rcu_cb_item CRYPTO_RCU_CB_ITEM; + CRYPTO_RCU_LOCK *ossl_rcu_lock_new(int num_writers, OSSL_LIB_CTX *ctx); void ossl_rcu_lock_free(CRYPTO_RCU_LOCK *lock); void ossl_rcu_read_lock(CRYPTO_RCU_LOCK *lock); @@ -24,7 +26,10 @@ void ossl_rcu_write_lock(CRYPTO_RCU_LOCK *lock); void ossl_rcu_write_unlock(CRYPTO_RCU_LOCK *lock); void ossl_rcu_read_unlock(CRYPTO_RCU_LOCK *lock); void ossl_synchronize_rcu(CRYPTO_RCU_LOCK *lock); -int ossl_rcu_call(CRYPTO_RCU_LOCK *lock, rcu_cb_fn cb, void *data); +CRYPTO_RCU_CB_ITEM *ossl_rcu_cb_item_new(void); +void ossl_rcu_cb_item_free(CRYPTO_RCU_CB_ITEM *item); +void ossl_rcu_call(CRYPTO_RCU_LOCK *lock, CRYPTO_RCU_CB_ITEM *item, + rcu_cb_fn cb, void *data); void *ossl_rcu_uptr_deref(void **p); void ossl_rcu_assign_uptr(void **p, void **v); #define ossl_rcu_deref(p) ossl_rcu_uptr_deref((void **)p) |
