Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
170d528e
Commit
170d528e
authored
Mar 30, 2009
by
Daniel Lezcano
Committed by
Daniel Lezcano
Mar 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup cgroup.h
Rename lxc_cgroup.h to cgroup.h Signed-off-by:
Daniel Lezcano
<
daniel.lezcano@free.fr
>
parent
c6d1536e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
83 deletions
+1
-83
Makefile.am
src/lxc/Makefile.am
+1
-1
lxc_cgroup.h
src/lxc/lxc_cgroup.h
+0
-82
No files found.
src/lxc/Makefile.am
View file @
170d528e
...
@@ -9,7 +9,7 @@ pkginclude_HEADERS = \
...
@@ -9,7 +9,7 @@ pkginclude_HEADERS = \
namespace.h
\
namespace.h
\
lock.h
\
lock.h
\
lxc.h
\
lxc.h
\
lxc_
cgroup.h
\
cgroup.h
\
lxc_conf.h
\
lxc_conf.h
\
lxc_list.h
\
lxc_list.h
\
lxc_log.h
\
lxc_log.h
\
...
...
src/lxc/lxc_cgroup.h
deleted
100644 → 0
View file @
c6d1536e
/*
* lxc: linux Container library
*
* (C) Copyright IBM Corp. 2007, 2008
*
* Authors:
* Daniel Lezcano <dlezcano at fr.ibm.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _cgroup_h
#define _cgroup_h
#define MAXPRIOLEN 24
#define CGROUP_CPU_SHARES "cpu.shares"
#define CGROUP_CPUACCT_USAGE "cpuacct.usage"
#define CGROUP_CPUSET_CPUS "cpuset.cpus"
#define CGROUP_CPUSET_CPU_EXCLUSIVE "cpuset.cpu_exclusive"
#define CGROUP_CPUSET_SCHED_LOAD_BALANCE "cpuset.sched_load_balance"
#define CGROUP_CPUSET_SCHED_RELAX_DOMAIN_LEVEL "cpuset.sched_relax_domain_level"
#define CGROUP_MEMORY_LIMIT_IN_BYTES "memory.limit_in_bytes"
struct
lxc_cgroup_memory_info
{
unsigned
long
cache
;
unsigned
long
rss
;
unsigned
long
page_in
;
unsigned
long
page_out
;
unsigned
long
active
;
unsigned
long
inactive
;
unsigned
long
failcnt
;
unsigned
long
force_empty
;
unsigned
long
limit_in_bytes
;
unsigned
long
max_usage_in_bytes
;
unsigned
long
usage_in_bytes
;
};
struct
lxc_cgroup_cpuacct_info
{
unsigned
long
usage
;
};
struct
lxc_cgroup_cpu_info
{
unsigned
long
rt_period_us
;
unsigned
long
rt_runtimer_us
;
unsigned
long
shares
;
};
struct
lxc_cgroup_cpuset_info
{
int
mem_exclusive
;
int
mem_hardball
;
int
memory_migrate
;
int
memory_pressure
;
int
memory_pressure_enabled
;
int
memory_spread_page
;
int
memory_spread_slab
;
};
struct
lxc_cgroup_info
{
struct
lxc_cgroup_memory_info
memory
;
struct
lxc_cgroup_cpuacct_info
cpuacct
;
struct
lxc_cgroup_cpu_info
cpu
;
struct
lxc_cgroup_cpuset_info
cpuset
;
};
int
lxc_get_cgroup_mount
(
const
char
*
mtab
,
char
*
mnt
);
int
lxc_link_nsgroup
(
const
char
*
name
,
pid_t
pid
);
int
lxc_unlink_nsgroup
(
const
char
*
name
);
int
lxc_cgroup_copy
(
const
char
*
name
,
const
char
*
subsystem
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment