Linux VFS open()
/* look up first N-1 components of pathname */
down(&inode->i_sem);
lookup(filename);
if (exists && O_EXCL specified)
return -EEXIST;
if (!exists && O_CREAT specified)
create(filename);
up(&inode->i_sem);
open();
Previous slide
Next slide
Back to first slide
View graphic version