On Fri, 2024-08-30 at 09:40 -0700, Haitao Huang wrote:
> From: Kristen Carlson Accardi <[email protected]>
> 
> The misc cgroup controller (subsystem) currently does not perform
> resource type specific action for Cgroups Subsystem State (CSS) events:
> the 'css_alloc' event when a cgroup is created and the 'css_free' event
> when a cgroup is destroyed.
> 
> Define callbacks for those events and allow resource providers to
> register the callbacks per resource type as needed. This will be
> utilized later by the EPC misc cgroup support implemented in the SGX
> driver.
> 
> The SGX callbacks will need to access the 'struct misc_cg'.  Pass
> 'struct misc_cg' to the callbacks but not the 'struct misc_res' because
> the latter doesn't have a pointer pointing back to 'struct misc_cg'.
> 
> Link: 
> https://lore.kernel.org/lkml/[email protected]/
> 
> Signed-off-by: Kristen Carlson Accardi <[email protected]>
> Co-developed-by: Haitao Huang <[email protected]>
> Signed-off-by: Haitao Huang <[email protected]>
> Reviewed-by: Jarkko Sakkinen <[email protected]>
> Reviewed-by: Tejun Heo <[email protected]>
> Tested-by: Jarkko Sakkinen <[email protected]>
> ---
> 

Acked-by: Kai Huang <[email protected]>

Reply via email to