/packages/services/BuiltInPrintService/jni/lib/ |
wprint_msgq.c | 38 int max_msgs; member in struct:__anon47901 49 msg_q_id msgQCreate(int max_msgs, int max_msg_length) { 53 msgq_size = sizeof(_msgq_hdr_t) + max_msgs * max_msg_length; 59 msgq->max_msgs = max_msgs; 106 if ((nbytes <= msgq->max_msg_length) && (msgq->num_msgs < msgq->max_msgs)) { 110 msgq->write_offset = (msgq->write_offset + 1) % msgq->max_msgs; 140 msgq->read_offset = (msgq->read_offset + 1) % msgq->max_msgs;
|
/packages/services/BuiltInPrintService/jni/include/ |
wprint_msgq.h | 36 msg_q_id msgQCreate(int max_msgs, int max_msg_length);
|
/external/linux-kselftest/tools/testing/selftests/mqueue/ |
mq_open_tests.c | 47 char *MAX_MSGS = "/proc/sys/fs/mqueue/msg_max"; 54 FILE *def_msgs, *def_msgsize, *max_msgs, *max_msgsize; variable 105 __set(max_msgs, saved_max_msgs, 184 set(max_msgs, 10); 274 max_msgs = fopen(MAX_MSGS, "r+"); 277 if (!max_msgs) 291 saved_max_msgs = cur_max_msgs = get(max_msgs); 336 set(max_msgs, ++cur_max_msgs); 370 set(max_msgs, ++cur_max_msgs) [all...] |
mq_perf_tests.c | 71 char *MAX_MSGS = "/proc/sys/fs/mqueue/msg_max"; 94 FILE *max_msgs, *max_msgsize; variable 197 __set(max_msgs, saved_max_msgs, 525 while (try_set(max_msgs, cur_max_msgs += 10)) 527 cur_max_msgs = get(max_msgs); 636 max_msgs = fopen(MAX_MSGS, "r+"); 638 if (!max_msgs) 646 saved_max_msgs = cur_max_msgs = get(max_msgs);
|