Lines Matching refs:ucounts
39 struct ucounts;
101 struct ucounts *ucounts; member
108 struct ucounts { struct
117 extern struct ucounts init_ucounts; argument
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_ucounts_value(struct ucounts *ucounts, enum ucount_type type) in get_ucounts_value() argument
129 return atomic_long_read(&ucounts->ucount[type]); in get_ucounts_value()
132 long inc_rlimit_ucounts(struct ucounts *ucounts, enum ucount_type type, long v);
133 bool dec_rlimit_ucounts(struct ucounts *ucounts, enum ucount_type type, long v);
134 long inc_rlimit_get_ucounts(struct ucounts *ucounts, enum ucount_type type);
135 void dec_rlimit_put_ucounts(struct ucounts *ucounts, enum ucount_type type);
136 bool is_ucounts_overlimit(struct ucounts *ucounts, enum ucount_type type, unsigned long max);