Differences From
Artifact [9a7772ee1a]:
50 50
51 51 the convenience function `kmstat(void*) → kmptr` wraps a pointer to a static object in a `kmptr` struct.
52 52
53 53 ### kmcell
54 54
55 55 `kmcell` is a stub struct used to disambiguate between source types.a "source" is an object that can hold an allocated object, such as the heap, a memory pool, a fixed-length array on stack, or a fixed-length global array. all values produced by a kmem allocation function point to within a `kmcell`.
56 56
57 - * `kmptr_kind kind` - kind of cell
58 - * `size_t sz` - kind of cell (data plus all fields)
57 + * `kmkind kind` - kind of cell
58 + * `size_t size` - size of cell (data plus all fields)
59 59 * `kmshred shred` - shredding flag
60 60
61 61 ### kmref
62 62
63 63 `kmref` is a struct that constitutes the in-memory representation of a reference-counted cell.
64 64
65 65 * `kmkind kind = kmkind_ref` - kind of cell