Lines Matching defs:exceptions

44 	struct list_head exceptions;
109 list_for_each_entry(walk, &dev_cgroup->exceptions, list) {
123 list_add_tail_rcu(&excopy->list, &dev_cgroup->exceptions);
137 list_for_each_entry_safe(walk, tmp, &dev_cgroup->exceptions, list) {
157 list_for_each_entry_safe(ex, tmp, &dev_cgroup->exceptions, list) {
182 * devcgroup_online - initializes devcgroup's behavior and exceptions based on
198 ret = dev_exceptions_copy(&dev_cgroup->exceptions,
199 &parent_dev_cgroup->exceptions);
228 INIT_LIST_HEAD(&dev_cgroup->exceptions);
290 * - List the exceptions in case the default policy is to deny
300 list_for_each_entry_rcu(ex, &devcgroup->exceptions, list) {
315 * @exceptions: list of exceptions
326 static bool match_exception(struct list_head *exceptions, short type,
331 list_for_each_entry_rcu(ex, exceptions, list) {
350 * @exceptions: list of exceptions
363 static bool match_exception_partial(struct list_head *exceptions, short type,
368 list_for_each_entry_rcu(ex, exceptions, list,
424 * parent's exceptions, even slightly
426 match = match_exception_partial(&dev_cgroup->exceptions,
443 match = match_exception(&dev_cgroup->exceptions, refex->type,
498 return !match_exception_partial(&parent->exceptions, ex->type,
517 * revalidates the exceptions based on parent's
518 * behavior and exceptions. The exceptions that
521 * @devcg: cgroup which exceptions will be checked
525 * exceptions due to a parent's exception change.
533 list_for_each_safe(this, tmp, &devcg->exceptions) {
641 INIT_LIST_HEAD(&tmp_devcgrp.exceptions);
642 rc = dev_exceptions_copy(&tmp_devcgrp.exceptions,
643 &devcgroup->exceptions);
647 rc = dev_exceptions_copy(&devcgroup->exceptions,
648 &parent->exceptions);
650 dev_exceptions_move(&devcgroup->exceptions,
651 &tmp_devcgrp.exceptions);
841 /* Can't match any of the exceptions, even partially */
842 rc = !match_exception_partial(&dev_cgroup->exceptions,
846 rc = match_exception(&dev_cgroup->exceptions, type, major,