summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhub.c
diff options
context:
space:
mode:
authoranton <anton@openbsd.org>2020-07-31 07:11:35 +0000
committeranton <anton@openbsd.org>2020-07-31 07:11:35 +0000
commita187908a04ce8f5cfcfdf32566b94a3dad43464f (patch)
treef5d2e690a693f1085f2583f0d62fe629ffded6b6 /sys/dev/usb/uhub.c
parentAlso compare username when checking for JumpHost loops. bz#3057, ok djm@ (diff)
downloadwireguard-openbsd-a187908a04ce8f5cfcfdf32566b94a3dad43464f.tar.xz
wireguard-openbsd-a187908a04ce8f5cfcfdf32566b94a3dad43464f.zip
Make writes to the coverage buffer MP-safe using atomic operations.
The new routine kd_claim() returns the next available entry in the buffer. Since the first element in the buffer is reserved to hold the number of entries, zero can be used as a sentinel value meaning that the buffer is full. A mere preparation for upcoming remote coverage support in which the buffer can be accessed by multiple threads concurrently. ok mpi@ as part of a larger diff
Diffstat (limited to 'sys/dev/usb/uhub.c')
0 files changed, 0 insertions, 0 deletions