Page MenuHomeFreeBSD

Fix DEFINE_CLASS_(2|3) multiple inheritance support
ClosedPublic

Authored by landon_landonf.org on May 21 2016, 11:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 25, 3:23 PM
Unknown Object (File)
Fri, Nov 21, 4:51 AM
Unknown Object (File)
Fri, Nov 21, 4:50 AM
Unknown Object (File)
Fri, Nov 21, 4:49 AM
Unknown Object (File)
Fri, Nov 21, 4:46 AM
Unknown Object (File)
Mon, Nov 17, 8:01 PM
Unknown Object (File)
Fri, Nov 7, 12:21 PM
Unknown Object (File)
Oct 27 2025, 3:29 PM
Subscribers

Details

Summary

This diff updates DEFINE_CLASS_2/_3 to support the specification of class name
separately from the class variable name, bringing them into sync with their
API documentation, as well as the behavior of DEFINE_CLASS_0/_1.

Nothing in the tree currently uses the _2/_3 variants, and I can't
find any references to the API outside of commits to the kobj.h
header itself; given the limitation that currently exists, I'd
be surprised if they've ever been used.

I'd like to make use of 'mix-ins' via multiple-inheritance in bhnd,
specifically to support:

bcma_bhndb -> (bcma + bhnd_bhndb) -> bhnd
siba_bhndb -> (siba + bhnd_bhndb) -> bhnd
  and
siba_nexus -> (siba + bhnd_nexus) -> bhnd
bcma_nexus -> (bcma + bhnd_nexus) -> bhnd

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

landon_landonf.org retitled this revision from to Fix DEFINE_CLASS_(2|3) multiple inheritance support.
landon_landonf.org updated this object.
landon_landonf.org edited the test plan for this revision. (Show Details)
landon_landonf.org added a reviewer: adrian.
imp added a reviewer: imp.
This revision is now accepted and ready to land.May 23 2016, 3:20 AM
This revision was automatically updated to reflect the committed changes.