OSDN Git Service

sched: Add a generic notifier when a task struct is about to be freed
authorSan Mehat <san@google.com>
Thu, 6 May 2010 22:37:55 +0000 (15:37 -0700)
committerIliyan Malchev <malchev@google.com>
Mon, 23 May 2011 22:43:38 +0000 (15:43 -0700)
commit12dd04d2eb930c5dc519f096b1501cd0346491e3
tree571a88b1ea3604baaaf1905352ad20eb95d38db0
parent96bc9717a70da31dba573aa89cf16624eefeb880
sched: Add a generic notifier when a task struct is about to be freed

This patch adds a notifier which can be used by subsystems that may
be interested in when a task has completely died and is about to
have it's last resource freed.

  The Android lowmemory killer uses this to determine when a task
it has killed has finally given up its goods.

Signed-off-by: San Mehat <san@google.com>
include/linux/sched.h
kernel/fork.c