Well, If we were running linux we could look in /proc.
 
Possible solutions:

   1) Get the source for darwin and study the code for the ps command.

   2) Study the header files to find the format for the proc table, examine
the kernel symbol table to get the start address of the proc table. Write
code that fetches the table from /dev/kmem and parses it. ( I have done this
with some other unix systems...). <proc.h> might be a good starting point.

Regrettably sysctl does not give access to table info in the kernel.

--Jerry

> Hey,
> 
> I was thinking about working on Proc::ProcessTable to get support for OS
> 
> X.  But after a little effort, it occurred to me that I have no clue how
> 
> to access process table information.  Anyone know this kind of thing, or
> 
> could tell me what docs to look at?
> 
> Thanks.
> 
> -Ken
> 

Reply via email to