MCPcopy Create free account
hub / github.com/Bananymous/banan-os / blocks

Method blocks

kernel/include/kernel/FS/TmpFS/FileSystem.h:46–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 virtual unsigned long bsize() const override { return PAGE_SIZE; }
45 virtual unsigned long frsize() const override { return PAGE_SIZE; }
46 virtual fsblkcnt_t blocks() const override { return m_max_pages; }
47 virtual fsblkcnt_t bfree() const override { return m_max_pages - m_used_pages; }
48 virtual fsblkcnt_t bavail() const override { return m_max_pages - m_used_pages; }
49 virtual fsfilcnt_t files() const override { return PAGE_SIZE * blocks() / sizeof(TmpDirectoryEntry); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected