lkml.org 
[lkml]   [2008]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: valid task structure and wake_up_process
On Mon, 14 Apr 2008 13:36:42 -0500
"Shirish Pargaonkar" <shirishpargaonkar@gmail.com> wrote:

> How do I check whether a task is valid before calling
> wake_up_process() with that task structure pointer?

Hi,

how did you get the pointer you got?

That part (the guy who gave you the pointer) should have taken a reference on the task basically,
or otherwise locked against the task going away.

In giving you advice it would help tremendously if you actually posted your code...





--
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings,
visit http://www.lesswatts.org


\
 
 \ /
  Last update: 2008-04-14 21:19    [W:0.360 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site