20 #include "pedigree/kernel/machine/Disk.h" 21 #include "pedigree/kernel/utilities/String.h" 41 Disk::SubType Disk::getSubType()
virtual void pin(uint64_t location)
Pins a cache page.
A disk device - a block device in UNIX terms.
virtual void flush(uint64_t location)
Flush a cached page to disk.
virtual uintptr_t read(uint64_t location)
virtual size_t getSize() const
Gets the size of the disk.
virtual size_t getBlockSize() const
Gets the block size of the disk.
virtual void dump(String &str)
virtual void write(uint64_t location)
virtual bool cacheIsCritical()
Whether or not the cache is critical and cannot be flushed or deleted.
virtual void getName(String &str)
virtual void unpin(uint64_t location)
virtual void align(uint64_t location)
Sets the page boundary alignment after a specific location on the disk.