Home
last modified time | relevance | path

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

/freebsd-14.2/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-14.2/sys/netinet/
H A Dsctputil.c7108 uint32_t saveindex, newindex; in sctp_log_trace() local
7111 saveindex = SCTP_BASE_SYSCTL(sctp_log).index; in sctp_log_trace()
7112 if (saveindex >= SCTP_MAX_LOGGING_SIZE) { in sctp_log_trace()
7115 newindex = saveindex + 1; in sctp_log_trace()
7118 if (saveindex >= SCTP_MAX_LOGGING_SIZE) { in sctp_log_trace()
7119 saveindex = 0; in sctp_log_trace()
7123 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].params[0] = a; in sctp_log_trace()
7124 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].params[1] = b; in sctp_log_trace()
7125 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].params[2] = c; in sctp_log_trace()
7126 SCTP_BASE_SYSCTL(sctp_log).entry[saveindex].params[3] = d; in sctp_log_trace()
[all …]