Lines Matching defs:kmsg
627 ipc_kmsg_t kmsg;
664 * is not inuse, free it. If it has an inuse one, then the kmsg
669 kmsg = port->ip_premsg;
670 assert(kmsg != IKM_NULL);
671 IP_CLEAR_PREALLOC(port, kmsg);
672 if (!ikm_prealloc_inuse(kmsg))
673 ipc_kmsg_free(kmsg);
1416 iprintf("kmsg queue contents:\n");
1590 * and every kmsg.
1594 #define KMSG_MATCH_FIELD(kmsg) (kmsg->ikm_header->msgh_id)
1595 #define DKQP_LONG(kmsg) FALSE
1601 ipc_kmsg_t kmsg);
1604 ipc_kmsg_t kmsg)
1612 iprintf("Count msgh_id kmsg addr inline bytes ool bytes\n");
1614 cur_id = KMSG_MATCH_FIELD(kmsg);
1615 for (icount = 0, nmsgs = 0, first_kmsg = ikmsg = kmsg;
1616 kmsg != IKM_NULL && (kmsg != first_kmsg || nmsgs == 0);
1617 kmsg = kmsg->ikm_next) {
1619 if (!(KMSG_MATCH_FIELD(kmsg) == cur_id)) {
1620 iprintf(DKQP_LONG(kmsg) ? dkqp_long_format:dkqp_format,
1622 cur_id = KMSG_MATCH_FIELD(kmsg);
1624 ikmsg = kmsg;
1629 if (DKQP_LONG(kmsg))
1630 inline_total += kmsg->ikm_size;
1632 inline_total += kmsg->ikm_header->msgh_size;
1634 iprintf(DKQP_LONG(kmsg) ? dkqp_long_format : dkqp_format,
1643 * kmsg with a particular msgh_id.
1649 ipc_kmsg_t kmsg;
1653 kmsg = ipc_kmsg_queue_first(&port->ip_messages.imq_messages);
1654 return db_kmsg_queue_print(kmsg);