How to use the cgroupspy.contenttypes.DeviceAccess function in cgroupspy

To help you get started, we’ve selected a few cgroupspy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cloudsigma / cgroupspy / cgroupspy / controllers.py View on Github external
# Requires special file interface
    # numa_stat =

    # Requires eventfd handling - https://www.kernel.org/doc/Documentation/cgroups/memory.txt
    # pressure_level =


class DevicesController(Controller):
    """
    devices.allow
    devices.deny
    devices.list
    """

    allow = TypedFile("devices.allow", DeviceAccess, writeonly=True)
    deny = TypedFile("devices.deny", DeviceAccess, writeonly=True)
    list = TypedFile("devices.list", DeviceAccess, readonly=True, many=True)


class BlkIOController(Controller):
    """
    blkio.io_merged
    blkio.io_merged_recursive
    blkio.io_queued
    blkio.io_queued_recursive
    blkio.io_service_bytes
    blkio.io_service_bytes_recursive
    blkio.io_serviced
    blkio.io_serviced_recursive
    blkio.io_service_time
    blkio.io_service_time_recursive
    blkio.io_wait_time
github cloudsigma / cgroupspy / cgroupspy / controllers.py View on Github external
# Requires special file interface
    # numa_stat =

    # Requires eventfd handling - https://www.kernel.org/doc/Documentation/cgroups/memory.txt
    # pressure_level =


class DevicesController(Controller):
    """
    devices.allow
    devices.deny
    devices.list
    """

    allow = TypedFile("devices.allow", DeviceAccess, writeonly=True)
    deny = TypedFile("devices.deny", DeviceAccess, writeonly=True)
    list = TypedFile("devices.list", DeviceAccess, readonly=True, many=True)


class BlkIOController(Controller):
    """
    blkio.io_merged
    blkio.io_merged_recursive
    blkio.io_queued
    blkio.io_queued_recursive
    blkio.io_service_bytes
    blkio.io_service_bytes_recursive
    blkio.io_serviced
    blkio.io_serviced_recursive
    blkio.io_service_time
    blkio.io_service_time_recursive