mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
610 B
27 lines
610 B
/* SPDX-License-Identifier: GPL-2.0-only */ |
|
/* |
|
* Definitions for container bus type. |
|
* |
|
* Copyright (C) 2013, Intel Corporation |
|
* Author: Rafael J. Wysocki <[email protected]> |
|
*/ |
|
|
|
#ifndef _LINUX_CONTAINER_H |
|
#define _LINUX_CONTAINER_H |
|
|
|
#include <linux/device.h> |
|
|
|
/* drivers/base/power/container.c */ |
|
extern struct bus_type container_subsys; |
|
|
|
struct container_dev { |
|
struct device dev; |
|
int (*offline)(struct container_dev *cdev); |
|
}; |
|
|
|
static inline struct container_dev *to_container_dev(struct device *dev) |
|
{ |
|
return container_of(dev, struct container_dev, dev); |
|
} |
|
|
|
#endif /* _LINUX_CONTAINER_H */
|
|
|