* @brief Free the proc dentry for the given LWP * * @param[in] lwp The LWP whose proc dentry is to be freed */
| 297 | * @param[in] lwp The LWP whose proc dentry is to be freed |
| 298 | */ |
| 299 | rt_inline void _free_proc_dentry(rt_lwp_t lwp) |
| 300 | { |
| 301 | char pid_str[64] = {0}; |
| 302 | |
| 303 | rt_snprintf(pid_str, 64, "%d", lwp->pid); |
| 304 | pid_str[63] = 0; |
| 305 | proc_remove_dentry(pid_str, 0); |
| 306 | } |
| 307 | #else |
| 308 | #define _free_proc_dentry(lwp) |
| 309 | #endif |
no test coverage detected