benilla-re systems structs docs

ItemCacheAllocNode

function · dbcache · primitive

Address
0x55b250 · 268 bytes, up to 0x55b35b
Signature
void * __thiscall (void *this, void *bucket, uint32_t extra, uint32_t flags)
Meaning
Allocates an item node with an empty callback list and links it at the tail of a bucket
Confidence
verified, proof two
Finding
dbcache/callbacks#item-node-allocation

Finding: Item node allocation in dbcache: callbacks

0x55b250(bucket, extra, flags) is slot 1 of the item cache's vtable, which the hash insert 0x56d610 calls for a key with no node. It allocates extra + 0x204 zeroed bytes (flags OR 8), clears the links, the record at +0x18 and the valid and dispatching bytes (+0x1f0, +0x201), builds the empty callback list at +0x1f4, links the node's hash link (node+4) at the tail of the bucket's list and returns the node.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.