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

Function _free_proc_dentry

components/lwp/lwp_pid.c:299–306  ·  view source on GitHub ↗

* @brief Free the proc dentry for the given LWP * * @param[in] lwp The LWP whose proc dentry is to be freed */

Source from the content-addressed store, hash-verified

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

Callers 1

lwp_pid_putFunction · 0.85

Calls 2

rt_snprintfFunction · 0.85
proc_remove_dentryFunction · 0.85

Tested by

no test coverage detected