From 9b385e25cc13e3351d5a1ddb69daea832994952c Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Mon, 31 Jan 2022 17:03:31 +0000 Subject: [PATCH 24/37] specfs: Document sn_opencnt, sd_opencnt, sd_refcnt. --- sys/miscfs/specfs/specdev.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/miscfs/specfs/specdev.h b/sys/miscfs/specfs/specdev.h index 621c103e80b1..7e1dd84fe330 100644 --- a/sys/miscfs/specfs/specdev.h +++ b/sys/miscfs/specfs/specdev.h @@ -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 @@ typedef struct specdev { 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;