Lines Matching refs:ucounts
42 struct ucounts;
110 struct ucounts *ucounts; member
119 struct ucounts { struct
130 extern struct ucounts init_ucounts; argument
134 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type);
135 void dec_ucount(struct ucounts *ucounts, enum ucount_type type);
136 struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid);
137 void put_ucounts(struct ucounts *ucounts);
139 static inline struct ucounts * __must_check get_ucounts(struct ucounts *ucounts) in get_ucounts() argument
141 if (rcuref_get(&ucounts->count)) in get_ucounts()
142 return ucounts; in get_ucounts()
146 static inline long get_rlimit_value(struct ucounts *ucounts, enum rlimit_type type) in get_rlimit_value() argument
148 return atomic_long_read(&ucounts->rlimit[type]); in get_rlimit_value()
151 long inc_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v);
152 bool dec_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v);
153 long inc_rlimit_get_ucounts(struct ucounts *ucounts, enum rlimit_type type,
155 void dec_rlimit_put_ucounts(struct ucounts *ucounts, enum rlimit_type type);
156 bool is_rlimit_overlimit(struct ucounts *ucounts, enum rlimit_type type, unsigned long max);