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.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Pbm With Task_struct, I can't use a pointer on a task_struct
bobjr72
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 ?
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
Go to the top of the page
 
+Quote Post

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: 13th December 2017 - 09:53 AM