Lines Matching refs:next
265 msgmaps[i - 1].next = i; in msginit()
267 msgmaps[i].next = -1; /* implies entry is available */ in msginit()
342 short next; in msg_freehdr() local
346 next = msgmaps[msghdr->msg_spot].next; in msg_freehdr()
347 msgmaps[msghdr->msg_spot].next = free_msgmaps; in msg_freehdr()
350 msghdr->msg_spot = next; in msg_freehdr()
720 short next; in msgsnd_nocancel() local
959 next = free_msgmaps; in msgsnd_nocancel()
960 if (next <= -1) { in msgsnd_nocancel()
963 if (next >= msginfo.msgseg) { in msgsnd_nocancel()
967 printf("allocating segment %d to message\n", next); in msgsnd_nocancel()
969 free_msgmaps = msgmaps[next].next; in msgsnd_nocancel()
971 msgmaps[next].next = msghdr->msg_spot; in msgsnd_nocancel()
972 msghdr->msg_spot = next; in msgsnd_nocancel()
1023 next = msghdr->msg_spot; in msgsnd_nocancel()
1032 if (next <= -1) { in msgsnd_nocancel()
1035 if (next >= msginfo.msgseg) { in msgsnd_nocancel()
1040 eval = copyin(user_msgp, &msgpool[next * msginfo.msgssz], tlen); in msgsnd_nocancel()
1055 next = msgmaps[next].next; in msgsnd_nocancel()
1057 if (next != -1) { in msgsnd_nocancel()
1150 short next; in msgrcv_nocancel() local
1435 next = msghdr->msg_spot; in msgrcv_nocancel()
1444 if (next <= -1) { in msgrcv_nocancel()
1447 if (next >= msginfo.msgseg) { in msgrcv_nocancel()
1451 eval = copyout(&msgpool[next * msginfo.msgssz], in msgrcv_nocancel()
1464 next = msgmaps[next].next; in msgrcv_nocancel()