[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: task_struct and it's fields
Hi,
> I tried that one too,but to no avail.I think the problem is not that,
> for some reason, if i am trying to access these file_struct or struct
> file pointers in task_struct, i get bombed.I put all the checks
> needed, like testing for NULL or going over array boundry etc, but of
> no use.
I'd suggest the problem is down to not understanding the data structure
you are walking. Unfortunately, I don't know its structure either but
the typical way to debug code such as this is to not *follow* a pointer
and print something it points to but to print out the value of the
pointer, i.e. the address.
This prevents failure and uncovers the first layer of the structure.
You can then determine the rules to move through to the next layer, and
so on.
If your attempt at the first layer still goes Boom! then you need to
step back one more level.
Ralph.
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.surriel.com/kernelnewbies.shtml