Rename the src directory to kernel.

This commit is contained in:
ticki 2016-08-14 18:42:32 +02:00
parent 7b8ba1a118
commit f8bd171efd
16 changed files with 0 additions and 0 deletions

12
kernel/scheme/mod.rs Normal file
View file

@ -0,0 +1,12 @@
/// A scheme is a primitive for handling filesystem syscalls in Redox.
/// Schemes accept paths from the kernel for `open`, and file descriptors that they generate
/// are then passed for operations like `close`, `read`, `write`, etc.
///
/// The kernel validates paths and file descriptors before they are passed to schemes,
/// also stripping the scheme identifier of paths if necessary.
pub trait Scheme {
/// Open the file at `path` with `flags`.
///
/// Returns a file descriptor or an error
fn open(path: &str, flags: usize) -> Result<usize>;
}