mirror of
https://github.com/springzfx/cgproxy.git
synced 2026-01-07 13:07:56 +08:00
18 lines
416 B
C++
18 lines
416 B
C++
#ifndef CGPROUP_ATTACH_H
|
|
#define CGPROUP_ATTACH_H
|
|
|
|
#include <stdlib.h>
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
namespace CGPROXY::CGROUP {
|
|
extern string cgroup2_mount_point;
|
|
bool validate(string pid, string cgroup);
|
|
int attach(const string pid, const string cgroup_target);
|
|
int attach(const int pid, const string cgroup_target);
|
|
int write2procs(string pid, string procspath);
|
|
|
|
} // namespace CGPROXY::CGROUP
|
|
|
|
#endif
|