Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
> Pbm With Task_struct, I can't use a pointer on a task_struct
post Oct 29 2002, 02:15 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 29-October 02
Member No.: 92

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 ?

I tryed something like :

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

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
Go to the top of the page
+Quote Post

Posts in this topic
- bobjr72   Pbm With Task_struct   Oct 29 2002, 02:15 PM

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 22nd July 2018 - 05:18 PM