CS 3733 Operating Systems
Reading: Chapter 4 of Tanenbaum
proc file system and discussion
of the next assignment.
proc
file system).
#include
#include
caddr_t mmap(caddr_t addr, size_t len, int prot, int flags,
int fildes, off_t off);
Here is an example:
fildes = open(...)
address = mmap((caddr_t) 0, len, (PROT_READ | PROT_WRITE),
MAP_PRIVATE, fildes, offset)
/* use data at address */
SKILL: Understand basics of filesystem management