misc_cg
return misc_cg_try_charge(type, sev->misc_cg, 1);
misc_cg_uncharge(type, sev->misc_cg, 1);
dst_sev->misc_cg = get_current_misc_cg();
if (dst_sev->misc_cg != src_sev->misc_cg) {
put_misc_cg(cg_cleanup_sev->misc_cg);
cg_cleanup_sev->misc_cg = NULL;
WARN_ON(sev->misc_cg);
sev->misc_cg = get_current_misc_cg();
put_misc_cg(sev->misc_cg);
sev->misc_cg = NULL;
put_misc_cg(sev->misc_cg);
sev->misc_cg = NULL;
put_misc_cg(sev->misc_cg);
sev->misc_cg = NULL;
struct misc_cg *misc_cg; /* For misc cgroup accounting */
kvm_tdx->misc_cg = get_current_misc_cg();
ret = misc_cg_try_charge(MISC_CG_RES_TDX, kvm_tdx->misc_cg, 1);
misc_cg_uncharge(MISC_CG_RES_TDX, kvm_tdx->misc_cg, 1);
put_misc_cg(kvm_tdx->misc_cg);
kvm_tdx->misc_cg = NULL;
struct misc_cg *misc_cg;
static inline void put_misc_cg(struct misc_cg *cg)
struct misc_cg *cg,
struct misc_cg *cg,
static inline struct misc_cg *get_current_misc_cg(void)
static inline void put_misc_cg(struct misc_cg *cg)
struct misc_cg;
int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount);
void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount);
static inline struct misc_cg *css_misc(struct cgroup_subsys_state *css)
return css ? container_of(css, struct misc_cg, css) : NULL;
static inline struct misc_cg *get_current_misc_cg(void)
static void misc_cg_cancel_charge(enum misc_res_type type, struct misc_cg *cg,
static void misc_cg_event(enum misc_res_type type, struct misc_cg *cg)
int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount)
struct misc_cg *i, *j;
void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount)
struct misc_cg *i;
struct misc_cg *cg = css_misc(seq_css(sf));
struct misc_cg *cg;
struct misc_cg *cg = css_misc(seq_css(sf));
struct misc_cg *cg = css_misc(seq_css(sf));
static struct misc_cg root_cg;
struct misc_cg *cg = css_misc(seq_css(sf));
.file_offset = offsetof(struct misc_cg, events_file),
.file_offset = offsetof(struct misc_cg, events_local_file),
struct misc_cg *cg;
static struct misc_cg *parent_misc(struct misc_cg *cgroup)