Lines Matching +full:write +full:- +full:protect
4 * SPDX-License-Identifier: Apache-2.0
59 * Used for validation - TODO: To be
88 * buffer with read/write semantics on top of a memory region shared
93 * is encapsulated to a message (with length header). The read/write API is
94 * written in a way to protect the data from being corrupted.
100 struct pbuf_data data; /* Data used to read and write
122 .len = (uint32_t)((uint32_t)(size) - MAX(dcache_align, _PBUF_IDX_SIZE) - \
130 * It contains the read index, write index and padding.
172 * @retval -EINVAL when the input parameter is incorrect.
188 * @retval -EINVAL when the input parameter is incorrect.
193 * @brief Write specified amount of data to the packet buffer.
198 * @param pb A buffer to which to write.
202 * -EINVAL, if any of input parameter is incorrect.
203 * -ENOMEM, if len is bigger than the buffer can fit.
211 * Single read allows to read the message send by the single write.
220 * -EINVAL, if any of input parameter is incorrect.
221 * -ENOMEM, if message can not fit in provided buf.
222 * -EAGAIN, if not whole message is ready yet.