summaryrefslogtreecommitdiffstats
path: root/sys/modules/Makefile
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-03-29 22:16:39 +0000
committerrwatson <rwatson@FreeBSD.org>2004-03-29 22:16:39 +0000
commit8e41c82b83a283bd515274944d549ab23a03dc94 (patch)
tree6375464682648d7eb465fa23e67b9f10cd83fea9 /sys/modules/Makefile
parent8aa9f6fafeeaef7ac19532a9ea41665523e187ba (diff)
downloadFreeBSD-src-8e41c82b83a283bd515274944d549ab23a03dc94.zip
FreeBSD-src-8e41c82b83a283bd515274944d549ab23a03dc94.tar.gz
Add per-softc locking to if_tun:
- Add tun_mtx to tun_softc. Annotate what is (and isn't) locked by it. - Lock down tun_flags, tun_pid. - In the output path, cache the value of tun_flags so it's consistent when processing a particular packet rather than re-reading the field. - In general, use unlocked reads for debugging. - Annotate a couple of places where additional unlocked reads may be possible. - Annotate that tun_pid is used as a bug in tunopen(). if_tun is now largely MPSAFE, although questions remain about some of the cdevsw fields and how they are synchronized.
Diffstat (limited to 'sys/modules/Makefile')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud