os/fs/
mod.rs

1mod inode;
2mod pipe;
3mod stdio;
4
5use crate::mm::UserBuffer;
6
7pub trait File: Send + Sync {
8    fn readable(&self) -> bool;
9    fn writable(&self) -> bool;
10    fn read(&self, buf: UserBuffer) -> usize;
11    fn write(&self, buf: UserBuffer) -> usize;
12}
13
14pub use inode::{OpenFlags, list_apps, open_file};
15pub use pipe::make_pipe;
16pub use stdio::{Stdin, Stdout};