Searched refs:misc_cg (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/include/linux/ |
D | misc_cgroup.h | 25 struct misc_cg; 52 struct misc_cg { struct 65 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount); argument 66 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount); 77 static inline struct misc_cg *css_misc(struct cgroup_subsys_state *css) in css_misc() 79 return css ? container_of(css, struct misc_cg, css) : NULL; in css_misc() 90 static inline struct misc_cg *get_current_misc_cg(void) in get_current_misc_cg() 99 static inline void put_misc_cg(struct misc_cg *cg) in put_misc_cg() 118 struct misc_cg *cg, in misc_cg_try_charge() 125 struct misc_cg *cg, in misc_cg_uncharge() [all …]
|
/linux-6.12.1/kernel/cgroup/ |
D | misc.c | 30 static struct misc_cg root_cg; 51 static struct misc_cg *parent_misc(struct misc_cg *cgroup) in parent_misc() 116 static void misc_cg_cancel_charge(enum misc_res_type type, struct misc_cg *cg, in misc_cg_cancel_charge() 137 static void misc_cg_event(enum misc_res_type type, struct misc_cg *cg) in misc_cg_event() 164 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) in misc_cg_try_charge() 166 struct misc_cg *i, *j; in misc_cg_try_charge() 208 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount) in misc_cg_uncharge() 210 struct misc_cg *i; in misc_cg_uncharge() 231 struct misc_cg *cg = css_misc(seq_css(sf)); in misc_cg_max_show() 269 struct misc_cg *cg; in misc_cg_max_write() [all …]
|
/linux-6.12.1/arch/x86/kvm/svm/ |
D | sev.c | 165 return misc_cg_try_charge(type, sev->misc_cg, 1); in sev_misc_cg_try_charge() 171 misc_cg_uncharge(type, sev->misc_cg, 1); in sev_misc_cg_uncharge() 191 WARN_ON(sev->misc_cg); in sev_asid_new() 192 sev->misc_cg = get_current_misc_cg(); in sev_asid_new() 195 put_misc_cg(sev->misc_cg); in sev_asid_new() 196 sev->misc_cg = NULL; in sev_asid_new() 222 put_misc_cg(sev->misc_cg); in sev_asid_new() 223 sev->misc_cg = NULL; in sev_asid_new() 251 put_misc_cg(sev->misc_cg); in sev_asid_free() 252 sev->misc_cg = NULL; in sev_asid_free() [all …]
|
D | svm.h | 109 struct misc_cg *misc_cg; /* For misc cgroup accounting */ member
|