2#ifndef _LIBCGROUP_SYSTEMD_H
3#define _LIBCGROUP_SYSTEMD_H
5#ifndef _LIBCGROUP_H_INSIDE
6#error "Only <libcgroup.h> should be included directly."
13enum cgroup_systemd_mode_t {
14 CGROUP_SYSTEMD_MODE_FAIL = 0,
15 CGROUP_SYSTEMD_MODE_REPLACE,
16 CGROUP_SYSTEMD_MODE_ISOLATE,
17 CGROUP_SYSTEMD_MODE_IGNORE_DEPS,
18 CGROUP_SYSTEMD_MODE_IGNORE_REQS,
20 CGROUP_SYSTEMD_MODE_CNT,
21 CGROUP_SYSTEMD_MODE_DFLT = CGROUP_SYSTEMD_MODE_REPLACE
31 enum cgroup_systemd_mode_t
mode;
40 char slice_name[FILENAME_MAX];
41 char scope_name[FILENAME_MAX];
65int cgroup_create_scope(
const char *
const scope_name,
const char *
const slice_name,
80int cgroup_create_scope2(
struct cgroup *cgrp,
int ignore_ownership,
92int cgroup_set_default_systemd_cgroup(
void);
105int cgroup_alloc_systemd_opts(
const char *
const conf,
const char *
const value);
117int cgroup_add_systemd_opts(
const char *
const conf,
const char *
const value);
122void cgroup_cleanup_systemd_opts(
void);
133int cgroup_write_systemd_default_cgroup(
const char *
const slice,
134 const char *
const scope);
139bool cgroup_is_systemd_enabled(
void);
pid_t pid
Definition systemd.h:33
enum cgroup_systemd_mode_t mode
Definition systemd.h:31
int delegated
Definition systemd.h:29
Definition libcgroup-internal.h:121