Searched refs:saveindex (Results 1 - 2 of 2) sorted by relevance

/freebsd-9.3-release/sys/kern/
H A Dkern_ktr.c243 int newindex, saveindex; local
282 saveindex = ktr_idx;
283 newindex = (saveindex + 1) % KTR_ENTRIES;
284 } while (atomic_cmpset_rel_int(&ktr_idx, saveindex, newindex) == 0);
285 entry = &ktr_buf[saveindex];
/freebsd-9.3-release/sys/netinet/
H A Dsctputil.c6786 uint32_t saveindex, newindex; local
6789 saveindex = SCTP_BASE_SYSCTL(sctp_log).index;
6790 if (saveindex >= SCTP_MAX_LOGGING_SIZE) {
6793 newindex = saveindex + 1;
6795 } while (atomic_cmpset_int(&SCTP_BASE_SYSCTL(sctp_log).index, saveindex, newindex) == 0);
6796 if (saveindex >= SCTP_MAX_LOGGING_SIZE) {
6797 saveindex = 0;
6799 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].timestamp = SCTP_GET_CYCLECOUNT;
6800 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].subsys = subsys;
6801 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex]
[all...]

Completed in 113 milliseconds