Page MenuHomeFreeBSD

bus: Add a new IVAR accessor to check for the existence of an IVAR
ClosedPublic

Authored by jhb on Feb 18 2026, 3:48 PM.
Tags
None
Referenced Files
F157060312: D55352.id172164.diff
Mon, May 18, 5:15 AM
F157059466: D55352.id172164.diff
Mon, May 18, 5:07 AM
F157053975: D55352.id172627.diff
Mon, May 18, 4:14 AM
F157053028: D55352.id172627.diff
Mon, May 18, 4:06 AM
Unknown Object (File)
Sat, May 16, 11:06 PM
Unknown Object (File)
Thu, May 14, 4:16 PM
Unknown Object (File)
Sun, May 10, 3:27 PM
Unknown Object (File)
Sun, May 10, 3:20 PM
Subscribers
None

Details

Summary

<varp>_has_<var> returns true if the given IVAR can be read.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 70755
Build 67638: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Feb 18 2026, 3:48 PM
jhb created this revision.

Might want to note this determines this by reading the value.... though maybe not: all ivars are supposed to be O(1) to compute.

This revision is now accepted and ready to land.Feb 18 2026, 4:23 PM

The part that I think is potentially bizarre is that in theory you could have write-only IVARs, but in practice I think we have RO and RW IVARs, not write-only.