lkml.org 
[lkml]   [1999]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectreally no way to find a task? was Re: find_task_by_pid() in 2.2.3 unlinkable?

Actually, it appears there is no way to find any task structure
except for current! Is this some kind of lame security thing?

We can always use current->next_task to traverse the linked
list of all tasks, but this appears as a hack to me. The
problem with find_task_by_pid() is that it is inline, great
for efficiency, uncompileable in a module since htable isn't
exported.

Is this really the situation?

Sam

Sam Roberts wrote:
>
> Trying to use find_task_by_pid(), but pidhash is not linkable
> by a loadable module. Is this a bug, or should I find a
> task structure some other way?
>
> (I want to send a signal to a pid from within my module, by the way)
>
> Sam
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.032 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site