<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic shmat() in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shmat/m-p/2540496#M728828</link>
    <description>I remenber that my program worked well the first time, but failed several times later.&lt;BR /&gt;I guess that the problem is that only shmget() shmat() and shmdt() are performed, but shmctl() is not. Ultimately the resource runs out.&lt;BR /&gt;But how can I remove this memory "garbage" ?&lt;BR /&gt;I use "ipcrm -m" to remove these shared memory and reboot the system, but the problem is still there.</description>
    <pubDate>Thu, 14 Jun 2001 09:16:28 GMT</pubDate>
    <dc:creator>Victor.Lin</dc:creator>
    <dc:date>2001-06-14T09:16:28Z</dc:date>
    <item>
      <title>shmat()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shmat/m-p/2540496#M728828</link>
      <description>I remenber that my program worked well the first time, but failed several times later.&lt;BR /&gt;I guess that the problem is that only shmget() shmat() and shmdt() are performed, but shmctl() is not. Ultimately the resource runs out.&lt;BR /&gt;But how can I remove this memory "garbage" ?&lt;BR /&gt;I use "ipcrm -m" to remove these shared memory and reboot the system, but the problem is still there.</description>
      <pubDate>Thu, 14 Jun 2001 09:16:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shmat/m-p/2540496#M728828</guid>
      <dc:creator>Victor.Lin</dc:creator>
      <dc:date>2001-06-14T09:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: shmat()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shmat/m-p/2540497#M728829</link>
      <description>shmctl(free) makes all shared memory free</description>
      <pubDate>Thu, 14 Jun 2001 11:48:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shmat/m-p/2540497#M728829</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2001-06-14T11:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: shmat()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shmat/m-p/2540498#M728830</link>
      <description>ravi:&lt;BR /&gt;What did you mean ?&lt;BR /&gt;int shmctl(int shmid, int cmd, struct shmid_ds *buf);&lt;BR /&gt;There are only IPC_STAT IPC_SET IPC_RMID SHM_LOCK SHM_UNLOCK for cmd. Where is free ?&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jun 2001 23:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shmat/m-p/2540498#M728830</guid>
      <dc:creator>Victor.Lin</dc:creator>
      <dc:date>2001-06-14T23:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: shmat()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shmat/m-p/2540499#M728831</link>
      <description>No, here's what you want to do:&lt;BR /&gt;&lt;BR /&gt;struct shmis_ds dummy;&lt;BR /&gt;&lt;BR /&gt;int my_shmid;  /* I assume you have done a shmget to get the shared memory identifier*/&lt;BR /&gt;&lt;BR /&gt;result = shmctl(my_shmid,IPC_RMID,&amp;amp;dummy);&lt;BR /&gt;&lt;BR /&gt;This will only work if you have the proper permissions (super-user or shm segment owner)&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Fri, 15 Jun 2001 23:59:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shmat/m-p/2540499#M728831</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-06-15T23:59:49Z</dc:date>
    </item>
  </channel>
</rss>

