3
votes
3answers
1k views

Share memory between a virtual machine and the host

Through shmget and shmat, I am able to access the data stored in one program from another program. Here's the gist of the code: key=ftok("shared.c",'c'); shmid=shmget(key,1024,0644|IPC_CREAT); ...