MCPcopy Create free account
hub / github.com/FreeRTOS/FreeRTOS-Kernel / vQueueAddToRegistry

Function vQueueAddToRegistry

queue.c:2725–2751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2723#if ( configQUEUE_REGISTRY_SIZE > 0 )
2724
2725 void vQueueAddToRegistry( QueueHandle_t xQueue,
2726 const char * pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
2727 {
2728 UBaseType_t ux;
2729
2730 configASSERT( xQueue );
2731 configASSERT( pcQueueName );
2732
2733 /* See if there is an empty space in the registry. A NULL name denotes
2734 * a free slot. */
2735 for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
2736 {
2737 if( xQueueRegistry[ ux ].pcQueueName == NULL )
2738 {
2739 /* Store the information on this queue. */
2740 xQueueRegistry[ ux ].pcQueueName = pcQueueName;
2741 xQueueRegistry[ ux ].xHandle = xQueue;
2742
2743 traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
2744 break;
2745 }
2746 else
2747 {
2748 mtCOVERAGE_TEST_MARKER();
2749 }
2750 }
2751 }
2752
2753#endif /* configQUEUE_REGISTRY_SIZE */
2754/*-----------------------------------------------------------*/

Callers 2

MPU_vQueueAddToRegistryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected