Messages in this thread | | | Date | 25 Mar 97 12:51:30 EST | From | <> | Subject | OFFTOPIC: reading struct user in ptx kernel. |
| |
Hi Kernel Guys,
I know it has nothing to do with Linux kernel but I am not aware of ptx-kernel mailing list and I did not want to ask Sequent Tech. Support questions not strictly within software support contract (kernel hacking is not a supported thing yet?).
So, my question is: how do I read user structure of a process on DYNIX/ptx 4.1.x? On AIX there is an system calls getuser() which does this but how about ptx?
My guess is:
1) open /dev/kmem
2) locate the proc slot for the process in question
3) look at p_ublockptes[2] field and somehow translate the user virtual address to physical address. If crash(1M) does it somehow (du command) then it should be possible for a user process!
4) open /dev/mem
5) read sizeof(struct user) bytes from the offset found at step 3).
So the question is how to perform step 3) (assuming this sequence is correct)?
I apologize for the offtopic question but this list is the best place I have ever seen to meet knowledgeable kernel hackers.
Many regards, Tigran Aivazian.
PS. Please reply to me directly at <tigrana@dstiuk.ccmail.compuserve.com> because I am not subscribed to linux-kernel mailing list on this particular address (at work).
| |