Hi all !
I am trying to use a task_struct pointer in order to analyze a process. But I can not have any pointer on a task_struct to ask some field.
Someone could help me ?
thanks.

I tryed something like :

#include <stdio.h>
#include <stdlib.h>
#include <sched.h>
#include <asm/current.h>

main(){
struct task_struct *h=get_current();

printf("n h : %d ",h);
printf("n &h : %d ",&h);

printf("n *h : %l ",h->pid); // it doesn't work