Searched refs:misc_cg (Results 1 – 4 of 4) sorted by relevance
/linux-5.19.10/include/linux/ |
D | misc_cgroup.h | 24 struct misc_cg; 47 struct misc_cg { struct 58 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, argument 60 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, 72 static inline struct misc_cg *css_misc(struct cgroup_subsys_state *css) in css_misc() 74 return css ? container_of(css, struct misc_cg, css) : NULL; in css_misc() 85 static inline struct misc_cg *get_current_misc_cg(void) in get_current_misc_cg() 94 static inline void put_misc_cg(struct misc_cg *cg) in put_misc_cg() 114 struct misc_cg *cg, in misc_cg_try_charge() 121 struct misc_cg *cg, in misc_cg_uncharge() [all …]
|
/linux-5.19.10/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() 140 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, in misc_cg_try_charge() 143 struct misc_cg *i, *j; in misc_cg_try_charge() 187 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, in misc_cg_uncharge() 190 struct misc_cg *i; in misc_cg_uncharge() 211 struct misc_cg *cg = css_misc(seq_css(sf)); in misc_cg_max_show() 249 struct misc_cg *cg; in misc_cg_max_write() 301 struct misc_cg *cg = css_misc(seq_css(sf)); in misc_cg_current_show() [all …]
|
/linux-5.19.10/arch/x86/kvm/svm/ |
D | sev.c | 127 return misc_cg_try_charge(type, sev->misc_cg, 1); in sev_misc_cg_try_charge() 133 misc_cg_uncharge(type, sev->misc_cg, 1); in sev_misc_cg_uncharge() 141 WARN_ON(sev->misc_cg); in sev_asid_new() 142 sev->misc_cg = get_current_misc_cg(); in sev_asid_new() 145 put_misc_cg(sev->misc_cg); in sev_asid_new() 146 sev->misc_cg = NULL; in sev_asid_new() 177 put_misc_cg(sev->misc_cg); in sev_asid_new() 178 sev->misc_cg = NULL; in sev_asid_new() 206 put_misc_cg(sev->misc_cg); in sev_asid_free() 207 sev->misc_cg = NULL; in sev_asid_free() [all …]
|
D | svm.h | 87 struct misc_cg *misc_cg; /* For misc cgroup accounting */ member
|