Lines Matching refs:init
26 #define DEFINE_RUN_ONCE(init) \
27 static int init(void); \
28 int init##_ossl_ret_ = 0; \
29 void init##_ossl_(void) \
31 init##_ossl_ret_ = init(); \
33 static int init(void)
39 #define DECLARE_RUN_ONCE(init) \
40 extern int init##_ossl_ret_; \
41 void init##_ossl_(void);
58 #define DEFINE_RUN_ONCE_STATIC(init) \
59 static int init(void); \
60 static int init##_ossl_ret_ = 0; \
61 static void init##_ossl_(void) \
63 init##_ossl_ret_ = init(); \
65 static int init(void)
99 #define DEFINE_RUN_ONCE_STATIC_ALT(initalt, init) \
103 init##_ossl_ret_ = initalt(); \
108 * RUN_ONCE - use CRYPTO_THREAD_run_once, and check if the init succeeded
110 * @init: function name that was previously given to DEFINE_RUN_ONCE,
116 * (*) by convention, since the init function must return 1 on success.
118 #define RUN_ONCE(once, init) \
119 (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
128 * @init: primary initialiser function name that was previously given to
134 * (*) by convention, since the init function must return 1 on success.
136 #define RUN_ONCE_ALT(once, initalt, init) \
137 (CRYPTO_THREAD_run_once(once, initalt##_ossl_) ? init##_ossl_ret_ : 0)