lkml.org 
[lkml]   [1997]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectOFFTOPIC: 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).


\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.078 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site