Linux, Real-Time Linux, & IPC
By Frederick M. Proctor, November 01, 1999
Source Code Accompanies This Article. Download It Now.
When dealing with real-time systems, IPC overhead becomes important. Fred examines two of the best IPC mechanisms available under Linux -- FIFO and shared memory.
Nov99: Linux, Real-Time Linux, & IPC
#include <unistd.h> /* open() */
#include <fcntl.h> /* O_RDWR */
int fd;
if ((fd = open("/dev/mem", O_RDWR)) < 0)
{
/* handle error here */
}
Example 2: Calling open() on the memory device /dev/mem.
Copyright © 1999, Dr. Dobb's Journal