GreenLake Administration
- Community Home
- >
- Networking
- >
- Legacy
- >
- Communications and Wireless
- >
- Shared Memory shmat Read Only -> Write Mode
Communications and Wireless
1849275
Members
6209
Online
104042
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2004 12:32 AM
05-04-2004 12:32 AM
Shared Memory shmat Read Only -> Write Mode
Hi,
Is there is any way to change the address attached as "Read only" (SHM_RDONLY) to write enabled without "detaching" in same process.
For example,
Process P1()
{
addr1 = shmat(id1,0,SHM_RDONLY);
//addr1 is being used by another process
function(addr1);
shmdt(addr1)
addr2=shmat(id1,0,0);
//Modifies data of shared memory id1,
addr2. data = XXX
}
function(addr1)
{
//addr1 is used down the line
}
Can above be done without detaching the address "addr1" , so that I can get another address("addr2") within same process which is write enabled.
Thanks in Advance.
Regards,
Srinivasan S
Is there is any way to change the address attached as "Read only" (SHM_RDONLY) to write enabled without "detaching" in same process.
For example,
Process P1()
{
addr1 = shmat(id1,0,SHM_RDONLY);
//addr1 is being used by another process
function(addr1);
shmdt(addr1)
addr2=shmat(id1,0,0);
//Modifies data of shared memory id1,
addr2. data = XXX
}
function(addr1)
{
//addr1 is used down the line
}
Can above be done without detaching the address "addr1" , so that I can get another address("addr2") within same process which is write enabled.
Thanks in Advance.
Regards,
Srinivasan S
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP