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

Function lwp_get_syscall_name

components/lwp/lwp_syscall.c:11271–11297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11269}
11270
11271const char *lwp_get_syscall_name(rt_uint32_t number)
11272{
11273 const char *name = "sys_notimpl";
11274
11275 if (number == 0xff)
11276 {
11277 name = "sys_log";
11278 }
11279 else
11280 {
11281 number -= 1;
11282 if (number < sizeof(func_table) / sizeof(func_table[0]))
11283 {
11284 name = (char*)func_table[number].name;
11285 }
11286 else
11287 {
11288 if (__sys_log_enable)
11289 {
11290 LOG_I("Unimplement syscall %d", number);
11291 }
11292 }
11293 }
11294
11295 /* skip sys_ */
11296 return name;
11297}

Callers 2

syscall_handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected