Re: [PATCH 01/11] Task watchers: Task Watchers
- From: Chase Venters <chase.venters@xxxxxxxxxxxx>
- Date: Tue, 13 Jun 2006 19:19:30 -0500
On Tuesday 13 June 2006 18:53, Matt Helsley wrote:
@@ -847,12 +848,15 @@ static void exit_notify(struct task_stru
fastcall NORET_TYPE void do_exit(long code)
{
struct task_struct *tsk = current;
struct taskstats *tidstats, *tgidstats;
int group_dead;
+ int notify_result;
profile_task_exit(tsk);
+ tsk->exit_code = code;
+ notify_result = notify_watchers(WATCH_TASK_EXIT, tsk);
Are you using this specific return value?
+int notify_watchers(unsigned long val, void *v)
+{
+ return atomic_notifier_call_chain(&task_watchers, val, v);
+}
Might this be called notify_task_watchers()?
Thanks,
Chase
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 01/11] Task watchers: Task Watchers
- From: Matt Helsley
- Re: [PATCH 01/11] Task watchers: Task Watchers
- References:
- [PATCH 01/11] Task watchers: Task Watchers
- From: Matt Helsley
- [PATCH 01/11] Task watchers: Task Watchers
- Prev by Date: [PATCH 01/11] Task watchers: Task Watchers
- Next by Date: Re: statistics infrastructure (in -mm tree) review
- Previous by thread: [PATCH 01/11] Task watchers: Task Watchers
- Next by thread: Re: [PATCH 01/11] Task watchers: Task Watchers
- Index(es):