benilla-re systems structs docs

GetListNodeLink

function · glue · orchestration

Address
0x46cab0 · 25 bytes, up to 0x46cac8
Signature
void * __thiscall (void *this, void *node)
Meaning
Returns a node's link at the list's link offset, or the list's head link for a null node
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 2

Callees 0

None by a direct call or jump.

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