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

Function lwp_get_sys_api

components/lwp/lwp_syscall.c:11244–11269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11242};
11243
11244const void *lwp_get_sys_api(rt_uint32_t number)
11245{
11246 const void *func = (const void *)sys_notimpl;
11247
11248 if (number == 0xff)
11249 {
11250 func = (void *)sys_log;
11251 }
11252 else
11253 {
11254 number -= 1;
11255 if (number < sizeof(func_table) / sizeof(func_table[0]))
11256 {
11257 func = func_table[number].func;
11258 }
11259 else
11260 {
11261 if (__sys_log_enable)
11262 {
11263 LOG_I("Unimplement syscall %d", number);
11264 }
11265 }
11266 }
11267
11268 return func;
11269}
11270
11271const char *lwp_get_syscall_name(rt_uint32_t number)
11272{

Callers 1

syscall_handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected