Page MenuHomeFreeBSD

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

Authored by kevans on Wed, Apr 1, 3:09 AM.
Tags
None
Referenced Files
F150739938: D56211.diff
Fri, Apr 3, 6:07 PM
Unknown Object (File)
Wed, Apr 1, 9:05 PM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 71891
Build 68774: arc lint + arc unit