SunOS and SysV IPC

Bobby Krupczak krupczak at secola.Columbia.NCR.COM
Thu Apr 11 23:49:00 AEST 1991


Hi!

I am implementing a management agent on a SunOS 4.1 box.  I would like to
be able to report ipcs-like information without having to fork/exec
the ipcs command itself.  I want to be able to get the same information
programmatically.

I know that the various ipc info structures exist in the kernel and I can
lseek through /dev/kmem to get that information.  I am using the kvm facility
to dig the appropriate structures out of kernel memory.  One problem exists:
How does SunOS generate IPC IDs for the various structures?

Does anyone know the secret undocumented way that the SunOS kernel
comes up with new IPC IDs?

Answers and comments are welcome.

Thanks in advance

Bobby



More information about the Comp.unix.programmer mailing list