diff options
author | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2023-04-18 22:00:20 +0000 |
---|---|---|
committer | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2023-04-18 22:00:20 +0000 |
commit | 9275ff7135dd9e0e3fd3b3eb510bed34dda0453e (patch) | |
tree | 609d8e622308e662516adc077e2c41b331561df4 /usr.sbin/mtrace | |
parent | 7aa8a26d4d5cd155b3763144929b4c6d8b8e4be8 (diff) |
Document `ifnetlist' locking.
We use both kernel and net lock for protect `ifnetlist'. This means we
do modification with both locks held, but for read-only access only one
lock required. Some places doing `ifnetlist' foreach loop are protected
by kernel lock and context switch can't be introduced there. This is the
exception, so "XXXSMP:" comment added.
Proposed and ok by bluhm@
Diffstat (limited to 'usr.sbin/mtrace')
0 files changed, 0 insertions, 0 deletions