Searched refs:dyn_alloc_msg (Results 1 – 2 of 2) sorted by relevance
17 struct external_data_msg *dyn_alloc_msg; in consumer_thread() local26 dyn_alloc_msg = zbus_chan_msg(&pkt_chan); in consumer_thread()28 LOG_WRN("size=%02d", (int)dyn_alloc_msg->size); in consumer_thread()29 LOG_HEXDUMP_WRN(dyn_alloc_msg->reference, dyn_alloc_msg->size, "Content"); in consumer_thread()32 k_free(dyn_alloc_msg->reference); in consumer_thread()33 dyn_alloc_msg->reference = NULL; in consumer_thread()34 dyn_alloc_msg->size = 0; in consumer_thread()
25 struct external_data_msg dyn_alloc_msg = {.reference = msg, .size = i + 1}; in producer_thread() local27 for (int j = 0; j < dyn_alloc_msg.size; ++j) { in producer_thread()28 ((uint8_t *)dyn_alloc_msg.reference)[j] = i; in producer_thread()31 zbus_chan_pub(&pkt_chan, &dyn_alloc_msg, K_MSEC(250)); in producer_thread()