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)
Thu, Jan 16, 2:49 PM
Unknown Object (File)
Sun, Jan 5, 9:35 AM
Unknown Object (File)
Dec 1 2024, 10:13 PM
Unknown Object (File)
Nov 24 2024, 5:34 AM
Unknown Object (File)
Nov 16 2024, 6:05 PM
Unknown Object (File)
Sep 18 2024, 12:07 AM
Unknown Object (File)
Sep 6 2024, 9:10 PM
Unknown Object (File)
Aug 29 2024, 9:46 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.