title: How to list processes attached to a shared memory segment in linux?
body: <p>How do I determine what process is attached to a shared memory segment?</p>
  
  <pre><code>awagner@tree:/home/awagner$ ipcs -m
  
  ------ Shared Memory Segments --------
  key        shmid      owner      perms      bytes      nattch     status      
  0x00000000 0          root       777        102400     1                       
  0x00000000 32769      root       774        96         1          dest         
  0x00000000 98306      awagner    600        393216     2          dest         
  0x00000000 131075     awagner    600        393216     2          dest    
  </code></pre>
  
  <p>i.e. how do I figure out which two processes are attached to shmid 98306?</p>