ab3cd725ea
There are already two flags for if_output and if_start, however, it seems such MPSAFE flags are eventually needed for all if_XXX operations. Having discrete flags for each operation is wasteful of if_extflags bits. So let's unify the flags into one: IFEF_MPSAFE. Fortunately IFEF_*_MPSAFE flags have never been included in any releases, so we can change them without breaking backward compatibility of the releases (though the kernel version of -current should be bumped). Note that if an interface have both MP-safe and non-MP-safe operations at a time, we have to set the IFEF_MPSAFE flag and let callees of non-MP-safe opeartions take the kernel lock. Proposed on tech-kern@ and tech-net@ |
||
---|---|---|
.. | ||
Makefile | ||
can.c | ||
can.h | ||
can_link.h | ||
can_pcb.c | ||
can_pcb.h | ||
can_proto.c | ||
can_var.h | ||
files.netcan | ||
if_canloop.c |