How to get the list of IPC IDs?

How to get the list of IPC IDs?

Post by Su Cha » Thu, 20 Jun 1996 04:00:00



Hi,
        I am doing some system programming on SunOS and Solaris systems.
I would like to implement "ipcs" using system calls, e.g., via
"kvmread". Does anyone know how I can get a handle on the list of IPC
IDs(semid, msgid, shmid) currently in use in the system??
        Thanks a lot for your help.
                                                 Su.

 
 
 

1. SYS V IPC, how does "ipcs" get list of existing IPC structures

I need to clean up after a process which tends to die leaving IPC structures
hanging about.  Currently I use "system" to run
"ipcs | grep $USERNAME | cut | ipcrm" to clean up the IPC structures for the
user.  What is the mechanism for obtaining all IPC structures for a given user
programatically?  (i.e.) How can I get a list of all message structures
created by a specific user so that I can delete them using "msgctl", "semctl",
etc.

                                                Glenn

2. cannot modprob "char-major-10-135" after compiling new kernel

3. Solaris 2.5: IPC gets faster, Sparc 20 gets slower?

4. modem-network card conflict under RedHat 5.1

5. IPC IDs handle

6. Where is the source for the makerom utility ?

7. IPC id checks off-by-one

8. Best price on the net CD-R 74 Minute Gold $2.99 Retail package - no rebates no gimmics no surcharges

9. NEW EMAIL LIST: IPC/Middleware/Socket Programming

10. A List of "GOOD" books on IPC, Thank you!

11. Getting Linux on to a Sparc IPC

12. Getting a copy of "4.3BSD IPC Tutorials"

13. Partition ID list 1.7