AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
malloc_type Struct Reference

A malloc type: what an allocation is for, which /proc/kvmem counts by. More...

#include <kvmem.h>

Data Fields

const char * name
const char * desc
size_t nr
size_t total
struct qnode * qnode
struct slab * slabs [SLAB_CLASSES]

Detailed Description

A malloc type: what an allocation is for, which /proc/kvmem counts by.

Definition at line 14 of file kvmem.h.

Field Documentation

◆ desc

const char* malloc_type::desc

Definition at line 16 of file kvmem.h.

◆ name

const char* malloc_type::name

Definition at line 15 of file kvmem.h.

Referenced by procfs_kvmem().

◆ nr

size_t malloc_type::nr

Definition at line 17 of file kvmem.h.

Referenced by kfree(), kvmem_alloc(), procfs_kvmem(), slab_alloc(), and slab_free().

◆ qnode

struct qnode* malloc_type::qnode

Definition at line 19 of file kvmem.h.

Referenced by kmalloc().

◆ slabs

struct slab* malloc_type::slabs[SLAB_CLASSES]

Definition at line 22 of file kvmem.h.

Referenced by slab_alloc(), and slab_free().

◆ total

size_t malloc_type::total

Definition at line 18 of file kvmem.h.

Referenced by kfree(), kvmem_alloc(), procfs_kvmem(), slab_alloc(), and slab_free().


The documentation for this struct was generated from the following file: