Lines Matching +full:validity +full:- +full:control

3  * SPDX-License-Identifier: Apache-2.0
41 /** Access control semaphore. Points to the semaphore used to avoid race conditions
77 * Every channel has a zbus_channel structure associated used to control the channel
103 * validity before actually performing the publishing. No invalid messages can be
191 #define ZBUS_MIN_THREAD_PRIORITY (CONFIG_NUM_PREEMPT_PRIORITIES - 1)
200 return -EFAULT; \
209 #define _ZBUS_CHAN_NAME(_chan) (_chan)->name
217 #define _ZBUS_OBS_NAME(_obs) (_obs)->name
238 COND_CODE_0(/* are there zero non-empty arguments ? */ \
272 /* clang-format off */
275 .observers_start_idx = -1, \
276 .observers_end_idx = -1, \
296 /* clang-format on */
300 /* clang-format off */
322 /* clang-format on */
427 /* clang-format off */
457 /* clang-format on */
473 /* clang-format off */
499 /* clang-format on */
513 /* clang-format off */
539 /* clang-format on */
566 * @retval -ENOMSG The message is invalid based on the validator function or some of the
568 * @retval -EBUSY The channel is busy.
569 * @retval -EAGAIN Waiting period timed out.
570 * @retval -EFAULT A parameter is incorrect, the notification could not be sent to one or more
588 * @retval -EBUSY The channel is busy.
589 * @retval -EAGAIN Waiting period timed out.
590 * @retval -EFAULT A parameter is incorrect, or the function context is invalid (inside an ISR). The
611 * @retval -EBUSY The channel is busy.
612 * @retval -EAGAIN Waiting period timed out.
613 * @retval -EFAULT A parameter is incorrect, or the function context is invalid (inside an ISR). The
629 * @retval -EFAULT A parameter is incorrect, or the function context is invalid (inside an ISR). The
645 * @retval -EBUSY The channel's semaphore returned without waiting.
646 * @retval -EAGAIN Timeout to take the channel's semaphore.
647 * @retval -ENOMEM There is not more buffer on the messgage buffers pool.
648 * @retval -EFAULT A parameter is incorrect, the notification could not be sent to one or more
669 return chan->name; in zbus_chan_name()
704 return chan->message; in zbus_chan_msg()
725 return chan->message; in zbus_chan_const_msg()
741 return chan->message_size; in zbus_chan_msg_size()
757 return chan->user_data; in zbus_chan_user_data()
774 chan->data->msg_subscriber_pool = pool; in zbus_chan_set_msg_sub_pool()
784 * This function updates the publishing statistics for the @ref zbus_chan_claim ->
796 chan->data->publish_timestamp = k_uptime_ticks(); in zbus_chan_pub_stats_update()
797 chan->data->publish_count += 1; in zbus_chan_pub_stats_update()
813 return chan->data->publish_timestamp; in zbus_chan_pub_stats_last_time()
829 return chan->data->publish_count; in zbus_chan_pub_stats_count()
846 if (chan->data->publish_count == 0) { in zbus_chan_pub_stats_avg_period()
850 return k_uptime_get() / chan->data->publish_count; in zbus_chan_pub_stats_avg_period()
875 * @retval -EALREADY The observer is already present in the channel's runtime observers list.
876 * @retval -ENOMEM Returned without waiting.
877 * @retval -EAGAIN Waiting period timed out.
878 * @retval -EINVAL Some parameter is invalid.
894 * @retval -EINVAL Invalid data supplied.
895 * @retval -EBUSY Returned without waiting.
896 * @retval -EAGAIN Waiting period timed out.
897 * @retval -ENODATA no observer found in channel's runtime observer list.
898 * @retval -ENOMEM Returned without waiting.
924 * @retval -EFAULT A parameter is incorrect, or the function context is invalid (inside an ISR). The
944 *enable = obs->data->enabled; in zbus_obs_is_enabled()
960 * @retval -ESRCH No observation found for the related pair chan/obs.
961 * @retval -EINVAL Some parameter is invalid.
975 * @retval -ESRCH No observation found for the related pair chan/obs.
976 * @retval -EINVAL Some parameter is invalid.
996 return obs->name; in zbus_obs_name()
1009 * @retval -EFAULT A parameter is incorrect, or the function context is invalid (inside an ISR). The
1020 * @retval -EFAULT A parameter is incorrect, or the function context is invalid (inside an ISR). The
1039 * @retval -ENOMSG Returned without waiting.
1040 * @retval -EAGAIN Waiting period timed out.
1041 * @retval -EINVAL The observer is not a subscriber.
1042 * @retval -EFAULT A parameter is incorrect, or the function context is invalid (inside an ISR). The
1062 * @retval -EINVAL The observer is not a subscriber.
1063 * @retval -ENOMSG Could not retrieve the net_buf from the subscriber FIFO.
1064 * @retval -EILSEQ Received an invalid channel reference.
1065 * @retval -EFAULT A parameter is incorrect, or the function context is invalid (inside an ISR). The