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)
Mar 1 2026, 10:05 AM
Unknown Object (File)
Mar 1 2026, 9:07 AM
Unknown Object (File)
Feb 28 2026, 10:14 PM
Unknown Object (File)
Feb 28 2026, 10:02 PM
Unknown Object (File)
Feb 28 2026, 12:35 PM
Unknown Object (File)
Feb 28 2026, 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 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.