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, Jun 9, 7:07 AM
Unknown Object (File)
Sun, Jun 9, 4:39 AM
Unknown Object (File)
May 18 2024, 11:55 PM
Unknown Object (File)
Feb 23 2024, 9:12 AM
Unknown Object (File)
Jan 25 2024, 5:24 AM
Unknown Object (File)
Dec 20 2023, 1:05 AM
Unknown Object (File)
Aug 20 2023, 7:08 PM
Unknown Object (File)
Aug 8 2023, 11:53 AM
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.