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)
Sun, Jun 7, 6:05 AM
Unknown Object (File)
Sun, Jun 7, 1:47 AM
Unknown Object (File)
Sat, Jun 6, 9:32 AM
Unknown Object (File)
Thu, Jun 4, 9:10 PM
Unknown Object (File)
Thu, May 28, 12:39 PM
Unknown Object (File)
Sun, May 24, 7:54 PM
Unknown Object (File)
Thu, May 21, 9:44 PM
Unknown Object (File)
Thu, May 21, 5:39 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 Not Applicable
Unit
Tests Not Applicable

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.