feat: 支持cgroups

BREAKING CHANGE:
支持cgroups对外变更:
1.在proc目录下支持plimits目录,支持ipc, pid, memory, devices, sched控制器

Close #I6GVPL

Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: Ib996e07bf148abce9e40290d6188b763b52e89bb
This commit is contained in:
zhushengle
2023-02-22 18:55:15 +08:00
parent 57455849ca
commit b45cdbda3e
38 changed files with 3931 additions and 42 deletions

View File

@@ -54,6 +54,7 @@ extern "C" {
/* scheduler lock */
extern SPIN_LOCK_S g_taskSpin;
#define SCHEDULER_HELD() LOS_SpinHeld(&g_taskSpin)
#define SCHEDULER_LOCK(state) LOS_SpinLockSave(&g_taskSpin, &(state))
#define SCHEDULER_UNLOCK(state) LOS_SpinUnlockRestore(&g_taskSpin, state)