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)
Sun, Oct 12, 4:11 AM
Unknown Object (File)
Sat, Oct 11, 12:42 AM
Unknown Object (File)
Thu, Oct 9, 11:14 PM
Unknown Object (File)
Thu, Oct 9, 6:38 AM
Unknown Object (File)
Mon, Sep 29, 5:48 PM
Unknown Object (File)
Wed, Sep 24, 2:03 PM
Unknown Object (File)
Sep 12 2025, 5:39 PM
Unknown Object (File)
Sep 3 2025, 11:35 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.