[lkml]   [2008]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Fwd: Problem with kernel
(General question, CCing LKML).

On Sunday, 16 of November 2008, Gioacchino Mendola wrote:
> ---------- Forwarded message ----------
> From: Gioacchino Mendola <>
> Date: 2008/11/16
> Subject: Problem with kernel
> To:
> Hello everyone,
> This is my first mail and I hope my questions will not be too trivial!
> I'm trying to develop a lodable kernel module but I have a problems
> with certain system functions that have been deprecated.
> With the previuos kernel(2.6.26), I used the following functions
> kill_proc(pid_t pid, int sig, int priv)
> find_task_by_pid(int pid)
> Now i use the linux kernel
> Instead of kill_proc I tried to use kill_pid.
> Kill_pid() requires as a first argument a struct pid and not a pid_t pid.
> kill_pid(struct pid *pid, int sig, int priv)
> how can I get "struct pid" by "pid_t pid"?
> how can I get the "task_struct" by the pid?
> Thanks in advance
> --
> To unsubscribe from this list: send the line "unsubscribe kernel-testers" in
> the body of a message to
> More majordomo info at

Everyone knows that debugging is twice as hard as writing a program
in the first place. So if you're as clever as you can be when you write it,
how will you ever debug it? --- Brian Kernighan

 \ /
  Last update: 2008-11-16 17:37    [W:0.022 / U:25.952 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site