Home
last modified time | relevance | path

Searched refs:res_counter (Results 1 – 10 of 10) sorted by relevance

/linux-3.4.99/include/linux/
Dres_counter.h24 struct res_counter { struct
53 struct res_counter *parent; argument
71 u64 res_counter_read_u64(struct res_counter *counter, int member);
73 ssize_t res_counter_read(struct res_counter *counter, int member,
82 int res_counter_write(struct res_counter *counter, int member,
101 void res_counter_init(struct res_counter *counter, struct res_counter *parent);
118 int __must_check res_counter_charge_locked(struct res_counter *counter,
120 int __must_check res_counter_charge(struct res_counter *counter,
121 unsigned long val, struct res_counter **limit_fail_at);
122 int __must_check res_counter_charge_nofail(struct res_counter *counter,
[all …]
/linux-3.4.99/kernel/
Dres_counter.c17 void res_counter_init(struct res_counter *counter, struct res_counter *parent) in res_counter_init()
25 int res_counter_charge_locked(struct res_counter *counter, unsigned long val) in res_counter_charge_locked()
38 int res_counter_charge(struct res_counter *counter, unsigned long val, in res_counter_charge()
39 struct res_counter **limit_fail_at) in res_counter_charge()
43 struct res_counter *c, *u; in res_counter_charge()
69 int res_counter_charge_nofail(struct res_counter *counter, unsigned long val, in res_counter_charge_nofail()
70 struct res_counter **limit_fail_at) in res_counter_charge_nofail()
74 struct res_counter *c; in res_counter_charge_nofail()
94 void res_counter_uncharge_locked(struct res_counter *counter, unsigned long val) in res_counter_uncharge_locked()
102 void res_counter_uncharge(struct res_counter *counter, unsigned long val) in res_counter_uncharge()
[all …]
DMakefile66 obj-$(CONFIG_RESOURCE_COUNTERS) += res_counter.o
/linux-3.4.99/Documentation/cgroups/
Dresource_counter.txt4 The resource counter, declared at include/linux/res_counter.h,
8 This "stuff" includes the res_counter structure and routines
13 1. Crucial parts of the res_counter structure
50 a. void res_counter_init(struct res_counter *rc,
51 struct res_counter *rc_parent)
56 The struct res_counter *parent can be used to define a hierarchical
57 child -> parent relationship directly in the res_counter structure,
60 c. int res_counter_charge(struct res_counter *rc, unsigned long val,
61 struct res_counter **limit_fail_at)
76 limit_fail_at parameter is set to the particular res_counter element
[all …]
Dmemory.txt54 memory.usage_in_bytes # show current res_counter usage for memory
56 memory.memsw.usage_in_bytes # show current res_counter usage for memory+Swap
110 The core of the design is a counter called the res_counter. The res_counter
119 | (res_counter) |
/linux-3.4.99/include/net/
Dtcp_memcontrol.h7 struct res_counter tcp_memory_allocated;
Dsock.h927 struct res_counter *memory_allocated; /* Current allocated memory. */
1054 struct res_counter *fail; in memcg_memory_allocated_add()
/linux-3.4.99/net/ipv4/
Dtcp_memcontrol.c59 struct res_counter *res_parent = NULL; in tcp_init_cgroup()
/linux-3.4.99/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c207 struct res_counter { struct
462 struct res_counter *ret; in alloc_counter_tr()
617 static int remove_counter_ok(struct res_counter *res) in remove_counter_ok()
665 return remove_counter_ok((struct res_counter *)res); in remove_ok()
/linux-3.4.99/mm/
Dmemcontrol.c229 struct res_counter res;
235 struct res_counter memsw;
2203 struct res_counter *fail_res; in mem_cgroup_do_charge()
5089 struct res_counter *dummy; in mem_cgroup_do_precharge()