if_tap: Add read-only sysctl net.link.tap.refcnt
authorAaron LI <aly@aaronly.me>
Sun, 8 Jul 2018 02:05:31 +0000 (10:05 +0800)
committerAaron LI <aly@aaronly.me>
Tue, 17 Jul 2018 06:57:32 +0000 (14:57 +0800)
commitf6efdc20c8dd2bfbdb1f8d88dd5154c4a1846131
treeddb0b7dde1f7502a4c0e1a27ccfb6193a9573f8f
parent117648afe306031fd5adc9ded94fc114919f694c
if_tap: Add read-only sysctl net.link.tap.refcnt

Expose the number of opened devices as a read-only sysctl:
net.link.tap.refcnt.

Improve the debug messages with respect to the refcnt.
sys/net/tap/if_tap.c