.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "PROC_PID_UNHASH" "9" "09 October 2005" "" "" .SH NAME proc_pid_unhash \- Unhash /proc/pid entry from the dcache. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct dentry * proc_pid_unhash (struct task_struct * \fIp\fB); \fR .SH "ARGUMENTS" .TP \fB\fIp\fB\fR task that should be flushed. .SH "DESCRIPTION" .PP Drops the /proc/\fIpid\fR dcache entry from the hash chains. .PP Dropping /proc/\fIpid\fR entries and detach_pid must be synchroneous, otherwise e.g. /proc/\fIpid\fR/exe might point to the wrong executable, if the pid value is immediately reused. This is enforced by - caller must acquire spin_lock(p->proc_lock) - must be called before \fBdetach_pid\fR - proc_pid_lookup acquires proc_lock, and checks that the target is not dead by looking at the attach count of PIDTYPE_PID.