Re: access to process descriptor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Vincenzo Mallozzi wrote:
Hi all,
I'm trying to develop a C program that access to
process descriptor information but I have had some
problem with libraries.
In particular, I've developed a program like this:

#include <linux/sched.h>

int main(void){
   pid_t pid;
   ....
   task_struct process = find_task_by_pid(pid);
   ...
}

but the compiler can't find get_task_by_pid function,
while this is a function declared in
include/linux/sched.h.
What's wrong?
Are there other methods to access process descriptor
pointer?
Thanks.
Vincenzo Mallozzi.


This funtion is only valid in kernel mode.


-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux