Changeset fbe8a7a in rtems
- Timestamp:
- 04/03/19 10:44:42 (4 years ago)
- Branches:
- 5, master
- Children:
- 6644867
- Parents:
- a2aec0b7
- git-author:
- Sebastian Huber <sebastian.huber@…> (04/03/19 10:44:42)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (04/04/19 05:22:08)
- Location:
- cpukit/include/rtems
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/include/rtems/rtems/message.h
ra2aec0b7 rfbe8a7a 105 105 106 106 /** 107 * @brief rtems_message_queue_send 108 * 109 * Message Queue Manager - rtems_message_queue_send 110 * 111 * This routine implements the rtems_message_queue_send directive. 112 * This directive sends the message buffer to the message queue 113 * indicated by ID. If one or more tasks is blocked waiting 114 * to receive a message from this message queue, then one will 115 * receive the message. The task selected to receive the 116 * message is based on the task queue discipline algorithm in 117 * use by this particular message queue. If no tasks are waiting, 118 * then the message buffer will be placed at the REAR of the 119 * chain of pending messages for this message queue. 107 * @brief Sends a message to the message queue. 108 * 109 * This directive sends the message buffer to the message queue indicated by 110 * ID. If one or more tasks is blocked waiting to receive a message from this 111 * message queue, then one will receive the message. The task selected to 112 * receive the message is based on the task queue discipline algorithm in use 113 * by this particular message queue. If no tasks are waiting, then the message 114 * buffer will be placed at the rear of the chain of pending messages for this 115 * message queue. 116 * 117 * @param id The message queue ID. 118 * @param buffer The message content buffer. 119 * @param size The size of the message. 120 * 121 * @retval RTEMS_SUCCESSFUL Successful operation. 122 * @retval RTEMS_INVALID_ID Invalid message queue ID. 123 * @retval RTEMS_INVALID_ADDRESS The message buffer pointer is @c NULL. 124 * @retval RTEMS_INVALID_SIZE The message size is larger than the maximum 125 * message size of the message queue. 126 * @retval RTEMS_TOO_MANY The new message would exceed the message queue limit 127 * for pending messages. 120 128 */ 121 129 rtems_status_code rtems_message_queue_send( … … 170 178 171 179 /** 172 * @brief RTEMS Message Queue Receive 173 * 174 * This routine implements the rtems_message_queue_receive directive. 175 * This directive is invoked when the calling task wishes to receive 176 * a message from the message queue indicated by ID. The received 177 * message is to be placed in buffer. If no messages are outstanding 178 * and the option_set indicates that the task is willing to block, 179 * then the task will be blocked until a message arrives or until, 180 * optionally, timeout clock ticks have passed. 181 * 182 * @param[in] id is the queue id 183 * @param[in] buffer is the pointer to message buffer 184 * @param[in] size is the size of message receive 185 * @param[in] option_set is the options on receive 186 * @param[in] timeout is the number of ticks to wait 187 * 188 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 189 * error. Otherwise, a status code is returned indicating the 190 * source of the error. 180 * @brief Receives a message from the message queue 181 * 182 * This directive is invoked when the calling task wishes to receive a message 183 * from the message queue indicated by ID. The received message is to be placed 184 * in the buffer. If no messages are outstanding and the option set indicates 185 * that the task is willing to block, then the task will be blocked until a 186 * message arrives or until, optionally, timeout clock ticks have passed. 187 * 188 * @param id The message queue ID. 189 * @param[out] buffer The buffer for the message content. The buffer must be 190 * large enough to store maximum size messages of this message queue. 191 * @param[out] size The size of the message. 192 * @param option_set The option set, e.g. RTEMS_NO_WAIT or RTEMS_WAIT. 193 * @param timeout The number of ticks to wait if the RTEMS_WAIT is set. Use 194 * RTEMS_NO_TIMEOUT to wait indefinitely. 195 * 196 * @retval RTEMS_SUCCESSFUL Successful operation. 197 * @retval RTEMS_INVALID_ID Invalid message queue ID. 198 * @retval RTEMS_INVALID_ADDRESS The message buffer pointer or the message size 199 * pointer is @c NULL. 200 * @retval RTEMS_TIMEOUT A timeout occurred and no message was received. 191 201 */ 192 202 rtems_status_code rtems_message_queue_receive( -
cpukit/include/rtems/score/rbtree.h
ra2aec0b7 rfbe8a7a 107 107 * @brief Rebalances the red-black tree after insertion of the node. 108 108 * 109 * @param[in ] the_rbtree The red-black tree control.110 * @param[in ] the_node The most recently inserted node.109 * @param[in, out] the_rbtree The red-black tree control. 110 * @param[in, out] the_node The most recently inserted node. 111 111 */ 112 112 void _RBTree_Insert_color( -
cpukit/include/rtems/score/wkspace.h
ra2aec0b7 rfbe8a7a 58 58 59 59 /** 60 * @brief Allocate memory fromworkspace.60 * @brief Allocates a memory block of the specified size from the workspace. 61 61 * 62 * This routine returns the address of a block of memory of size 63 * bytes. If a block of the appropriate size cannot be allocated 64 * from the workspace, then NULL is returned. 62 * @param size The size of the memory block. 65 63 * 66 * @param size is the requested size 67 * 68 * @retval a pointer to the requested memory or NULL. 64 * @retval pointer The pointer to the memory block. The pointer is at least 65 * aligned by CPU_HEAP_ALIGNMENT. 66 * @retval NULL No memory block with the requested size is available in the 67 * workspace. 69 68 */ 70 void *_Workspace_Allocate( 71 size_t size 72 ); 69 void *_Workspace_Allocate( size_t size ); 73 70 74 71 /**
Note: See TracChangeset
for help on using the changeset viewer.