summaryrefslogtreecommitdiff
path: root/sys/dev/dt/dt_dev.c
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2020-07-04 08:06:09 +0000
committeranton <anton@cvs.openbsd.org>2020-07-04 08:06:09 +0000
commit1faadd8c36a6a487d4e3f4fd54fe416e1f280b37 (patch)
tree6f5235b7628fb30392e139ca02b89dd42c95539c /sys/dev/dt/dt_dev.c
parent666a3dd14c457152cb5ed221352bd68aa1d26f07 (diff)
It's been agreed upon that global locks should be expressed using
capital letters in locking annotations. Therefore harmonize the existing annotations. Also, if multiple locks are required they should be delimited using commas. ok mpi@
Diffstat (limited to 'sys/dev/dt/dt_dev.c')
-rw-r--r--sys/dev/dt/dt_dev.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/dt/dt_dev.c b/sys/dev/dt/dt_dev.c
index 0c6a34cdfb8..19b37f83063 100644
--- a/sys/dev/dt/dt_dev.c
+++ b/sys/dev/dt/dt_dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dt_dev.c,v 1.7 2020/06/27 07:22:09 bket Exp $ */
+/* $OpenBSD: dt_dev.c,v 1.8 2020/07/04 08:06:07 anton Exp $ */
/*
* Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org>
@@ -74,19 +74,19 @@
*
* Locks used to protect struct members in this file:
* m per-softc mutex
- * k kernel lock
+ * K kernel lock
*/
struct dt_softc {
- SLIST_ENTRY(dt_softc) ds_next; /* [k] descriptor list */
+ SLIST_ENTRY(dt_softc) ds_next; /* [K] descriptor list */
int ds_unit; /* [I] D_CLONE unique unit */
pid_t ds_pid; /* [I] PID of tracing program */
struct mutex ds_mtx;
- struct dt_pcb_list ds_pcbs; /* [k] list of enabled PCBs */
- struct dt_evt *ds_bufqueue; /* [k] copy evts to userland */
- size_t ds_bufqlen; /* [k] length of the queue */
- int ds_recording; /* [k] currently recording? */
+ struct dt_pcb_list ds_pcbs; /* [K] list of enabled PCBs */
+ struct dt_evt *ds_bufqueue; /* [K] copy evts to userland */
+ size_t ds_bufqlen; /* [K] length of the queue */
+ int ds_recording; /* [K] currently recording? */
int ds_evtcnt; /* [m] # of readable evts */
/* Counters */
@@ -94,7 +94,7 @@ struct dt_softc {
uint64_t ds_dropevt; /* [m] # of events dropped */
};
-SLIST_HEAD(, dt_softc) dtdev_list; /* [k] list of open /dev/dt nodes */
+SLIST_HEAD(, dt_softc) dtdev_list; /* [K] list of open /dev/dt nodes */
/*
* Probes are created during dt_attach() and never modified/freed during
@@ -104,7 +104,7 @@ unsigned int dt_nprobes; /* [I] # of probes available */
SIMPLEQ_HEAD(, dt_probe) dt_probe_list; /* [I] list of probes */
struct rwlock dt_lock = RWLOCK_INITIALIZER("dtlk");
-volatile uint32_t dt_tracing = 0; /* [k] # of processes tracing */
+volatile uint32_t dt_tracing = 0; /* [K] # of processes tracing */
void dtattach(struct device *, struct device *, void *);
int dtopen(dev_t, int, int, struct proc *);