diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2024-11-02 17:03:13 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2024-11-02 17:03:13 +0000 |
commit | 3ea241d819cabac7a8b9ab6fe2484cea2a300c95 (patch) | |
tree | 4ea69e2e8e59ca1eff5c0d6491fa54babc776d02 /sys/dev/dt | |
parent | 326b0ae336c79018c8db575bfc8b45290e10581c (diff) |
Use lowercase in locking comments when not refering to a global lock.
Also talk about thread rather than proc which might be confusing.
Diffstat (limited to 'sys/dev/dt')
-rw-r--r-- | sys/dev/dt/dt_dev.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/dt/dt_dev.c b/sys/dev/dt/dt_dev.c index 7fc183483d9..86246852a3b 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.38 2024/11/02 16:59:22 mpi Exp $ */ +/* $OpenBSD: dt_dev.c,v 1.39 2024/11/02 17:03:12 mpi Exp $ */ /* * Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org> @@ -89,10 +89,10 @@ * Per-CPU Event States * * Locks used to protect struct members: - * r owned by read(2) proc + * r owned by thread doing read(2) * c owned by CPU * s sliced ownership, based on read/write indexes - * S written by CPU, read by read(2) proc + * p written by CPU, read by thread doing read(2) */ struct dt_cpubuf { unsigned int dc_prod; /* [r] read index */ @@ -101,7 +101,7 @@ struct dt_cpubuf { unsigned int dc_inevt; /* [c] in event already? */ /* Counters */ - unsigned int dc_dropevt; /* [S] # of events dropped */ + unsigned int dc_dropevt; /* [p] # of events dropped */ unsigned int dc_readevt; /* [r] # of events read */ }; @@ -112,7 +112,7 @@ struct dt_cpubuf { * Locks used to protect struct members in this file: * a atomic * K kernel lock - * r owned by read(2) proc + * r owned by thread doing read(2) * I invariant after initialization */ struct dt_softc { |