Skip to content

dstorage.h

RedstoneShell edited this page Oct 10, 2026 · 1 revision

DSTORAGE_H

Linking by #include <dstorage.h>, compiling with dstorage.o.

dstorage_detect(BootServices: *void): void

Detect every storage (HDD/SDD/etc.) and write to global data.

dstorage_get_total(void): u64

Returns total bytes from every storages

dstorage_get_count(void): u32

Returns total count of storages

dstorage_get_device_size(index: u32): u64

Returns size in bytes of storage, returns 0 if index>=device_count

Clone this wiki locally