<?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 Shared Memory shmat Read Only -&amp;gt; Write Mode in Communications and Wireless</title>
    <link>https://community.hpe.com/t5/communications-and-wireless/shared-memory-shmat-read-only-gt-write-mode/m-p/3266665#M2804</link>
    <description>Hi,&lt;BR /&gt;Is there is any way to change the address attached as "Read only" (SHM_RDONLY) to write enabled without "detaching" in same process.&lt;BR /&gt;&lt;BR /&gt;For example,&lt;BR /&gt;Process P1()&lt;BR /&gt;{&lt;BR /&gt;addr1 = shmat(id1,0,SHM_RDONLY);&lt;BR /&gt;  //addr1 is being used by another process&lt;BR /&gt;function(addr1);&lt;BR /&gt;shmdt(addr1)&lt;BR /&gt;addr2=shmat(id1,0,0);&lt;BR /&gt;//Modifies data of shared memory id1,&lt;BR /&gt;addr2. data = XXX&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;function(addr1)&lt;BR /&gt;{&lt;BR /&gt;//addr1 is used down the line&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Can above be done without detaching the address "addr1" , so that I can get another address("addr2") within same process which is write enabled.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Srinivasan S&lt;BR /&gt;</description>
    <pubDate>Tue, 04 May 2004 07:32:15 GMT</pubDate>
    <dc:creator>Srinivasan S_1</dc:creator>
    <dc:date>2004-05-04T07:32:15Z</dc:date>
    <item>
      <title>Shared Memory shmat Read Only -&gt; Write Mode</title>
      <link>https://community.hpe.com/t5/communications-and-wireless/shared-memory-shmat-read-only-gt-write-mode/m-p/3266665#M2804</link>
      <description>Hi,&lt;BR /&gt;Is there is any way to change the address attached as "Read only" (SHM_RDONLY) to write enabled without "detaching" in same process.&lt;BR /&gt;&lt;BR /&gt;For example,&lt;BR /&gt;Process P1()&lt;BR /&gt;{&lt;BR /&gt;addr1 = shmat(id1,0,SHM_RDONLY);&lt;BR /&gt;  //addr1 is being used by another process&lt;BR /&gt;function(addr1);&lt;BR /&gt;shmdt(addr1)&lt;BR /&gt;addr2=shmat(id1,0,0);&lt;BR /&gt;//Modifies data of shared memory id1,&lt;BR /&gt;addr2. data = XXX&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;function(addr1)&lt;BR /&gt;{&lt;BR /&gt;//addr1 is used down the line&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Can above be done without detaching the address "addr1" , so that I can get another address("addr2") within same process which is write enabled.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Srinivasan S&lt;BR /&gt;</description>
      <pubDate>Tue, 04 May 2004 07:32:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/communications-and-wireless/shared-memory-shmat-read-only-gt-write-mode/m-p/3266665#M2804</guid>
      <dc:creator>Srinivasan S_1</dc:creator>
      <dc:date>2004-05-04T07:32:15Z</dc:date>
    </item>
  </channel>
</rss>

