* @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 */
| 1061 | * @return pid_t The PID of the LWP, or 0 if lwp is NULL |
| 1062 | */ |
| 1063 | pid_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 |
no outgoing calls
no test coverage detected