Searched refs:max_msgs (Results 1 – 2 of 2) sorted by relevance
38 int max_msgs; member49 msg_q_id msgQCreate(int max_msgs, int max_msg_length) { in msgQCreate() argument53 msgq_size = sizeof(_msgq_hdr_t) + max_msgs * max_msg_length; in msgQCreate()59 msgq->max_msgs = max_msgs; in msgQCreate()106 if ((nbytes <= msgq->max_msg_length) && (msgq->num_msgs < msgq->max_msgs)) { in msgQSend()110 msgq->write_offset = (msgq->write_offset + 1) % msgq->max_msgs; in msgQSend()140 msgq->read_offset = (msgq->read_offset + 1) % msgq->max_msgs; in msgQReceive()
36 msg_q_id msgQCreate(int max_msgs, int max_msg_length);