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

Function cmd_ps

components/finsh/msh.c:60–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59#ifdef MSH_USING_BUILT_IN_COMMANDS
60static int cmd_ps(int argc, char **argv)
61{
62 extern long list_thread(void);
63 extern int list_module(void);
64
65#ifdef RT_USING_MODULE
66 if ((argc == 2) && (strcmp(argv[1], "-m") == 0))
67 list_module();
68 else
69#endif
70 list_thread();
71 return 0;
72}
73MSH_CMD_EXPORT_ALIAS(cmd_ps, ps, List threads in the system);
74
75#ifdef RT_USING_HEAP

Callers

nothing calls this directly

Calls 2

list_moduleFunction · 0.85
list_threadFunction · 0.85

Tested by

no test coverage detected