• Home
  • Raw
  • Download

Lines Matching full:message

33  * @defgroup mqueue Message queue
60 * Maximum number of messages in a message queue
66 * Maximum size of a single message in a message queue
118 * Message queue attribute structure
121 long mq_flags; /**< Message queue flags */
123 long mq_msgsize; /**< Maximum size of a message */
124 long mq_curmsgs; /**< Number of messages in the current message queue */
129 * Handle type of a message queue
137 …* This API is used to open an existed message queue that has a specified name or create a new mess…
140 * <li>A message queue does not restrict the read and write permissions.</li>
147 * @param mqName [IN] Message queue name.
148 * @param openFlag [IN] Permission attributes of the message queue. The value range is
150 * @param mode [IN] Message queue mode (variadic argument). When oflag is O_CREAT, it requires
153 * @param attr [IN] Message queue attribute (variadic argument).
155 * @retval mqd_t The message queue is successfully opened or created.
156 …* @retval (mqd_t)-1 The message queue fails to be opened or created, with any of the following er…
161 …* <li><b>ENOENT</b>: O_CREAT flag is not set for oflag, and the message queue specified by name do…
162 * <li><b>EEXIST</b>: Both O_CREAT and O_EXCL are set for oflag, but the message queue
165 * <li><b>ENFILE</b>: The number of opened message queues exceeds the maximum limit.</li>
167 * <li><b>ENAMETOOLONG</b>: The message queue name specified by name is too long.</li>
180 * This API is used to close a message queue that has a specified descriptor.
183 …* <li> If the message queue is empty, it will be reclaimed, which is similar to when mq_unlink is …
186 * @param personal [IN] Message queue descriptor.
188 * @retval 0 The message queue is successfully closed.
189 …* @retval -1 The message queue fails to be closed, with either of the following error codes in …
193 * <li><b>EBADF</b>: Invalid message queue descriptor.</li>
194 * <li><b>EAGAIN</b>: Failed to delete the message queue.</li>
195 * <li><b>EFAULT</b>: Failed to free the message queue.</li>
209 * This API is used to remove a message queue that has a specified name.
212 …* <li> If the message queue is empty, it will be reclaimed, which is similar to when mq_close is c…
216 * @param mqName [IN] Message queue name.
218 * @retval 0 The message queue is successfully removed.
219 …* @retval -1 The message queue fails to be removed, with any of the following error codes in er…
223 * <li><b>ENOENT</b>: The message queue specified by name does not exist.</li>
224 * <li><b>EAGAIN</b>: Failed to delete the message queue.</li>
225 * <li><b>EBUSY</b>: The message queue to be removed is being used.</li>
240 * This API is used to put a message with specified message content and length into
241 * a message queue that has a specified descriptor.
244 * <li> Priority-based message processing is not supported.</li>
248 * @param personal [IN] Message queue descriptor.
249 * @param msg [IN] Pointer to the message content to be sent.
250 * @param msgLen [IN] Length of the message to be sent.
251 * @param msgPrio [IN] Priority of the message to be sent (the value of this parameter must
252 * be 0 because priority-based message sending is not supported. If the
255 * @retval 0 The message is successfully sent.
256 * @retval -1 The message fails to be sent, with any of the following error codes in errno.
260 * <li><b>EINTR</b>: An interrupt is in progress while the message is being sent.</li>
261 * <li><b>EBADF</b>: The message queue is invalid or not writable.</li>
262 * <li><b>EAGAIN</b>: The message queue is full.</li>
265 * <li><b>EMSGSIZE</b>: The message to be sent is too long.</li>
280 …* This API is used to remove the oldest message from the message queue that has a specified descri…
284 * <li> Priority-based message processing is not supported.</li>
288 * @param personal [IN] Message queue descriptor.
289 * @param msg [IN] Pointer to the message content to be received.
290 * @param msgLen [IN] Length of the message to be received.
291 * @param msgPrio [OUT] Priority of the message to be received
292 …* because priority-based message processing is not supported, this paramet…
294 * @retval 0 The message is successfully received.
295 …* @retval -1 The message fails to be received, with any of the following error codes in the err…
299 * <li><b>EINTR</b>: An interrupt is in progress while the message is being received.</li>
300 * <li><b>EBADF</b>: The message queue is invalid or not readable.</li>
301 * <li><b>EAGAIN</b>: The message queue is empty.</li>
303 * <li><b>EMSGSIZE</b>: The message to be received is too long.</li>
317 …* This API is used to obtain or modify attributes of the message queue that has a specified descri…
321 * in the message queue attribute setting.</li>
324 * @param personal [IN] Message queue descriptor.
325 * @param mqSetAttr [IN] New attribute of the message queue.
326 * @param MqOldAttr [OUT] Old attribute of the message queue.
328 * @retval 0 The message queue attributes are successfully set or get.
329 * @retval -1 The message queue attributes fail to be set or get,
334 * <li><b>EBADF</b>: Invalid message queue.</li>
348 * This API is used to put a message with specified message content and length into
349 * a message queue that has a descriptor at a scheduled time.
352 * <li> Priority-based message processing is not supported.</li>
358 * @param mqdes [IN] Message queue descriptor.
359 * @param msg [IN] Pointer to the message content to be sent.
360 * @param msgLen [IN] Length of the message to be sent.
361 …* @param msgPrio [IN] Priority of the message to be sent (the value of this parameter must…
362 * because priority-based message processing is not supported).
363 * @param absTimeout [IN] Scheduled time at which the message will be sent. If the value is 0,
364 * the message is an instant message.
366 * @retval 0 The message is successfully sent.
367 * @retval -1 The message fails to be sent, with any of the following error codes in errno.
371 * <li><b>EINTR</b>: An interrupt is in progress while the message is being sent.</li>
372 * <li><b>EBADF</b>: The message queue is invalid or not writable.</li>
373 * <li><b>EAGAIN</b>: The message queue is full.</li>
375 * <li><b>EMSGSIZE</b>: The message to be sent is too long.</li>
391 * This API is used to obtain a message with specified message content and length from
392 * a message queue message that has a specified descriptor.
395 * <li> Priority-based message processing is not supported.</li>
401 * @param personal [IN] Message queue descriptor.
402 * @param msg [IN] Pointer to the message content to be received.
403 * @param msgLen [IN] Length of the message to be received.
404 …* @param msgPrio [OUT] Priority of the message to be received (because priority-based mess…
407 * the message is an instant message.
409 * @retval 0 The message is successfully received.
410 * @retval -1 The message fails to be received, with any of the following error codes in errno.
414 * <li><b>EINTR</b>: An interrupt is in progress while the message is being received.</li>
415 * <li><b>EBADF</b>: The message queue is invalid or not readable.</li>
416 * <li><b>EAGAIN</b>: The message queue is empty.</li>
418 * <li><b>EMSGSIZE</b>: The message to be received is too long.</li>