9.98 meminfo

struct meminfo {
    uint64_t phys_total;
    uint64_t phys_avail;
    uint64_t phys_free;
    uint64_t shared_usage;
    uint64_t kernel_usage;
    uint64_t table_usage;
    uint64_t poison_usage;
} __attribute__((packed));

int meminfo(struct meminfo *addr);

This syscall writes memory usage information to the passed structure.

The values stand for:

The syscall returns 0 on success or -1 on failure, with the following errno: