Architecture independent level 1 (DDI/DKI).
A data block can have more than one message block pointing to it at one time, so the db_ref member keeps track of a data block’s references, preventing it from being deallocated until all message blocks are finished with it.
unsigned char | *db_base; | /* first byte of buffer */ |
unsigned char | *db_lim; | /* last byte (+1) of buffer */ |
unsigned char | db_ref; | /* # of message pointers to this data */ |
unsigned char | db_type; | /* message type */ |
A datab structure is defined as type dblk_t.