Page MenuHomeFreeBSD

kqueue: add some kn_knlist assertions around knlist_(add|remove)
ClosedPublic

Authored by kevans on Apr 1 2026, 3:09 AM.
Tags
None
Referenced Files
F157789212: D56211.id174761.diff
Mon, May 25, 5:22 AM
F157788884: D56211.id174761.diff
Mon, May 25, 5:17 AM
F157752715: D56211.diff
Sun, May 24, 8:51 PM
Unknown Object (File)
Tue, May 19, 2:26 AM
Unknown Object (File)
Mon, May 18, 5:06 AM
Unknown Object (File)
Mon, May 18, 5:02 AM
Unknown Object (File)
Tue, Apr 28, 10:01 PM
Unknown Object (File)
Apr 25 2026, 12:54 AM
Subscribers

Details

Summary

We currently assert that kn_status is accurate, but there's more room
for error. Neither of these are very likely, but currently we'd blow up
in SLIST*() macros instead of providing more obvious diagnostics. It's
perhaps only worth testing these because knlist_remove() requires
getting logic across both f_attach() and f_detach() correct.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable