diff options
author | San Mehat <san@google.com> | 2010-05-06 15:37:55 -0700 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-05-23 14:43:11 -0700 |
commit | b6cd3d7da6fb112fd790777cbb20b42c4e6dfb16 (patch) | |
tree | e9f8ba10b689e1f193b9ac6debe1246a8451ffce /include | |
parent | 1a4e47a795c7c787e3a8aeff066440e5a51b7474 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index e48311e8c923..30473ee9628b 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1724,6 +1724,9 @@ extern cputime_t task_utime(struct task_struct *p); extern cputime_t task_stime(struct task_struct *p); extern cputime_t task_gtime(struct task_struct *p); +extern int task_free_register(struct notifier_block *n); +extern int task_free_unregister(struct notifier_block *n); + /* * Per process flags */ |