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, Mar 15, 10:24 AM
Unknown Object (File)
Sat, Mar 7, 6:11 AM
Unknown Object (File)
Sun, Mar 1, 10:05 AM
Unknown Object (File)
Sun, Mar 1, 9:07 AM
Unknown Object (File)
Sat, Feb 28, 10:14 PM
Unknown Object (File)
Sat, Feb 28, 10:02 PM
Unknown Object (File)
Sat, Feb 28, 12:35 PM
Unknown Object (File)
Sat, Feb 28, 1:27 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 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.