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)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 13 Dec 2014 10:39:37 +0000 (18:39 +0800)
commit73c95100495afa172e5e7c68b81dfecd275b0837
tree59a773b4a091d9dea9245719d40501d5f066c098
parentb67a2db05d748b13fa7e7fa2a4678eb4aac1f00f
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