Re: [RFC] ipcs for POSIX IPC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 24 Apr 2024 at 18:45, Masatake YAMATO <yamato@xxxxxxxxxx> wrote:
> On Wed, 24 Apr 2024 11:52:40 +0200, Karel Zak wrote:
>> On Wed, Apr 24, 2024 at 04:10:48AM +0530, Prasanna Paithankar wrote:
>>> The 'ipcs' (and 'ipcrm') command provides information on (or removes
>>> some) System V IPC resources. I'd like to know why no similar utility
>>> for POSIX IPC has existed for a long time. I would like to know if
>>> such a tool exists in case I missed it. If not, I will provide patches
>>> to ipcs and ipcrm (or should I separate the functionality into a new
>>> utility).
>>
>> I would suggest improving 'lsipc' instead of using the old 'ipcs'.
>>
>> The question is where to find information about POSIX IPC. For System
>> V, there is /proc/sysvipc, but there is no equivalent for POSIX (or I
>> am not aware of it). It seems that the only way to gather this
>> information is by scanning all processes' memory maps for /dev/shm.
>> This could be achieved by using lsfd.

Gathered information about POSIX IPC by scanning through /dev/shm (for
shm and sem) and /dev/mqueue (for mqueue).
Used libmount to mount /dev/mqueue if not already mounted in ipcutils.c.

Patched ipcrm.c and ipcmk.c to unlink and open POSIX IPC objects respectively.

Didn't add short command line options in ipcrm as recommended (Open
Group requirements).

Pull request open at: https://github.com/util-linux/util-linux/pull/3382

Yours sincerely
Prasanna Paithankar

>
> Masatake YAMATO
>
>>     Karel
>>
>>>
>>> Yours sincerely
>>> Prasanna Paithankar
>>>
>>
>> --
>>  Karel Zak  <kzak@xxxxxxxxxx>
>>  http://karelzak.blogspot.com
>>
----------------------------------------------------------------


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux