Lines Matching refs:ucounts
38 struct ucounts;
102 struct ucounts *ucounts;
107 struct ucounts {
117 extern struct ucounts init_ucounts;
121 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type);
122 void dec_ucount(struct ucounts *ucounts, enum ucount_type type);
123 struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid);
124 struct ucounts * __must_check get_ucounts(struct ucounts *ucounts);
125 void put_ucounts(struct ucounts *ucounts);
127 static inline long get_rlimit_value(struct ucounts *ucounts, enum rlimit_type type)
129 return atomic_long_read(&ucounts->rlimit[type]);
132 long inc_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v);
133 bool dec_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v);
134 long inc_rlimit_get_ucounts(struct ucounts *ucounts, enum rlimit_type type);
135 void dec_rlimit_put_ucounts(struct ucounts *ucounts, enum rlimit_type type);
136 bool is_rlimit_overlimit(struct ucounts *ucounts, enum rlimit_type type, unsigned long max);