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)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:29 +0000 (13:40 -0700)
commit4624fb9d2d69c2ed59cb07712e1d8693e343dce7
treeab97f45443aabc948fe3c03dc481b751b2aacce5
parent45a84f273f0502a54b877bd53f117f83de00724f
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