Lines Matching full:notify
81 * @brief Generic signature used to notify of result completion by
129 * After control has reverted to the client the notify object must be
140 /* Pointer to signal used to notify client.
155 * async notify API init functions like
162 * are zeroed by the async notify API init functions, and will
178 static inline uint32_t sys_notify_get_method(const struct sys_notify *notify) in sys_notify_get_method() argument
180 uint32_t method = notify->flags >> SYS_NOTIFY_METHOD_POS; in sys_notify_get_method()
186 * @brief Validate and initialize the notify structure.
193 * async notify API init functions like sys_notify_init_callback()).
204 int sys_notify_validate(struct sys_notify *notify);
209 * @param notify pointer to the notification state structure.
222 sys_notify_generic_callback sys_notify_finalize(struct sys_notify *notify,
228 * @param notify pointer to the object used to specify asynchronous
237 static inline int sys_notify_fetch_result(const struct sys_notify *notify, in sys_notify_fetch_result() argument
240 __ASSERT_NO_MSG(notify != NULL); in sys_notify_fetch_result()
244 if (sys_notify_get_method(notify) == SYS_NOTIFY_METHOD_COMPLETED) { in sys_notify_fetch_result()
246 *result = notify->result; in sys_notify_fetch_result()
253 * @brief Initialize a notify object for spin-wait notification.
262 * @param notify pointer to the notification configuration object.
264 static inline void sys_notify_init_spinwait(struct sys_notify *notify) in sys_notify_init_spinwait() argument
266 __ASSERT_NO_MSG(notify != NULL); in sys_notify_init_spinwait()
268 *notify = (struct sys_notify){ in sys_notify_init_spinwait()
274 * @brief Initialize a notify object for (k_poll) signal notification.
286 * @param notify pointer to the notification configuration object.
292 static inline void sys_notify_init_signal(struct sys_notify *notify, in sys_notify_init_signal() argument
295 __ASSERT_NO_MSG(notify != NULL); in sys_notify_init_signal()
298 *notify = (struct sys_notify){ in sys_notify_init_signal()
307 * @brief Initialize a notify object for callback notification.
317 * @param notify pointer to the notification configuration object.
321 static inline void sys_notify_init_callback(struct sys_notify *notify, in sys_notify_init_callback() argument
324 __ASSERT_NO_MSG(notify != NULL); in sys_notify_init_callback()
327 *notify = (struct sys_notify){ in sys_notify_init_callback()
346 static inline bool sys_notify_uses_callback(const struct sys_notify *notify) in sys_notify_uses_callback() argument
348 __ASSERT_NO_MSG(notify != NULL); in sys_notify_uses_callback()
350 return sys_notify_get_method(notify) == SYS_NOTIFY_METHOD_CALLBACK; in sys_notify_uses_callback()