SYSTEM CALLS FOR THE FILE SYSTEM

parameters, determining file status, and closing the file, use the file descriptor that the open system call returns. The kernel searches the file system for the file name parameter using algorithm namei (Figure 4.2). Figure 4.2: Algorithm for Opening a File Suppose a process executes the following code, opening the file "/etc/passwd" twice, ................
................