Root/
Source at commit 6141d61bc7a710a2867192deb1d0eaac8d182cb8 created 13 years 10 months ago. By Nitin Gupta, Rename ramzswap files to zram | |
---|---|
1 | /* |
2 | * Compressed RAM based swap device |
3 | * |
4 | * Copyright (C) 2008, 2009, 2010 Nitin Gupta |
5 | * |
6 | * This code is released using a dual license strategy: BSD/GPL |
7 | * You can choose the licence that better fits your requirements. |
8 | * |
9 | * Released under the terms of 3-clause BSD License |
10 | * Released under the terms of GNU General Public License Version 2.0 |
11 | * |
12 | * Project home: http://compcache.googlecode.com |
13 | */ |
14 | |
15 | #ifndef _RAMZSWAP_IOCTL_H_ |
16 | #define _RAMZSWAP_IOCTL_H_ |
17 | |
18 | struct ramzswap_ioctl_stats { |
19 | u64 disksize; /* user specified or equal to backing swap |
20 | * size (if present) */ |
21 | u64 num_reads; /* failed + successful */ |
22 | u64 num_writes; /* --do-- */ |
23 | u64 failed_reads; /* should NEVER! happen */ |
24 | u64 failed_writes; /* can happen when memory is too low */ |
25 | u64 invalid_io; /* non-swap I/O requests */ |
26 | u64 notify_free; /* no. of swap slot free notifications */ |
27 | u32 pages_zero; /* no. of zero filled pages */ |
28 | u32 good_compress_pct; /* no. of pages with compression ratio<=50% */ |
29 | u32 pages_expand_pct; /* no. of incompressible pages */ |
30 | u32 pages_stored; |
31 | u32 pages_used; |
32 | u64 orig_data_size; |
33 | u64 compr_data_size; |
34 | u64 mem_used_total; |
35 | } __attribute__ ((packed, aligned(4))); |
36 | |
37 | #define RZSIO_SET_DISKSIZE_KB _IOW('z', 0, size_t) |
38 | #define RZSIO_GET_STATS _IOR('z', 1, struct ramzswap_ioctl_stats) |
39 | #define RZSIO_INIT _IO('z', 2) |
40 | #define RZSIO_RESET _IO('z', 3) |
41 | |
42 | #endif |
43 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9