MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / cmd_list

Function cmd_list

components/finsh/cmd.c:939–1048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937
938#ifndef FINSH_USING_OPTION_COMPLETION
939static int cmd_list(int argc, char **argv)
940{
941 if(argc == 2)
942 {
943 if(strcmp(argv[1], "thread") == 0)
944 {
945 list_thread();
946 }
947 else if(strcmp(argv[1], "timer") == 0)
948 {
949 list_timer();
950 }
951#ifdef RT_USING_SEMAPHORE
952 else if(strcmp(argv[1], "sem") == 0)
953 {
954 list_sem();
955 }
956#endif /* RT_USING_SEMAPHORE */
957#ifdef RT_USING_EVENT
958 else if(strcmp(argv[1], "event") == 0)
959 {
960 list_event();
961 }
962#endif /* RT_USING_EVENT */
963#ifdef RT_USING_MUTEX
964 else if(strcmp(argv[1], "mutex") == 0)
965 {
966 list_mutex();
967 }
968#endif /* RT_USING_MUTEX */
969#ifdef RT_USING_MAILBOX
970 else if(strcmp(argv[1], "mailbox") == 0)
971 {
972 list_mailbox();
973 }
974#endif /* RT_USING_MAILBOX */
975#ifdef RT_USING_MESSAGEQUEUE
976 else if(strcmp(argv[1], "msgqueue") == 0)
977 {
978 list_msgqueue();
979 }
980#endif /* RT_USING_MESSAGEQUEUE */
981#ifdef RT_USING_MEMHEAP
982 else if(strcmp(argv[1], "memheap") == 0)
983 {
984 list_memheap();
985 }
986#endif /* RT_USING_MEMHEAP */
987#ifdef RT_USING_MEMPOOL
988 else if(strcmp(argv[1], "mempool") == 0)
989 {
990 list_mempool();
991 }
992#endif /* RT_USING_MEMPOOL */
993#ifdef RT_USING_DEVICE
994 else if(strcmp(argv[1], "device") == 0)
995 {
996 list_device();

Callers

nothing calls this directly

Calls 12

list_threadFunction · 0.85
list_timerFunction · 0.85
rt_kprintfFunction · 0.85
list_semFunction · 0.85
list_eventFunction · 0.85
list_mutexFunction · 0.85
list_mailboxFunction · 0.85
list_msgqueueFunction · 0.85
list_memheapFunction · 0.85
list_mempoolFunction · 0.85
list_deviceFunction · 0.70
list_fdFunction · 0.50

Tested by

no test coverage detected