Re: [RFC v2 1/2] cgroup: sev: Add misc cgroup controller

From: Tejun Heo
Date: Thu Mar 04 2021 - 03:54:53 EST


Hello,

On Wed, Mar 03, 2021 at 10:12:32PM -0800, Vipin Sharma wrote:
> Right now there is no API for the caller to know total usage, unless they
> keep their own tally, I was thinking it will be useful to add one more API
>
> unsigned long misc_cg_res_total_usage(enum misc_res_type type)
>
> It will return root_cg usage for "type" resource.
> Will it be fine?

Yeah, that sounds fine.

Thanks.

--
tejun