Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Redhat / Fedora Linux Help > what is a POSIX equivalent of ipcs -m ?

Forgot Password?
 Redhat / Fedora Linux Help   Help and discussion related to Redhat and Fedora Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-07-2007   #1 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 3
what is a POSIX equivalent of ipcs -m ?

Hi All,

Is there any equivalent method in POSIX to find out the ipc information for sharedmemory or semaphores?
Like if we execute this command:"
ipcs -m

We get the following output:
T ID KEY MODE OWNER GROUP
Shared Memory:
m 0 0x50000dcb --rw-r--r-- root root


Similarly, Do we have any such equivalent way to determine the ipcs facilites for POSIX calls? If there is no equivalent command then can we write any program ourselves to determine all these information?
Any help on this will be highly appreciated.

Thanks
barkha
barkha shah is offline  


Reply With Quote
Old 05-08-2007   #2 (permalink)
Just Joined!
 
Join Date: May 2007
Location: In a city called Chennai in India
Posts: 17
the same command shows the POSIX compliant ipc's as well

Hi,

The same command "ipcs -a" will list you all the currently active shared memories, Semaphores and also the message queues in your machine.

This command will also show you the POSIX compliant shared memories etc also.

Like when you create a shared memory using POSIX calls such as "shm_open()", "mmap()", "shm_destroy()" etc., those shared memories created could be viewed by opening "/dev/shm" which will be automatically mounted in your machine. You can check "df -h" for that "/dev/shm" device mount.

Those shared memories so created can also be viewed with the "ipcs -a" command. You can verify that by means of checking your Shared Memory key or the Permission bits. Say, if you give a 0666 permission for your shared memory, you can notice that permitted shared memory being shown in the "ipcs -a" command.

Regards
Visu
Viswanathan is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 06:15 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2