Expand description
File trait & inode(dir, file, pipe, stdin, stdout)
Modules
- inode 🔒
Arc<Inode>->OSInodeInner: In order to open files concurrently we need to wrapInodeintoArc,butMutexinInodeprevents file systems from being accessed simultaneously - stdio 🔒Stdin & Stdout
Structs
- inode in memory A wrapper around a filesystem inode to implement File trait atop
- The flags argument to the open() system call is constructed by ORing together zero or more of the following values:
- The stat of a inode
- The mode of a inode whether a directory or a file
- stdin file for getting chars from console
- stdout file for putting chars to console
Traits
- trait File for all file types
Functions
- List all apps in the root directory
- Open a file