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

Function lwp_to_pid

components/lwp/lwp_pid.c:1063–1070  ·  view source on GitHub ↗

* @brief Converts a lightweight process (LWP) to its PID * * @param[in] lwp The LWP structure to convert * * @return pid_t The PID of the LWP, or 0 if lwp is NULL */

Source from the content-addressed store, hash-verified

1061 * @return pid_t The PID of the LWP, or 0 if lwp is NULL
1062 */
1063pid_t lwp_to_pid(struct rt_lwp* lwp)
1064{
1065 if (!lwp)
1066 {
1067 return 0;
1068 }
1069 return lwp->pid;
1070}
1071
1072/**
1073 * @brief Convert process ID to process name

Callers 9

list_processFunction · 0.85
lwp_execveFunction · 0.85
sys_setsidFunction · 0.85
sys_getppidFunction · 0.85
_sys_forkFunction · 0.85
lwp_pgrp_createFunction · 0.85
sys_setpgidFunction · 0.85
lsofFunction · 0.85
proc_self_readlinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected