Lines Matching defs:res_counter
25 struct res_counter {
54 struct res_counter *parent;
63 * res_counter struct to/from the user
72 u64 res_counter_read_u64(struct res_counter *counter, int member);
74 ssize_t res_counter_read(struct res_counter *counter, int member,
82 * the field descriptors. one for each member of res_counter
97 void res_counter_init(struct res_counter *counter, struct res_counter *parent);
114 int __must_check res_counter_charge(struct res_counter *counter,
115 unsigned long val, struct res_counter **limit_fail_at);
116 int res_counter_charge_nofail(struct res_counter *counter,
117 unsigned long val, struct res_counter **limit_fail_at);
130 u64 res_counter_uncharge(struct res_counter *counter, unsigned long val);
132 u64 res_counter_uncharge_until(struct res_counter *counter,
133 struct res_counter *top,
142 static inline unsigned long long res_counter_margin(struct res_counter *cnt)
164 res_counter_soft_limit_excess(struct res_counter *cnt)
178 static inline void res_counter_reset_max(struct res_counter *cnt)
187 static inline void res_counter_reset_failcnt(struct res_counter *cnt)
196 static inline int res_counter_set_limit(struct res_counter *cnt,
212 res_counter_set_soft_limit(struct res_counter *cnt,