Lines Matching refs:devcg
177 static inline bool is_devcg_online(const struct dev_cgroup *devcg)
179 return (devcg->behavior != DEVCG_DEFAULT_NONE);
522 * @devcg: cgroup which exceptions will be checked
529 static void revalidate_active_exceptions(struct dev_cgroup *devcg)
534 list_for_each_safe(this, tmp, &devcg->exceptions) {
536 if (!parent_has_perm(devcg, ex))
537 dev_exception_rm(devcg, ex);
557 struct dev_cgroup *devcg = css_to_devcgroup(pos);
560 * Because devcgroup_mutex is held, no devcg will become
565 if (pos == &devcg_root->css || !is_devcg_online(devcg))
571 * in case both root's behavior and devcg is allow, a new
575 devcg->behavior == DEVCG_DEFAULT_ALLOW) {
576 rc = dev_exception_add(devcg, ex);
582 * root's behavior: allow, devcg's: deny
583 * root's behavior: deny, devcg's: deny
586 dev_exception_rm(devcg, ex);
588 revalidate_active_exceptions(devcg);