Lines Matching refs:devcg
176 static inline bool is_devcg_online(const struct dev_cgroup *devcg)
178 return (devcg->behavior != DEVCG_DEFAULT_NONE);
521 * @devcg: cgroup which exceptions will be checked
528 static void revalidate_active_exceptions(struct dev_cgroup *devcg)
533 list_for_each_safe(this, tmp, &devcg->exceptions) {
535 if (!parent_has_perm(devcg, ex))
536 dev_exception_rm(devcg, ex);
556 struct dev_cgroup *devcg = css_to_devcgroup(pos);
559 * Because devcgroup_mutex is held, no devcg will become
564 if (pos == &devcg_root->css || !is_devcg_online(devcg))
570 * in case both root's behavior and devcg is allow, a new
574 devcg->behavior == DEVCG_DEFAULT_ALLOW) {
575 rc = dev_exception_add(devcg, ex);
581 * root's behavior: allow, devcg's: deny
582 * root's behavior: deny, devcg's: deny
585 dev_exception_rm(devcg, ex);
587 revalidate_active_exceptions(devcg);