struct resource question

Matthew Dillon dillon at apollo.backplane.com
Thu Jun 8 12:56:59 PDT 2006


:There is an aspect of struct resource (src/sys/sys/rman.h) that I'm
:tempted to change but I wanted a) to get a sense from others if this
:is worth changing and b) find out what kind of changes others would
:like to see.
:
:Resources are allocated/managed generically, but there needs to be an
:association between a resource structure and some resource specific
:information (like bus tags). Currently, this association is done by
:adding "non-generic" parts (r_virtual, r_bustag, r_bushandle) to the
:resource structure itself. The MSI code will add yet another resource
:specific variable to this structure. This feels "wrong",  but I'm
:wondering if this is wrong enough to need fixing. Thoughts?
:
:---chuck

    I think its ok.  The resource structure is still fairly small and
    I don't think we want to rewrite that bit of code.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Kernel mailing list