mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
Kernel/Storage: Tidy up RamdiskDevice class
This commit is contained in:
parent
f90d98aef0
commit
d19bd59e28
Notes:
sideshowbarker
2024-07-18 03:43:53 +09:00
Author: https://github.com/supercomputer7
Commit: d19bd59e28
Pull-request: https://github.com/SerenityOS/serenity/pull/10107
1 changed files with 5 additions and 5 deletions
|
@ -19,17 +19,17 @@ class RamdiskDevice final : public StorageDevice {
|
|||
AK_MAKE_ETERNAL
|
||||
public:
|
||||
static NonnullRefPtr<RamdiskDevice> create(const RamdiskController&, NonnullOwnPtr<Memory::Region>&& region, int major, int minor);
|
||||
RamdiskDevice(const RamdiskController&, NonnullOwnPtr<Memory::Region>&&, int major, int minor);
|
||||
virtual ~RamdiskDevice() override;
|
||||
|
||||
// ^BlockDevice
|
||||
virtual void start_request(AsyncBlockDeviceRequest&) override;
|
||||
|
||||
// ^DiskDevice
|
||||
virtual StringView class_name() const override;
|
||||
virtual String storage_name() const override;
|
||||
|
||||
bool is_slave() const;
|
||||
private:
|
||||
RamdiskDevice(const RamdiskController&, NonnullOwnPtr<Memory::Region>&&, int major, int minor);
|
||||
|
||||
// ^BlockDevice
|
||||
virtual void start_request(AsyncBlockDeviceRequest&) override;
|
||||
|
||||
Mutex m_lock { "RamdiskDevice" };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue