Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
net
tcp_memcontrol.h
Go to the documentation of this file.
1
#ifndef _TCP_MEMCG_H
2
#define _TCP_MEMCG_H
3
4
struct
tcp_memcontrol
{
5
struct
cg_proto
cg_proto
;
6
/* per-cgroup tcp memory pressure knobs */
7
struct
res_counter
tcp_memory_allocated
;
8
struct
percpu_counter
tcp_sockets_allocated
;
9
/* those two are read-mostly, leave them at the end */
10
long
tcp_prot_mem
[3];
11
int
tcp_memory_pressure
;
12
};
13
14
struct
cg_proto
*
tcp_proto_cgroup
(
struct
mem_cgroup
*
memcg
);
15
int
tcp_init_cgroup
(
struct
mem_cgroup
*
memcg
,
struct
cgroup_subsys *
ss
);
16
void
tcp_destroy_cgroup
(
struct
mem_cgroup
*
memcg
);
17
unsigned
long
long
tcp_max_memory
(
const
struct
mem_cgroup
*
memcg
);
18
void
tcp_prot_mem
(
struct
mem_cgroup
*
memcg
,
long
val
,
int
idx
);
19
#endif
/* _TCP_MEMCG_H */
Generated on Thu Jan 10 2013 14:53:18 for Linux Kernel by
1.8.2