cgroup-rts-threads-0.2.1.1: A container-/cgroup-aware substitute for the GHC RTS `-N` flag
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.CGroup.V1.Controller

Description

Common types and operations for cgroup controllers.

Synopsis

cgroup controllers

newtype Controller a Source #

A cgroup (v1) controller path for a specific subsystem

Constructors

Controller 

Instances

Instances details
Show (Controller a) Source # 
Instance details

Defined in System.CGroup.V1.Controller

Eq (Controller a) Source # 
Instance details

Defined in System.CGroup.V1.Controller

Methods

(==) :: Controller a -> Controller a -> Bool #

(/=) :: Controller a -> Controller a -> Bool #

Ord (Controller a) Source # 
Instance details

Defined in System.CGroup.V1.Controller

resolveCGroupController :: Text -> IO (Controller a) Source #

Resolve a cgroup (v1) controller by name, as viewed by the current process

see cgroups(7): /proc/self/cgroup is a file that contains information about control groups applied to this process

see proc(5): /proc/self/mountinfo is a file that contains information about mounts available to this process

Throws an Exception when the controller is not able to be found, or when running outside of a cgroup

resolveCGroupController' :: Path Abs File -> Path Abs File -> Text -> IO (Controller a) Source #

Resolve a cgroup controller by name, under the given cgroup and mountinfo paths

Throws an Exception when the controller is not able to be found, or when running outside of a cgroup