CVSROOT: /cvs Module name: src Changes by: m...@cvs.openbsd.org 2023/04/18 16:00:19
Modified files: sys/net : if.c if_var.h Log message: 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@