January 2004
Intermediate to advanced
432 pages
11h 1m
English
When a program filename is passed to exec(), it must find the file (also called the front store) and open it. If the file is already open, there will be an existing vnode for the file in the kernel memory. If not, a new vnode, pseudo vas, a single pregion, and a region are created, as illustrated in Figure 9-7. In most cases, a vas structure is pointed to by a proc structure (p_vas), but in the case of an executable or memory-mapped file, it is a vnode (v_vas) that references it. In turn, the vas (va_fp) points back to the vnode for which it was created.

When a process ...
Read now
Unlock full access