proc_flush_task —
Remove dcache entries for task
from the /proc dcache.
void proc_flush_task (
struct task_struct * task)
;
Looks in the dcache for
/proc/pid
/proc/tgid
/task/pid
if either directory is present flushes it and all of it'ts children
from the dcache.
It is safe and reasonable to cache /proc entries for a task until that task exits. After that they just clog up the dcache with useless entries, possibly causing useful dcache entries to be flushed instead. This routine is proved to flush those useless dcache entries at process exit time.
Looks in the dcache for
/proc/pid
/proc/tgid
/task/pid
if either directory is present flushes it and all of it'ts children
from the dcache.
It is safe and reasonable to cache /proc entries for a task until that task exits. After that they just clog up the dcache with useless entries, possibly causing useful dcache entries to be flushed instead. This routine is proved to flush those useless dcache entries at process exit time.