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
Unknown Object (File)
Mon, Sep 21, 10:07 AM
Unknown Object (File)
Fri, Sep 18, 8:03 AM
Unknown Object (File)
Mon, Sep 14, 2:50 AM
Unknown Object (File)
Fri, Sep 11, 5:04 AM
Unknown Object (File)
Thu, Sep 10, 10:33 PM
Unknown Object (File)
Thu, Sep 10, 5:19 PM
Unknown Object (File)
Thu, Sep 10, 5:25 AM
Unknown Object (File)
Thu, Sep 10, 4:20 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