suse man page for proc_flush_task

Query: proc_flush_task

OS: suse

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

PROC_FLUSH_TASK(9)						The proc filesystem						PROC_FLUSH_TASK(9)

NAME
proc_flush_task - Remove dcache entries for task from the /proc dcache.
SYNOPSIS
void proc_flush_task(struct task_struct * task);
ARGUMENTS
task task that should be flushed.
DESCRIPTION
When flushing dentries from proc, one needs to flush them from global proc (proc_mnt) and from all the namespaces' procs this task was seen in. This call is supposed to do all of this job. 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.
NOTE
This routine is just an optimization so it does not guarantee that no dcache entries will exist at process exit time it just makes it very unlikely that any will persist.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 PROC_FLUSH_TASK(9)
Related Man Pages
newtask(1) - opensolaris
lsns(8) - linux
lsns(8) - centos
lsns(8) - opendarwin
lsns(8) - xfree86
Similar Topics in the Unix Linux Community
How to restrict user to a specific directory in solaris 10
Cut command on RHEL 6.8 compatibility issues
Tar Command
A (ksh) Library For and From UNIX.com
32 bit process addressing more than 4GB