rust-kernel
Rustbelt: a hobby x86_64 kernel written in Rust
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | //! Open files: what a file descriptor refers to.
//!
//! `File` is the interface the read/write syscalls use. It's separate from
//! `Inode` because the same inode can be open several times with different
//! offsets, and because some files aren't in any file system at all (the
//! console). Linux calls this `struct file` + `file_operations`.
use ;
use crateErrno;
use Arc;
use Mutex;
/// A regular file opened through the VFS: inode + current position.
|