![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only */ 0002 /* 0003 * Definitions for container bus type. 0004 * 0005 * Copyright (C) 2013, Intel Corporation 0006 * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 0007 */ 0008 0009 #ifndef _LINUX_CONTAINER_H 0010 #define _LINUX_CONTAINER_H 0011 0012 #include <linux/device.h> 0013 0014 /* drivers/base/power/container.c */ 0015 extern struct bus_type container_subsys; 0016 0017 struct container_dev { 0018 struct device dev; 0019 int (*offline)(struct container_dev *cdev); 0020 }; 0021 0022 static inline struct container_dev *to_container_dev(struct device *dev) 0023 { 0024 return container_of(dev, struct container_dev, dev); 0025 } 0026 0027 #endif /* _LINUX_CONTAINER_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |