
Sharing A Device / Shared Memory Issues
Hi All,
Need help sharing a device. I've got a device that I can open and
establish a single connection to at any given time via open(). The
device is a timing card and needs to be accessbile by many processes; I
don't have 10ms to wait around for the device to be opened,queried, and
closed in order for another process to use it.
I tried writing a daemon that updates a shared memory space with other
processes can query, but the memory space is not being updated at a
consistent rate. Therefore, I have some questions I hope somebody
might be able to answer:
- I'm running a 4-processor Solaris box; is there some type of
shm?flush? call I need to perform to have each processor see the memory
being updated?
- Is there a better way to do this in general -- i.e. another method of
IPC that is more reliable?
Any insight is appreciated.