Next | What's a file? | 12 |
How did the file pointer get into the file pointer table in the first place?
int fd = open("blookus", O_RDONLY);
The process structure includes a pointer to the inode for the process's current working directory ("cwd")
The kernel opens this directory for reading
Reads it in
Next | Copyright © 2007 M. J. Dominus |