mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
Get rid of Vnode concept.
We already have an abstraction between Process and Inode/CharacterDevice/FIFO and it's called FileDescriptor. :^)
This commit is contained in:
parent
310a5f4199
commit
b46ae2bf09
15 changed files with 204 additions and 376 deletions
|
@ -1,15 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Retainable.h>
|
||||
#include <AK/Types.h>
|
||||
#include "Limits.h"
|
||||
#include "FileDescriptor.h"
|
||||
|
||||
class Process;
|
||||
|
||||
class CharacterDevice {
|
||||
class CharacterDevice : public Retainable<CharacterDevice> {
|
||||
public:
|
||||
virtual ~CharacterDevice();
|
||||
|
||||
InodeMetadata metadata() const { return { }; }
|
||||
|
||||
RetainPtr<FileDescriptor> open(int options);
|
||||
|
||||
virtual bool can_read(Process&) const = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue