Page MenuHomeFreeBSD

bus: Add __BUS_ACCESSOR_DEFAULT
ClosedPublic

Authored by jhb on Wed, Feb 18, 3:48 PM.
Tags
None
Referenced Files
F146091090: D55353.id172165.diff
Fri, Feb 27, 5:53 PM
Unknown Object (File)
Thu, Feb 26, 5:30 PM
Unknown Object (File)
Wed, Feb 25, 5:26 AM
Unknown Object (File)
Mon, Feb 23, 8:53 AM
Unknown Object (File)
Sun, Feb 22, 2:26 PM
Unknown Object (File)
Sat, Feb 21, 11:24 AM
Unknown Object (File)
Wed, Feb 18, 7:02 PM
Subscribers
None

Details

Summary

This macro is similar to __BUS_ACCESSOR in that it creates three
helper routines for an ivar, but the "get" wrapper returns a default
value if BUS_READ_IVAR does not return a value.

Diff Detail

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

Event Timeline

jhb requested review of this revision.Wed, Feb 18, 3:48 PM
jhb created this revision.
imp added inline comments.
sys/sys/bus.h
999

no problem with C having 'default' as a keyword? I know it's cpp, just read a little odd.

This revision is now accepted and ready to land.Wed, Feb 18, 4:24 PM
sys/sys/bus.h
999

I think it doesn't make it into what the compiler sees as it is only for cpp.

This revision was automatically updated to reflect the committed changes.