mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
Kernel: Make BochsVGADevice a BlockDevice and support mmapping it.
Currently you can only mmap the entire framebuffer. Using this when starting up the WindowServer gets us yet another step closer towards it moving into userspace. :^)
This commit is contained in:
parent
2dc7c5a7b0
commit
799177feda
15 changed files with 155 additions and 26 deletions
|
@ -30,6 +30,7 @@ struct InodeMetadata {
|
|||
bool is_directory() const { return ::is_directory(mode); }
|
||||
bool is_character_device() const { return ::is_character_device(mode); }
|
||||
bool is_block_device() const { return ::is_block_device(mode); }
|
||||
bool is_device() const { return is_character_device() || is_block_device(); }
|
||||
bool is_regular_file() const { return ::is_regular_file(mode); }
|
||||
bool is_fifo() const { return ::is_fifo(mode); }
|
||||
bool is_symlink() const { return ::is_symlink(mode); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue