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
Unknown Object (File)
Mon, Apr 20, 8:55 PM
Unknown Object (File)
Wed, Apr 15, 12:49 PM
Unknown Object (File)
Fri, Apr 10, 7:26 PM
Unknown Object (File)
Wed, Apr 8, 10:17 PM
Unknown Object (File)
Wed, Apr 8, 1:28 AM
Unknown Object (File)
Mar 15 2026, 10:24 AM
Unknown Object (File)
Mar 7 2026, 6:11 AM
Unknown Object (File)
Mar 1 2026, 10:05 AM
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.