View Source alcove_cgroup (alcove v1.0.0)

Summary

Functions

cgroup(Drv)

cgroup(Drv, Pids)

create(Drv, Pids)

-spec create(alcove_drv:ref(), [alcove:pid_t()]) -> ok.

create(Drv, Pids, Namespaces)

-spec create(alcove_drv:ref(), [alcove:pid_t()], [file:name_all()]) -> ok.

destroy(Drv, Pids)

-spec destroy(alcove_drv:ref(), [alcove:pid_t()]) -> [ok | {error, file:posix()}].

destroy(Drv, Pids, Namespace)

-spec destroy(alcove_drv:ref(), [alcove:pid_t()], [file:name_all()]) -> [ok | {error, file:posix()}].

expand(Path)

fold(Drv, MntOpt, Namespace, Fun, AccIn)

fold(Drv, Pids, MntOpt, Namespace, Fun, AccIn)

fold_files(Drv, MntOpt, Namespace, RegExp, Fun, AccIn)

fold_files(Drv, Pids, MntOpt, Namespace, RegExp, CallerFun, AccIn)

get(Drv, Pids, MntOpt, Namespace, Key)

-spec get(alcove_drv:ref(), [alcove:pid_t()], binary(), [binary()], string() | binary()) ->
             {ok, binary()}.

is_dir(Drv, Pids, Path)

is_file(Drv, Pids, File)

join(Cgroup, Path)

mounts(Drv)

mounts(Drv, Pids)

relpath(Path)

set(Drv, Pids, MntOpt, Namespace, Key, Value)

-spec set(alcove_drv:ref(),
          [alcove:pid_t()],
          binary(),
          [binary()],
          string() | binary(),
          string() | binary()) ->
             ok | {error, file:posix()}.

supported(Drv, Pids)

-spec supported(alcove_drv:ref(), [alcove:pid_t()]) -> boolean().