valid task structure and wake_up_process

From: Shirish Pargaonkar
Date: Mon Apr 14 2008 - 14:36:53 EST


How do I check whether a task is valid before calling wake_up_process() with
that task structure pointer?
I could call wake_up_process with a task structure that is corrupt or incorrect
and that could cause a system crash, so I wanted to do a sanity check of
the task structure.

I do not subscribe to this list, so please copy me you responses.

Regards,

Shirish
--
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/