LCOV - code coverage report
Current view: top level - include/linux - container.h (source / functions) Hit Total Coverage
Test: landlock.info Lines: 0 1 0.0 %
Date: 2021-04-22 12:43:58 Functions: 0 0 -

          Line data    Source code
       1             : /* SPDX-License-Identifier: GPL-2.0-only */
       2             : /*
       3             :  * Definitions for container bus type.
       4             :  *
       5             :  * Copyright (C) 2013, Intel Corporation
       6             :  * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
       7             :  */
       8             : 
       9             : #ifndef _LINUX_CONTAINER_H
      10             : #define _LINUX_CONTAINER_H
      11             : 
      12             : #include <linux/device.h>
      13             : 
      14             : /* drivers/base/power/container.c */
      15             : extern struct bus_type container_subsys;
      16             : 
      17             : struct container_dev {
      18             :         struct device dev;
      19             :         int (*offline)(struct container_dev *cdev);
      20             : };
      21             : 
      22             : static inline struct container_dev *to_container_dev(struct device *dev)
      23             : {
      24           0 :         return container_of(dev, struct container_dev, dev);
      25             : }
      26             : 
      27             : #endif /* _LINUX_CONTAINER_H */

Generated by: LCOV version 1.14