Linux - EmbeddedThis forum is for the discussion of Linux and embedded devices.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am not sure whether more than one shared memory can be created by a process
I tried creating three shared memory by a process.
I am using shmget system call to create the shared memory.
The flag parameter what I am using is IPC_CREATE | 0666 for all the three.
I had also tried with IPC_CREATE | 0644
I am getting three different ids for shmget and three different pointers for shmat().But some junk value is coming in the shared memory created.
I doubt that the shared memory created is overlapping.Whether the flag parameter has to be changed.
Please clear my doubt
Regards.
anoopmenon
Last edited by anoopmenons; 11-15-2009 at 09:59 AM..
Reason: tag was not added
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.