Home
last modified time | relevance | path

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

/freebsd-src/sys/kern/
H A Dkern_ktr.c326 int newindex, saveindex; in ktr_tracepoint() local
365 saveindex = ktr_idx; in ktr_tracepoint()
366 newindex = (saveindex + 1) % ktr_entries; in ktr_tracepoint()
367 } while (atomic_cmpset_rel_int(&ktr_idx, saveindex, newindex) == 0); in ktr_tracepoint()
368 entry = &ktr_buf[saveindex]; in ktr_tracepoint()
/freebsd-src/sys/netinet/
H A Dsctputil.c7107 uint32_t saveindex, newindex; in sctp_log_trace() local
7110 saveindex = SCTP_BASE_SYSCTL(sctp_log).index; in sctp_log_trace()
7111 if (saveindex >= SCTP_MAX_LOGGING_SIZE) { in sctp_log_trace()
7114 newindex = saveindex + 1; in sctp_log_trace()
7116 } while (atomic_cmpset_int(&SCTP_BASE_SYSCTL(sctp_log).index, saveindex, newindex) == 0); in sctp_log_trace()
7117 if (saveindex >= SCTP_MAX_LOGGING_SIZE) { in sctp_log_trace()
7118 saveindex = 0; in sctp_log_trace()
7120 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].timestamp = SCTP_GET_CYCLECOUNT; in sctp_log_trace()
7121 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].subsys = subsys; in sctp_log_trace()
7122 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].params[0] = a; in sctp_log_trace()
[all …]