public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SysV shm device number
@ 2004-01-29 15:05 Albert Cahalan
  2004-01-29 19:55 ` Hugh Dickins
  0 siblings, 1 reply; 2+ messages in thread
From: Albert Cahalan @ 2004-01-29 15:05 UTC (permalink / raw)
  To: linux-kernel mailing list

I'd like to reliably identify SysV shared memory
in the /proc/*/maps files. On one system, the entries
look like this:

40014000-40015000 r--s 00000000 00:04 0          /SYSV00000000 (deleted)
40015000-40016000 rw-s 00000000 00:04 32769      /SYSV000000ff (deleted)

On my system, they look like this:

30016000-30017000 r--s 00000000 00:06 870318096  /SYSV00000000\040(deleted)
30017000-30018000 rw-s 00000000 00:06 870350865  /SYSV000000ff\040(deleted)

So the key number is in the name, and the shmid
number is the inode number. The device major number
is 0, and the device minor number is 4 or 6.

Other than by creating my own SysV shared memory,
is there a way to tell what the minor number
should be?



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-29 19:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-29 15:05 SysV shm device number Albert Cahalan
2004-01-29 19:55 ` Hugh Dickins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox