Given the address of a queue_t structure, walk the list of related queues using the q_link pointer. This structure is defined in <sys/stream.h>.
Given the address of a queue_t structure, walk the list of related queues using the q_next pointer. This structure is defined in <sys/stream.h>.
Given the address of an stdata_t structure, walk the list of read-side queue structures.
Given the address of an stdata_t structure, walk the list of write-side queue structures.