Lines Matching refs:next
158 short next; /* next segment in buffer */
160 /* 0..(MSGSEG-1) -> index of next segment */
252 msgmaps[i-1].next = i;
253 msgmaps[i].next = -1; /* implies entry is available */
388 short next;
391 next = msgmaps[msghdr->msg_spot].next;
392 msgmaps[msghdr->msg_spot].next = free_msgmaps;
395 msghdr->msg_spot = next;
774 short next;
978 next = free_msgmaps;
979 if (next <= -1)
980 panic("next too low #1");
981 if (next >= msginfo.msgseg)
982 panic("next out of range #1");
983 DPRINTF(("allocating segment %d to message\n", next));
984 free_msgmaps = msgmaps[next].next;
986 msgmaps[next].next = msghdr->msg_spot;
987 msghdr->msg_spot = next;
1008 next = msghdr->msg_spot;
1015 if (next <= -1)
1016 panic("next too low #2");
1017 if (next >= msginfo.msgseg)
1018 panic("next out of range #2");
1020 if ((error = copyin(msgp, &msgpool[next * msginfo.msgssz],
1033 next = msgmaps[next].next;
1035 if (next != -1)
1145 short next;
1358 next = msghdr->msg_spot;
1366 if (next <= -1)
1367 panic("next too low #3");
1368 if (next >= msginfo.msgseg)
1369 panic("next out of range #3");
1371 error = copyout(&msgpool[next * msginfo.msgssz], msgp, tlen);
1381 next = msgmaps[next].next;