benilla-re systems structs docs

InitNodeList

function · glue · primitive

Address
0x46c6c0 · 33 bytes, up to 0x46c6e0
Signature
void * __thiscall (void *this)
Meaning
Empties a list whose nodes link at +0x08: offset 8, the head link pointing at itself, marked by bit 0
Confidence
verified, proof one
Finding
glue/script#list-helpers-and-message-printf

Finding: List helpers and message printf in glue: the script functions

Four helpers work on intrusive lists: a link is a previous-link pointer and a next-node pointer, and a pointer to the head link is marked by bit 0. 0x46c6c0 empties a list whose nodes keep their link at +0x08. 0x46cab0 returns a node's link, or the head link for null. 0x46cad0 returns the link of the next node, or the next pointer with bit 0 cleared when it is marked or null; a negative link offset is recovered from the previous link. 0x46cb00 unlinks a link and zeroes it. 0x46c6f0 formats a message and passes it on with its first argument.

The derivation is in the doc.

Callers 3

Callees 0

None by a direct call or jump.

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