Lines Matching refs:ucounts
38 struct ucounts;
106 struct ucounts *ucounts; member
115 struct ucounts { struct
125 extern struct ucounts init_ucounts; argument
129 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type);
130 void dec_ucount(struct ucounts *ucounts, enum ucount_type type);
131 struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid);
132 struct ucounts * __must_check get_ucounts(struct ucounts *ucounts);
133 void put_ucounts(struct ucounts *ucounts);
135 static inline long get_rlimit_value(struct ucounts *ucounts, enum rlimit_type type) in get_rlimit_value() argument
137 return atomic_long_read(&ucounts->rlimit[type]); in get_rlimit_value()
140 long inc_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v);
141 bool dec_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v);
142 long inc_rlimit_get_ucounts(struct ucounts *ucounts, enum rlimit_type type);
143 void dec_rlimit_put_ucounts(struct ucounts *ucounts, enum rlimit_type type);
144 bool is_rlimit_overlimit(struct ucounts *ucounts, enum rlimit_type type, unsigned long max);