Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/specfs specfs: Document sn_opencnt, sd_opencnt, s...
details: https://anonhg.NetBSD.org/src/rev/bf97fb78f090
branches: trunk
changeset: 364511:bf97fb78f090
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Mar 28 12:36:34 2022 +0000
description:
specfs: Document sn_opencnt, sd_opencnt, sd_refcnt.
diffstat:
sys/miscfs/specfs/specdev.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r f75bbaa58e25 -r bf97fb78f090 sys/miscfs/specfs/specdev.h
--- a/sys/miscfs/specfs/specdev.h Mon Mar 28 12:36:26 2022 +0000
+++ b/sys/miscfs/specfs/specdev.h Mon Mar 28 12:36:34 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: specdev.h,v 1.46 2021/07/18 23:57:15 dholland Exp $ */
+/* $NetBSD: specdev.h,v 1.47 2022/03/28 12:36:34 riastradh Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
typedef struct specnode {
vnode_t *sn_next;
struct specdev *sn_dev;
- u_int sn_opencnt;
+ u_int sn_opencnt; /* # of opens, share of sd_opencnt */
dev_t sn_rdev;
bool sn_gone;
} specnode_t;
@@ -75,8 +75,8 @@
struct mount *sd_mountpoint;
struct lockf *sd_lockf;
vnode_t *sd_bdevvp;
- u_int sd_opencnt;
- u_int sd_refcnt;
+ u_int sd_opencnt; /* # of opens; close when ->0 */
+ u_int sd_refcnt; /* # of specnodes referencing this */
dev_t sd_rdev;
} specdev_t;
Home |
Main Index |
Thread Index |
Old Index