[Devel] Re: [ckrm-tech] [RFC][PATCH] UBC: user resource beancounters

Alan Cox alan at lxorguk.ukuu.org.uk
Fri Aug 25 15:51:36 PDT 2006


Ar Gwe, 2006-08-25 am 14:37 -0700, ysgrifennodd Chandra Seetharaman:
> 	/* resources statistics and settings */
> 	struct ubparm		ub_parms[UB_RESOURCES];
> };
> 
> ub_parms of _all_ controllers are held in this data structure.
> 
> So, keeping the beancounter data structure inside _a_ controller
> specific data structure doesn't sound right to me, as other controllers
> might also have the same need ?!
> 
> Controller _owns_ only ub_parms[controller_id], not the whole
> user_beancounter, right ?

Right now I understand you

So you need

	struct controller *ub_controller[UB_RESOURCES];

?

Alan




More information about the Devel mailing list