device_cgroup.c (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) device_cgroup.c (ec15872daa0ac3f5cbe7cb6f1734c493d74301ac)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * device_cgroup.c - device cgroup subsystem
4 *
5 * Copyright 2007 IBM Corp
6 */
7
8#include <linux/device_cgroup.h>

--- 495 unchanged lines hidden (view full) ---

504 * behavior and exceptions. The exceptions that
505 * are no longer valid will be removed.
506 * Called with devcgroup_mutex held.
507 * @devcg: cgroup which exceptions will be checked
508 *
509 * This is one of the three key functions for hierarchy implementation.
510 * This function is responsible for re-evaluating all the cgroup's active
511 * exceptions due to a parent's exception change.
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * device_cgroup.c - device cgroup subsystem
4 *
5 * Copyright 2007 IBM Corp
6 */
7
8#include <linux/device_cgroup.h>

--- 495 unchanged lines hidden (view full) ---

504 * behavior and exceptions. The exceptions that
505 * are no longer valid will be removed.
506 * Called with devcgroup_mutex held.
507 * @devcg: cgroup which exceptions will be checked
508 *
509 * This is one of the three key functions for hierarchy implementation.
510 * This function is responsible for re-evaluating all the cgroup's active
511 * exceptions due to a parent's exception change.
512 * Refer to Documentation/cgroups/devices.txt for more details.
512 * Refer to Documentation/cgroup-v1/devices.txt for more details.
513 */
514static void revalidate_active_exceptions(struct dev_cgroup *devcg)
515{
516 struct dev_exception_item *ex;
517 struct list_head *this, *tmp;
518
519 list_for_each_safe(this, tmp, &devcg->exceptions) {
520 ex = container_of(this, struct dev_exception_item, list);

--- 306 unchanged lines hidden ---
513 */
514static void revalidate_active_exceptions(struct dev_cgroup *devcg)
515{
516 struct dev_exception_item *ex;
517 struct list_head *this, *tmp;
518
519 list_for_each_safe(this, tmp, &devcg->exceptions) {
520 ex = container_of(this, struct dev_exception_item, list);

--- 306 unchanged lines hidden ---