Changeset 72a3af3 in rtems
- Timestamp:
- 01/23/12 14:55:42 (12 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 184a612e
- Parents:
- 52694844
- git-author:
- Sebastian Huber <sebastian.huber@…> (01/23/12 14:55:42)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (02/02/12 10:09:30)
- Location:
- cpukit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/sapi/inline/rtems/chain.inl
r52694844 r72a3af3 136 136 } 137 137 138 /** @brief Return pointer to immutable Chain Head 139 * 140 * This function returns a pointer to the head node on the chain. 141 * 142 * @param[in] the_chain is the chain to be operated upon. 143 * 144 * @return This method returns the permanent head node of the chain. 145 */ 146 RTEMS_INLINE_ROUTINE const rtems_chain_node *rtems_chain_immutable_head( 147 const rtems_chain_control *the_chain 148 ) 149 { 150 return _Chain_Immutable_head( the_chain ); 151 } 152 138 153 /** 139 154 * @brief Return pointer to Chain Tail 140 155 * 141 * This function returns a pointer to the lastnode on the chain.156 * This function returns a pointer to the tail node on the chain. 142 157 * 143 158 * @param[in] the_chain is the chain to be operated upon. … … 152 167 } 153 168 169 /** @brief Return pointer to immutable Chain Tail 170 * 171 * This function returns a pointer to the tail node on the chain. 172 * 173 * @param[in] the_chain is the chain to be operated upon. 174 * 175 * @return This method returns the permanent tail node of the chain. 176 */ 177 RTEMS_INLINE_ROUTINE const rtems_chain_node *rtems_chain_immutable_tail( 178 const rtems_chain_control *the_chain 179 ) 180 { 181 return _Chain_Immutable_tail( the_chain ); 182 } 183 154 184 /** 155 185 * @brief Return pointer to Chain's First node after the permanent head. … … 169 199 } 170 200 201 /** @brief Return pointer to immutable Chain's First node 202 * 203 * This function returns a pointer to the first node on the chain after the 204 * head. 205 * 206 * @param[in] the_chain is the chain to be operated upon. 207 * 208 * @return This method returns the first node of the chain. 209 */ 210 RTEMS_INLINE_ROUTINE const rtems_chain_node *rtems_chain_immutable_first( 211 const rtems_chain_control *the_chain 212 ) 213 { 214 return _Chain_Immutable_first( the_chain ); 215 } 216 171 217 /** 172 218 * @brief Return pointer to Chain's Last node before the permanent tail. … … 186 232 } 187 233 234 /** @brief Return pointer to immutable Chain's Last node 235 * 236 * This function returns a pointer to the last node on the chain just before 237 * the tail. 238 * 239 * @param[in] the_chain is the chain to be operated upon. 240 * 241 * @return This method returns the last node of the chain. 242 */ 243 RTEMS_INLINE_ROUTINE const rtems_chain_node *rtems_chain_immutable_last( 244 const rtems_chain_control *the_chain 245 ) 246 { 247 return _Chain_Immutable_last( the_chain ); 248 } 249 188 250 /** 189 251 * @brief Return pointer the next node from this node … … 202 264 } 203 265 266 /** @brief Return pointer the immutable next node from this node 267 * 268 * This function returns a pointer to the next node after this node. 269 * 270 * @param[in] the_node is the node to be operated upon. 271 * 272 * @return This method returns the next node on the chain. 273 */ 274 RTEMS_INLINE_ROUTINE const rtems_chain_node *rtems_chain_immutable_next( 275 const rtems_chain_node *the_node 276 ) 277 { 278 return _Chain_Immutable_next( the_node ); 279 } 280 204 281 /** 205 282 * @brief Return pointer the previous node from this node … … 216 293 { 217 294 return _Chain_Previous( the_node ); 295 } 296 297 /** @brief Return pointer the immutable previous node from this node 298 * 299 * This function returns a pointer to the previous node on this chain. 300 * 301 * @param[in] the_node is the node to be operated upon. 302 * 303 * @return This method returns the previous node on the chain. 304 */ 305 RTEMS_INLINE_ROUTINE const rtems_chain_node *rtems_chain_immutable_previous( 306 const rtems_chain_node *the_node 307 ) 308 { 309 return _Chain_Immutable_previous( the_node ); 218 310 } 219 311 … … 250 342 */ 251 343 RTEMS_INLINE_ROUTINE bool rtems_chain_is_empty( 252 rtems_chain_control *the_chain344 const rtems_chain_control *the_chain 253 345 ) 254 346 { … … 324 416 */ 325 417 RTEMS_INLINE_ROUTINE bool rtems_chain_is_head( 326 rtems_chain_control*the_chain,418 const rtems_chain_control *the_chain, 327 419 const rtems_chain_node *the_node 328 420 ) … … 341 433 */ 342 434 RTEMS_INLINE_ROUTINE bool rtems_chain_is_tail( 343 rtems_chain_control*the_chain,435 const rtems_chain_control *the_chain, 344 436 const rtems_chain_node *the_node 345 437 ) -
cpukit/score/inline/rtems/score/chain.inl
r52694844 r72a3af3 143 143 /** @brief Return pointer to Chain Tail 144 144 * 145 * This function returns a pointer to the lastnode on the chain.145 * This function returns a pointer to the tail node on the chain. 146 146 * 147 147 * @param[in] the_chain is the chain to be operated upon. … … 158 158 /** @brief Return pointer to immutable Chain Tail 159 159 * 160 * This function returns a pointer to the lastnode on the chain.160 * This function returns a pointer to the tail node on the chain. 161 161 * 162 162 * @param[in] the_chain is the chain to be operated upon. … … 250 250 } 251 251 252 /** @brief Return pointer the immutable next node from this node 253 * 254 * This function returns a pointer to the next node after this node. 255 * 256 * @param[in] the_node is the node to be operated upon. 257 * 258 * @return This method returns the next node on the chain. 259 */ 260 RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_next( 261 const Chain_Node *the_node 262 ) 263 { 264 return the_node->next; 265 } 266 252 267 /** @brief Return pointer the previous node from this node 253 268 * … … 265 280 } 266 281 282 /** @brief Return pointer the immutable previous node from this node 283 * 284 * This function returns a pointer to the previous node on this chain. 285 * 286 * @param[in] the_node is the node to be operated upon. 287 * 288 * @return This method returns the previous node on the chain. 289 */ 290 RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_previous( 291 const Chain_Node *the_node 292 ) 293 { 294 return the_node->previous; 295 } 296 267 297 /** @brief Is the Chain Empty 268 298 * … … 348 378 */ 349 379 RTEMS_INLINE_ROUTINE bool _Chain_Is_head( 350 Chain_Control *the_chain,380 const Chain_Control *the_chain, 351 381 const Chain_Node *the_node 352 382 ) 353 383 { 354 return (the_node == _Chain_ Head(the_chain));384 return (the_node == _Chain_Immutable_head( the_chain )); 355 385 } 356 386 … … 364 394 */ 365 395 RTEMS_INLINE_ROUTINE bool _Chain_Is_tail( 366 Chain_Control *the_chain,396 const Chain_Control *the_chain, 367 397 const Chain_Node *the_node 368 398 ) 369 399 { 370 return (the_node == _Chain_ Tail(the_chain));400 return (the_node == _Chain_Immutable_tail( the_chain )); 371 401 } 372 402
Note: See TracChangeset
for help on using the changeset viewer.