1
2
3
4#line 19 "include/asm-generic/int-ll64.h"
5typedef signed char __s8;
6#line 22 "include/asm-generic/int-ll64.h"
7typedef short __s16;
8#line 23 "include/asm-generic/int-ll64.h"
9typedef unsigned short __u16;
10#line 25 "include/asm-generic/int-ll64.h"
11typedef int __s32;
12#line 26 "include/asm-generic/int-ll64.h"
13typedef unsigned int __u32;
14#line 29 "include/asm-generic/int-ll64.h"
15typedef long long __s64;
16#line 30 "include/asm-generic/int-ll64.h"
17typedef unsigned long long __u64;
18#line 43 "include/asm-generic/int-ll64.h"
19typedef unsigned char u8;
20#line 45 "include/asm-generic/int-ll64.h"
21typedef short s16;
22#line 46 "include/asm-generic/int-ll64.h"
23typedef unsigned short u16;
24#line 48 "include/asm-generic/int-ll64.h"
25typedef int s32;
26#line 49 "include/asm-generic/int-ll64.h"
27typedef unsigned int u32;
28#line 51 "include/asm-generic/int-ll64.h"
29typedef long long s64;
30#line 52 "include/asm-generic/int-ll64.h"
31typedef unsigned long long u64;
32#line 14 "include/asm-generic/posix_types.h"
33typedef long __kernel_long_t;
34#line 15 "include/asm-generic/posix_types.h"
35typedef unsigned long __kernel_ulong_t;
36#line 31 "include/asm-generic/posix_types.h"
37typedef int __kernel_pid_t;
38#line 52 "include/asm-generic/posix_types.h"
39typedef unsigned int __kernel_uid32_t;
40#line 53 "include/asm-generic/posix_types.h"
41typedef unsigned int __kernel_gid32_t;
42#line 75 "include/asm-generic/posix_types.h"
43typedef __kernel_ulong_t __kernel_size_t;
44#line 76 "include/asm-generic/posix_types.h"
45typedef __kernel_long_t __kernel_ssize_t;
46#line 91 "include/asm-generic/posix_types.h"
47typedef long long __kernel_loff_t;
48#line 92 "include/asm-generic/posix_types.h"
49typedef __kernel_long_t __kernel_time_t;
50#line 93 "include/asm-generic/posix_types.h"
51typedef __kernel_long_t __kernel_clock_t;
52#line 94 "include/asm-generic/posix_types.h"
53typedef int __kernel_timer_t;
54#line 95 "include/asm-generic/posix_types.h"
55typedef int __kernel_clockid_t;
56#line 21 "include/linux/types.h"
57typedef __u32 __kernel_dev_t;
58#line 24 "include/linux/types.h"
59typedef __kernel_dev_t dev_t;
60#line 27 "include/linux/types.h"
61typedef unsigned short umode_t;
62#line 30 "include/linux/types.h"
63typedef __kernel_pid_t pid_t;
64#line 35 "include/linux/types.h"
65typedef __kernel_clockid_t clockid_t;
66#line 38 "include/linux/types.h"
67typedef _Bool bool;
68#line 40 "include/linux/types.h"
69typedef __kernel_uid32_t uid_t;
70#line 41 "include/linux/types.h"
71typedef __kernel_gid32_t gid_t;
72#line 54 "include/linux/types.h"
73typedef __kernel_loff_t loff_t;
74#line 63 "include/linux/types.h"
75typedef __kernel_size_t size_t;
76#line 68 "include/linux/types.h"
77typedef __kernel_ssize_t ssize_t;
78#line 78 "include/linux/types.h"
79typedef __kernel_time_t time_t;
80#line 111 "include/linux/types.h"
81typedef __s32 int32_t;
82#line 117 "include/linux/types.h"
83typedef __u32 uint32_t;
84#line 142 "include/linux/types.h"
85typedef unsigned long sector_t;
86#line 143 "include/linux/types.h"
87typedef unsigned long blkcnt_t;
88#line 202 "include/linux/types.h"
89typedef unsigned int gfp_t;
90#line 203 "include/linux/types.h"
91typedef unsigned int fmode_t;
92#line 206 "include/linux/types.h"
93typedef u64 phys_addr_t;
94#line 219 "include/linux/types.h"
95struct __anonstruct_atomic_t_7 {
96 int counter ;
97};
98#line 219 "include/linux/types.h"
99typedef struct __anonstruct_atomic_t_7 atomic_t;
100#line 224 "include/linux/types.h"
101struct __anonstruct_atomic64_t_8 {
102 long counter ;
103};
104#line 224 "include/linux/types.h"
105typedef struct __anonstruct_atomic64_t_8 atomic64_t;
106#line 229 "include/linux/types.h"
107struct list_head {
108 struct list_head *next ;
109 struct list_head *prev ;
110};
111#line 233
112struct hlist_node;
113#line 233 "include/linux/types.h"
114struct hlist_head {
115 struct hlist_node *first ;
116};
117#line 237 "include/linux/types.h"
118struct hlist_node {
119 struct hlist_node *next ;
120 struct hlist_node **pprev ;
121};
122#line 253 "include/linux/types.h"
123struct rcu_head {
124 struct rcu_head *next ;
125 void (*func)(struct rcu_head *head ) ;
126};
127#line 56 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/alternative.h"
128struct module;
129#line 146 "include/linux/init.h"
130typedef void (*ctor_fn_t)(void);
131#line 9 "include/linux/dynamic_debug.h"
132struct _ddebug {
133 char const *modname ;
134 char const *function ;
135 char const *filename ;
136 char const *format ;
137 unsigned int lineno : 18 ;
138 unsigned int flags : 8 ;
139} __attribute__((__aligned__(8))) ;
140#line 47
141struct device;
142#line 135 "include/linux/kernel.h"
143struct completion;
144#line 136
145struct pt_regs;
146#line 349
147struct pid;
148#line 12 "include/linux/thread_info.h"
149struct timespec;
150#line 13
151struct compat_timespec;
152#line 18 "include/linux/thread_info.h"
153struct __anonstruct_futex_11 {
154 u32 *uaddr ;
155 u32 val ;
156 u32 flags ;
157 u32 bitset ;
158 u64 time ;
159 u32 *uaddr2 ;
160};
161#line 18 "include/linux/thread_info.h"
162struct __anonstruct_nanosleep_12 {
163 clockid_t clockid ;
164 struct timespec *rmtp ;
165 struct compat_timespec *compat_rmtp ;
166 u64 expires ;
167};
168#line 18
169struct pollfd;
170#line 18 "include/linux/thread_info.h"
171struct __anonstruct_poll_13 {
172 struct pollfd *ufds ;
173 int nfds ;
174 int has_timeout ;
175 unsigned long tv_sec ;
176 unsigned long tv_nsec ;
177};
178#line 18 "include/linux/thread_info.h"
179union __anonunion____missing_field_name_10 {
180 struct __anonstruct_futex_11 futex ;
181 struct __anonstruct_nanosleep_12 nanosleep ;
182 struct __anonstruct_poll_13 poll ;
183};
184#line 18 "include/linux/thread_info.h"
185struct restart_block {
186 long (*fn)(struct restart_block * ) ;
187 union __anonunion____missing_field_name_10 __annonCompField4 ;
188};
189#line 18 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/page.h"
190struct page;
191#line 20 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/thread_info.h"
192struct task_struct;
193#line 21
194struct exec_domain;
195#line 8 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
196struct mm_struct;
197#line 99 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/ptrace.h"
198struct pt_regs {
199 unsigned long r15 ;
200 unsigned long r14 ;
201 unsigned long r13 ;
202 unsigned long r12 ;
203 unsigned long bp ;
204 unsigned long bx ;
205 unsigned long r11 ;
206 unsigned long r10 ;
207 unsigned long r9 ;
208 unsigned long r8 ;
209 unsigned long ax ;
210 unsigned long cx ;
211 unsigned long dx ;
212 unsigned long si ;
213 unsigned long di ;
214 unsigned long orig_ax ;
215 unsigned long ip ;
216 unsigned long cs ;
217 unsigned long flags ;
218 unsigned long sp ;
219 unsigned long ss ;
220};
221#line 22 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/desc_defs.h"
222struct __anonstruct____missing_field_name_15 {
223 unsigned int a ;
224 unsigned int b ;
225};
226#line 22 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/desc_defs.h"
227struct __anonstruct____missing_field_name_16 {
228 u16 limit0 ;
229 u16 base0 ;
230 unsigned int base1 : 8 ;
231 unsigned int type : 4 ;
232 unsigned int s : 1 ;
233 unsigned int dpl : 2 ;
234 unsigned int p : 1 ;
235 unsigned int limit : 4 ;
236 unsigned int avl : 1 ;
237 unsigned int l : 1 ;
238 unsigned int d : 1 ;
239 unsigned int g : 1 ;
240 unsigned int base2 : 8 ;
241};
242#line 22 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/desc_defs.h"
243union __anonunion____missing_field_name_14 {
244 struct __anonstruct____missing_field_name_15 __annonCompField5 ;
245 struct __anonstruct____missing_field_name_16 __annonCompField6 ;
246};
247#line 22 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/desc_defs.h"
248struct desc_struct {
249 union __anonunion____missing_field_name_14 __annonCompField7 ;
250} __attribute__((__packed__)) ;
251#line 13 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_64_types.h"
252typedef unsigned long pgdval_t;
253#line 14 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_64_types.h"
254typedef unsigned long pgprotval_t;
255#line 192 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_types.h"
256struct pgprot {
257 pgprotval_t pgprot ;
258};
259#line 192 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_types.h"
260typedef struct pgprot pgprot_t;
261#line 194 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_types.h"
262struct __anonstruct_pgd_t_20 {
263 pgdval_t pgd ;
264};
265#line 194 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_types.h"
266typedef struct __anonstruct_pgd_t_20 pgd_t;
267#line 282 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_types.h"
268typedef struct page *pgtable_t;
269#line 295
270struct file;
271#line 313
272struct seq_file;
273#line 47 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/paravirt_types.h"
274struct thread_struct;
275#line 53
276struct cpumask;
277#line 329
278struct arch_spinlock;
279#line 141 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/vm86.h"
280struct kernel_vm86_regs {
281 struct pt_regs pt ;
282 unsigned short es ;
283 unsigned short __esh ;
284 unsigned short ds ;
285 unsigned short __dsh ;
286 unsigned short fs ;
287 unsigned short __fsh ;
288 unsigned short gs ;
289 unsigned short __gsh ;
290};
291#line 11 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/math_emu.h"
292union __anonunion____missing_field_name_24 {
293 struct pt_regs *regs ;
294 struct kernel_vm86_regs *vm86 ;
295};
296#line 11 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/math_emu.h"
297struct math_emu_info {
298 long ___orig_eip ;
299 union __anonunion____missing_field_name_24 __annonCompField8 ;
300};
301#line 10 "include/asm-generic/bug.h"
302struct bug_entry {
303 int bug_addr_disp ;
304 int file_disp ;
305 unsigned short line ;
306 unsigned short flags ;
307};
308#line 14 "include/linux/cpumask.h"
309struct cpumask {
310 unsigned long bits[((4096UL + 8UL * sizeof(long )) - 1UL) / (8UL * sizeof(long ))] ;
311};
312#line 14 "include/linux/cpumask.h"
313typedef struct cpumask cpumask_t;
314#line 637 "include/linux/cpumask.h"
315typedef struct cpumask *cpumask_var_t;
316#line 234 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/paravirt.h"
317struct static_key;
318#line 92 "include/linux/personality.h"
319struct map_segment;
320#line 92 "include/linux/personality.h"
321struct exec_domain {
322 char const *name ;
323 void (*handler)(int , struct pt_regs * ) ;
324 unsigned char pers_low ;
325 unsigned char pers_high ;
326 unsigned long *signal_map ;
327 unsigned long *signal_invmap ;
328 struct map_segment *err_map ;
329 struct map_segment *socktype_map ;
330 struct map_segment *sockopt_map ;
331 struct map_segment *af_map ;
332 struct module *module ;
333 struct exec_domain *next ;
334};
335#line 290 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
336struct i387_fsave_struct {
337 u32 cwd ;
338 u32 swd ;
339 u32 twd ;
340 u32 fip ;
341 u32 fcs ;
342 u32 foo ;
343 u32 fos ;
344 u32 st_space[20] ;
345 u32 status ;
346};
347#line 306 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
348struct __anonstruct____missing_field_name_31 {
349 u64 rip ;
350 u64 rdp ;
351};
352#line 306 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
353struct __anonstruct____missing_field_name_32 {
354 u32 fip ;
355 u32 fcs ;
356 u32 foo ;
357 u32 fos ;
358};
359#line 306 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
360union __anonunion____missing_field_name_30 {
361 struct __anonstruct____missing_field_name_31 __annonCompField12 ;
362 struct __anonstruct____missing_field_name_32 __annonCompField13 ;
363};
364#line 306 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
365union __anonunion____missing_field_name_33 {
366 u32 padding1[12] ;
367 u32 sw_reserved[12] ;
368};
369#line 306 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
370struct i387_fxsave_struct {
371 u16 cwd ;
372 u16 swd ;
373 u16 twd ;
374 u16 fop ;
375 union __anonunion____missing_field_name_30 __annonCompField14 ;
376 u32 mxcsr ;
377 u32 mxcsr_mask ;
378 u32 st_space[32] ;
379 u32 xmm_space[64] ;
380 u32 padding[12] ;
381 union __anonunion____missing_field_name_33 __annonCompField15 ;
382} __attribute__((__aligned__(16))) ;
383#line 341 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
384struct i387_soft_struct {
385 u32 cwd ;
386 u32 swd ;
387 u32 twd ;
388 u32 fip ;
389 u32 fcs ;
390 u32 foo ;
391 u32 fos ;
392 u32 st_space[20] ;
393 u8 ftop ;
394 u8 changed ;
395 u8 lookahead ;
396 u8 no_update ;
397 u8 rm ;
398 u8 alimit ;
399 struct math_emu_info *info ;
400 u32 entry_eip ;
401};
402#line 361 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
403struct ymmh_struct {
404 u32 ymmh_space[64] ;
405};
406#line 366 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
407struct xsave_hdr_struct {
408 u64 xstate_bv ;
409 u64 reserved1[2] ;
410 u64 reserved2[5] ;
411} __attribute__((__packed__)) ;
412#line 372 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
413struct xsave_struct {
414 struct i387_fxsave_struct i387 ;
415 struct xsave_hdr_struct xsave_hdr ;
416 struct ymmh_struct ymmh ;
417} __attribute__((__packed__, __aligned__(64))) ;
418#line 379 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
419union thread_xstate {
420 struct i387_fsave_struct fsave ;
421 struct i387_fxsave_struct fxsave ;
422 struct i387_soft_struct soft ;
423 struct xsave_struct xsave ;
424};
425#line 386 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
426struct fpu {
427 unsigned int last_cpu ;
428 unsigned int has_fpu ;
429 union thread_xstate *state ;
430};
431#line 433
432struct kmem_cache;
433#line 435
434struct perf_event;
435#line 437 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
436struct thread_struct {
437 struct desc_struct tls_array[3] ;
438 unsigned long sp0 ;
439 unsigned long sp ;
440 unsigned long usersp ;
441 unsigned short es ;
442 unsigned short ds ;
443 unsigned short fsindex ;
444 unsigned short gsindex ;
445 unsigned long fs ;
446 unsigned long gs ;
447 struct perf_event *ptrace_bps[4] ;
448 unsigned long debugreg6 ;
449 unsigned long ptrace_dr7 ;
450 unsigned long cr2 ;
451 unsigned long trap_nr ;
452 unsigned long error_code ;
453 struct fpu fpu ;
454 unsigned long *io_bitmap_ptr ;
455 unsigned long iopl ;
456 unsigned int io_bitmap_max ;
457};
458#line 569 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
459struct __anonstruct_mm_segment_t_35 {
460 unsigned long seg ;
461};
462#line 569 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
463typedef struct __anonstruct_mm_segment_t_35 mm_segment_t;
464#line 23 "include/asm-generic/atomic-long.h"
465typedef atomic64_t atomic_long_t;
466#line 26 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/thread_info.h"
467struct thread_info {
468 struct task_struct *task ;
469 struct exec_domain *exec_domain ;
470 __u32 flags ;
471 __u32 status ;
472 __u32 cpu ;
473 int preempt_count ;
474 mm_segment_t addr_limit ;
475 struct restart_block restart_block ;
476 void *sysenter_return ;
477 unsigned int sig_on_uaccess_error : 1 ;
478 unsigned int uaccess_err : 1 ;
479};
480#line 14 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
481typedef u16 __ticket_t;
482#line 15 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
483typedef u32 __ticketpair_t;
484#line 20 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
485struct __raw_tickets {
486 __ticket_t head ;
487 __ticket_t tail ;
488};
489#line 20 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
490union __anonunion____missing_field_name_36 {
491 __ticketpair_t head_tail ;
492 struct __raw_tickets tickets ;
493};
494#line 20 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
495struct arch_spinlock {
496 union __anonunion____missing_field_name_36 __annonCompField17 ;
497};
498#line 20 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
499typedef struct arch_spinlock arch_spinlock_t;
500#line 27 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/rwlock.h"
501struct __anonstruct____missing_field_name_38 {
502 u32 read ;
503 s32 write ;
504};
505#line 27 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/rwlock.h"
506union __anonunion_arch_rwlock_t_37 {
507 s64 lock ;
508 struct __anonstruct____missing_field_name_38 __annonCompField18 ;
509};
510#line 27 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/rwlock.h"
511typedef union __anonunion_arch_rwlock_t_37 arch_rwlock_t;
512#line 391 "include/linux/lockdep.h"
513struct lock_class_key {
514
515};
516#line 20 "include/linux/spinlock_types.h"
517struct raw_spinlock {
518 arch_spinlock_t raw_lock ;
519 unsigned int magic ;
520 unsigned int owner_cpu ;
521 void *owner ;
522};
523#line 20 "include/linux/spinlock_types.h"
524typedef struct raw_spinlock raw_spinlock_t;
525#line 64 "include/linux/spinlock_types.h"
526union __anonunion____missing_field_name_39 {
527 struct raw_spinlock rlock ;
528};
529#line 64 "include/linux/spinlock_types.h"
530struct spinlock {
531 union __anonunion____missing_field_name_39 __annonCompField19 ;
532};
533#line 64 "include/linux/spinlock_types.h"
534typedef struct spinlock spinlock_t;
535#line 11 "include/linux/rwlock_types.h"
536struct __anonstruct_rwlock_t_40 {
537 arch_rwlock_t raw_lock ;
538 unsigned int magic ;
539 unsigned int owner_cpu ;
540 void *owner ;
541};
542#line 11 "include/linux/rwlock_types.h"
543typedef struct __anonstruct_rwlock_t_40 rwlock_t;
544#line 119 "include/linux/seqlock.h"
545struct seqcount {
546 unsigned int sequence ;
547};
548#line 119 "include/linux/seqlock.h"
549typedef struct seqcount seqcount_t;
550#line 14 "include/linux/time.h"
551struct timespec {
552 __kernel_time_t tv_sec ;
553 long tv_nsec ;
554};
555#line 62 "include/linux/stat.h"
556struct kstat {
557 u64 ino ;
558 dev_t dev ;
559 umode_t mode ;
560 unsigned int nlink ;
561 uid_t uid ;
562 gid_t gid ;
563 dev_t rdev ;
564 loff_t size ;
565 struct timespec atime ;
566 struct timespec mtime ;
567 struct timespec ctime ;
568 unsigned long blksize ;
569 unsigned long long blocks ;
570};
571#line 49 "include/linux/wait.h"
572struct __wait_queue_head {
573 spinlock_t lock ;
574 struct list_head task_list ;
575};
576#line 53 "include/linux/wait.h"
577typedef struct __wait_queue_head wait_queue_head_t;
578#line 98 "include/linux/nodemask.h"
579struct __anonstruct_nodemask_t_42 {
580 unsigned long bits[(((unsigned long )(1 << 10) + 8UL * sizeof(long )) - 1UL) / (8UL * sizeof(long ))] ;
581};
582#line 98 "include/linux/nodemask.h"
583typedef struct __anonstruct_nodemask_t_42 nodemask_t;
584#line 48 "include/linux/mutex.h"
585struct mutex {
586 atomic_t count ;
587 spinlock_t wait_lock ;
588 struct list_head wait_list ;
589 struct task_struct *owner ;
590 char const *name ;
591 void *magic ;
592};
593#line 69 "include/linux/mutex.h"
594struct mutex_waiter {
595 struct list_head list ;
596 struct task_struct *task ;
597 void *magic ;
598};
599#line 19 "include/linux/rwsem.h"
600struct rw_semaphore;
601#line 25 "include/linux/rwsem.h"
602struct rw_semaphore {
603 long count ;
604 raw_spinlock_t wait_lock ;
605 struct list_head wait_list ;
606};
607#line 25 "include/linux/completion.h"
608struct completion {
609 unsigned int done ;
610 wait_queue_head_t wait ;
611};
612#line 46 "include/linux/ktime.h"
613union ktime {
614 s64 tv64 ;
615};
616#line 59 "include/linux/ktime.h"
617typedef union ktime ktime_t;
618#line 10 "include/linux/timer.h"
619struct tvec_base;
620#line 12 "include/linux/timer.h"
621struct timer_list {
622 struct list_head entry ;
623 unsigned long expires ;
624 struct tvec_base *base ;
625 void (*function)(unsigned long ) ;
626 unsigned long data ;
627 int slack ;
628 int start_pid ;
629 void *start_site ;
630 char start_comm[16] ;
631};
632#line 289
633struct hrtimer;
634#line 290
635enum hrtimer_restart;
636#line 17 "include/linux/workqueue.h"
637struct work_struct;
638#line 79 "include/linux/workqueue.h"
639struct work_struct {
640 atomic_long_t data ;
641 struct list_head entry ;
642 void (*func)(struct work_struct *work ) ;
643};
644#line 92 "include/linux/workqueue.h"
645struct delayed_work {
646 struct work_struct work ;
647 struct timer_list timer ;
648};
649#line 50 "include/linux/pm.h"
650struct pm_message {
651 int event ;
652};
653#line 50 "include/linux/pm.h"
654typedef struct pm_message pm_message_t;
655#line 264 "include/linux/pm.h"
656struct dev_pm_ops {
657 int (*prepare)(struct device *dev ) ;
658 void (*complete)(struct device *dev ) ;
659 int (*suspend)(struct device *dev ) ;
660 int (*resume)(struct device *dev ) ;
661 int (*freeze)(struct device *dev ) ;
662 int (*thaw)(struct device *dev ) ;
663 int (*poweroff)(struct device *dev ) ;
664 int (*restore)(struct device *dev ) ;
665 int (*suspend_late)(struct device *dev ) ;
666 int (*resume_early)(struct device *dev ) ;
667 int (*freeze_late)(struct device *dev ) ;
668 int (*thaw_early)(struct device *dev ) ;
669 int (*poweroff_late)(struct device *dev ) ;
670 int (*restore_early)(struct device *dev ) ;
671 int (*suspend_noirq)(struct device *dev ) ;
672 int (*resume_noirq)(struct device *dev ) ;
673 int (*freeze_noirq)(struct device *dev ) ;
674 int (*thaw_noirq)(struct device *dev ) ;
675 int (*poweroff_noirq)(struct device *dev ) ;
676 int (*restore_noirq)(struct device *dev ) ;
677 int (*runtime_suspend)(struct device *dev ) ;
678 int (*runtime_resume)(struct device *dev ) ;
679 int (*runtime_idle)(struct device *dev ) ;
680};
681#line 458
682enum rpm_status {
683 RPM_ACTIVE = 0,
684 RPM_RESUMING = 1,
685 RPM_SUSPENDED = 2,
686 RPM_SUSPENDING = 3
687} ;
688#line 480
689enum rpm_request {
690 RPM_REQ_NONE = 0,
691 RPM_REQ_IDLE = 1,
692 RPM_REQ_SUSPEND = 2,
693 RPM_REQ_AUTOSUSPEND = 3,
694 RPM_REQ_RESUME = 4
695} ;
696#line 488
697struct wakeup_source;
698#line 495 "include/linux/pm.h"
699struct pm_subsys_data {
700 spinlock_t lock ;
701 unsigned int refcount ;
702};
703#line 506
704struct dev_pm_qos_request;
705#line 506
706struct pm_qos_constraints;
707#line 506 "include/linux/pm.h"
708struct dev_pm_info {
709 pm_message_t power_state ;
710 unsigned int can_wakeup : 1 ;
711 unsigned int async_suspend : 1 ;
712 bool is_prepared : 1 ;
713 bool is_suspended : 1 ;
714 bool ignore_children : 1 ;
715 spinlock_t lock ;
716 struct list_head entry ;
717 struct completion completion ;
718 struct wakeup_source *wakeup ;
719 bool wakeup_path : 1 ;
720 struct timer_list suspend_timer ;
721 unsigned long timer_expires ;
722 struct work_struct work ;
723 wait_queue_head_t wait_queue ;
724 atomic_t usage_count ;
725 atomic_t child_count ;
726 unsigned int disable_depth : 3 ;
727 unsigned int idle_notification : 1 ;
728 unsigned int request_pending : 1 ;
729 unsigned int deferred_resume : 1 ;
730 unsigned int run_wake : 1 ;
731 unsigned int runtime_auto : 1 ;
732 unsigned int no_callbacks : 1 ;
733 unsigned int irq_safe : 1 ;
734 unsigned int use_autosuspend : 1 ;
735 unsigned int timer_autosuspends : 1 ;
736 enum rpm_request request ;
737 enum rpm_status runtime_status ;
738 int runtime_error ;
739 int autosuspend_delay ;
740 unsigned long last_busy ;
741 unsigned long active_jiffies ;
742 unsigned long suspended_jiffies ;
743 unsigned long accounting_timestamp ;
744 ktime_t suspend_time ;
745 s64 max_time_suspended_ns ;
746 struct dev_pm_qos_request *pq_req ;
747 struct pm_subsys_data *subsys_data ;
748 struct pm_qos_constraints *constraints ;
749};
750#line 564 "include/linux/pm.h"
751struct dev_pm_domain {
752 struct dev_pm_ops ops ;
753};
754#line 11 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/mmu.h"
755struct __anonstruct_mm_context_t_112 {
756 void *ldt ;
757 int size ;
758 unsigned short ia32_compat ;
759 struct mutex lock ;
760 void *vdso ;
761};
762#line 11 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/mmu.h"
763typedef struct __anonstruct_mm_context_t_112 mm_context_t;
764#line 8 "include/linux/vmalloc.h"
765struct vm_area_struct;
766#line 336 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/io.h"
767struct bio_vec;
768#line 18 "include/linux/smp.h"
769struct call_single_data {
770 struct list_head list ;
771 void (*func)(void *info ) ;
772 void *info ;
773 u16 flags ;
774 u16 priv ;
775};
776#line 100 "include/linux/rbtree.h"
777struct rb_node {
778 unsigned long rb_parent_color ;
779 struct rb_node *rb_right ;
780 struct rb_node *rb_left ;
781} __attribute__((__aligned__(sizeof(long )))) ;
782#line 110 "include/linux/rbtree.h"
783struct rb_root {
784 struct rb_node *rb_node ;
785};
786#line 939 "include/linux/sysctl.h"
787struct nsproxy;
788#line 48 "include/linux/kmod.h"
789struct cred;
790#line 18 "include/linux/elf.h"
791typedef __u64 Elf64_Addr;
792#line 19 "include/linux/elf.h"
793typedef __u16 Elf64_Half;
794#line 23 "include/linux/elf.h"
795typedef __u32 Elf64_Word;
796#line 24 "include/linux/elf.h"
797typedef __u64 Elf64_Xword;
798#line 194 "include/linux/elf.h"
799struct elf64_sym {
800 Elf64_Word st_name ;
801 unsigned char st_info ;
802 unsigned char st_other ;
803 Elf64_Half st_shndx ;
804 Elf64_Addr st_value ;
805 Elf64_Xword st_size ;
806};
807#line 194 "include/linux/elf.h"
808typedef struct elf64_sym Elf64_Sym;
809#line 20 "include/linux/kobject_ns.h"
810struct sock;
811#line 21
812struct kobject;
813#line 27
814enum kobj_ns_type {
815 KOBJ_NS_TYPE_NONE = 0,
816 KOBJ_NS_TYPE_NET = 1,
817 KOBJ_NS_TYPES = 2
818} ;
819#line 40 "include/linux/kobject_ns.h"
820struct kobj_ns_type_operations {
821 enum kobj_ns_type type ;
822 void *(*grab_current_ns)(void) ;
823 void const *(*netlink_ns)(struct sock *sk ) ;
824 void const *(*initial_ns)(void) ;
825 void (*drop_ns)(void * ) ;
826};
827#line 24 "include/linux/sysfs.h"
828enum kobj_ns_type;
829#line 26 "include/linux/sysfs.h"
830struct attribute {
831 char const *name ;
832 umode_t mode ;
833};
834#line 56 "include/linux/sysfs.h"
835struct attribute_group {
836 char const *name ;
837 umode_t (*is_visible)(struct kobject * , struct attribute * , int ) ;
838 struct attribute **attrs ;
839};
840#line 88 "include/linux/sysfs.h"
841struct bin_attribute {
842 struct attribute attr ;
843 size_t size ;
844 void *private ;
845 ssize_t (*read)(struct file * , struct kobject * , struct bin_attribute * , char * ,
846 loff_t , size_t ) ;
847 ssize_t (*write)(struct file * , struct kobject * , struct bin_attribute * , char * ,
848 loff_t , size_t ) ;
849 int (*mmap)(struct file * , struct kobject * , struct bin_attribute *attr , struct vm_area_struct *vma ) ;
850};
851#line 112 "include/linux/sysfs.h"
852struct sysfs_ops {
853 ssize_t (*show)(struct kobject * , struct attribute * , char * ) ;
854 ssize_t (*store)(struct kobject * , struct attribute * , char const * , size_t ) ;
855 void const *(*namespace)(struct kobject * , struct attribute const * ) ;
856};
857#line 118
858struct sysfs_dirent;
859#line 22 "include/linux/kref.h"
860struct kref {
861 atomic_t refcount ;
862};
863#line 60 "include/linux/kobject.h"
864struct kset;
865#line 60
866struct kobj_type;
867#line 60 "include/linux/kobject.h"
868struct kobject {
869 char const *name ;
870 struct list_head entry ;
871 struct kobject *parent ;
872 struct kset *kset ;
873 struct kobj_type *ktype ;
874 struct sysfs_dirent *sd ;
875 struct kref kref ;
876 unsigned int state_initialized : 1 ;
877 unsigned int state_in_sysfs : 1 ;
878 unsigned int state_add_uevent_sent : 1 ;
879 unsigned int state_remove_uevent_sent : 1 ;
880 unsigned int uevent_suppress : 1 ;
881};
882#line 108 "include/linux/kobject.h"
883struct kobj_type {
884 void (*release)(struct kobject *kobj ) ;
885 struct sysfs_ops const *sysfs_ops ;
886 struct attribute **default_attrs ;
887 struct kobj_ns_type_operations const *(*child_ns_type)(struct kobject *kobj ) ;
888 void const *(*namespace)(struct kobject *kobj ) ;
889};
890#line 116 "include/linux/kobject.h"
891struct kobj_uevent_env {
892 char *envp[32] ;
893 int envp_idx ;
894 char buf[2048] ;
895 int buflen ;
896};
897#line 123 "include/linux/kobject.h"
898struct kset_uevent_ops {
899 int (* const filter)(struct kset *kset , struct kobject *kobj ) ;
900 char const *(* const name)(struct kset *kset , struct kobject *kobj ) ;
901 int (* const uevent)(struct kset *kset , struct kobject *kobj , struct kobj_uevent_env *env ) ;
902};
903#line 159 "include/linux/kobject.h"
904struct kset {
905 struct list_head list ;
906 spinlock_t list_lock ;
907 struct kobject kobj ;
908 struct kset_uevent_ops const *uevent_ops ;
909};
910#line 39 "include/linux/moduleparam.h"
911struct kernel_param;
912#line 41 "include/linux/moduleparam.h"
913struct kernel_param_ops {
914 int (*set)(char const *val , struct kernel_param const *kp ) ;
915 int (*get)(char *buffer , struct kernel_param const *kp ) ;
916 void (*free)(void *arg ) ;
917};
918#line 50
919struct kparam_string;
920#line 50
921struct kparam_array;
922#line 50 "include/linux/moduleparam.h"
923union __anonunion____missing_field_name_199 {
924 void *arg ;
925 struct kparam_string const *str ;
926 struct kparam_array const *arr ;
927};
928#line 50 "include/linux/moduleparam.h"
929struct kernel_param {
930 char const *name ;
931 struct kernel_param_ops const *ops ;
932 u16 perm ;
933 s16 level ;
934 union __anonunion____missing_field_name_199 __annonCompField32 ;
935};
936#line 63 "include/linux/moduleparam.h"
937struct kparam_string {
938 unsigned int maxlen ;
939 char *string ;
940};
941#line 69 "include/linux/moduleparam.h"
942struct kparam_array {
943 unsigned int max ;
944 unsigned int elemsize ;
945 unsigned int *num ;
946 struct kernel_param_ops const *ops ;
947 void *elem ;
948};
949#line 143 "include/linux/jump_label.h"
950struct static_key {
951 atomic_t enabled ;
952};
953#line 23 "include/linux/tracepoint.h"
954struct tracepoint;
955#line 25 "include/linux/tracepoint.h"
956struct tracepoint_func {
957 void *func ;
958 void *data ;
959};
960#line 30 "include/linux/tracepoint.h"
961struct tracepoint {
962 char const *name ;
963 struct static_key key ;
964 void (*regfunc)(void) ;
965 void (*unregfunc)(void) ;
966 struct tracepoint_func *funcs ;
967};
968#line 19 "include/linux/export.h"
969struct kernel_symbol {
970 unsigned long value ;
971 char const *name ;
972};
973#line 8 "include/asm-generic/module.h"
974struct mod_arch_specific {
975
976};
977#line 37 "include/linux/module.h"
978struct module_param_attrs;
979#line 37 "include/linux/module.h"
980struct module_kobject {
981 struct kobject kobj ;
982 struct module *mod ;
983 struct kobject *drivers_dir ;
984 struct module_param_attrs *mp ;
985};
986#line 44 "include/linux/module.h"
987struct module_attribute {
988 struct attribute attr ;
989 ssize_t (*show)(struct module_attribute * , struct module_kobject * , char * ) ;
990 ssize_t (*store)(struct module_attribute * , struct module_kobject * , char const * ,
991 size_t count ) ;
992 void (*setup)(struct module * , char const * ) ;
993 int (*test)(struct module * ) ;
994 void (*free)(struct module * ) ;
995};
996#line 71
997struct exception_table_entry;
998#line 199
999enum module_state {
1000 MODULE_STATE_LIVE = 0,
1001 MODULE_STATE_COMING = 1,
1002 MODULE_STATE_GOING = 2
1003} ;
1004#line 215 "include/linux/module.h"
1005struct module_ref {
1006 unsigned long incs ;
1007 unsigned long decs ;
1008} __attribute__((__aligned__((2) * (sizeof(unsigned long )) ))) ;
1009#line 220
1010struct module_sect_attrs;
1011#line 220
1012struct module_notes_attrs;
1013#line 220
1014struct ftrace_event_call;
1015#line 220 "include/linux/module.h"
1016struct module {
1017 enum module_state state ;
1018 struct list_head list ;
1019 char name[64UL - sizeof(unsigned long )] ;
1020 struct module_kobject mkobj ;
1021 struct module_attribute *modinfo_attrs ;
1022 char const *version ;
1023 char const *srcversion ;
1024 struct kobject *holders_dir ;
1025 struct kernel_symbol const *syms ;
1026 unsigned long const *crcs ;
1027 unsigned int num_syms ;
1028 struct kernel_param *kp ;
1029 unsigned int num_kp ;
1030 unsigned int num_gpl_syms ;
1031 struct kernel_symbol const *gpl_syms ;
1032 unsigned long const *gpl_crcs ;
1033 struct kernel_symbol const *unused_syms ;
1034 unsigned long const *unused_crcs ;
1035 unsigned int num_unused_syms ;
1036 unsigned int num_unused_gpl_syms ;
1037 struct kernel_symbol const *unused_gpl_syms ;
1038 unsigned long const *unused_gpl_crcs ;
1039 struct kernel_symbol const *gpl_future_syms ;
1040 unsigned long const *gpl_future_crcs ;
1041 unsigned int num_gpl_future_syms ;
1042 unsigned int num_exentries ;
1043 struct exception_table_entry *extable ;
1044 int (*init)(void) ;
1045 void *module_init ;
1046 void *module_core ;
1047 unsigned int init_size ;
1048 unsigned int core_size ;
1049 unsigned int init_text_size ;
1050 unsigned int core_text_size ;
1051 unsigned int init_ro_size ;
1052 unsigned int core_ro_size ;
1053 struct mod_arch_specific arch ;
1054 unsigned int taints ;
1055 unsigned int num_bugs ;
1056 struct list_head bug_list ;
1057 struct bug_entry *bug_table ;
1058 Elf64_Sym *symtab ;
1059 Elf64_Sym *core_symtab ;
1060 unsigned int num_symtab ;
1061 unsigned int core_num_syms ;
1062 char *strtab ;
1063 char *core_strtab ;
1064 struct module_sect_attrs *sect_attrs ;
1065 struct module_notes_attrs *notes_attrs ;
1066 char *args ;
1067 void *percpu ;
1068 unsigned int percpu_size ;
1069 unsigned int num_tracepoints ;
1070 struct tracepoint * const *tracepoints_ptrs ;
1071 unsigned int num_trace_bprintk_fmt ;
1072 char const **trace_bprintk_fmt_start ;
1073 struct ftrace_event_call **trace_events ;
1074 unsigned int num_trace_events ;
1075 struct list_head source_list ;
1076 struct list_head target_list ;
1077 struct task_struct *waiter ;
1078 void (*exit)(void) ;
1079 struct module_ref *refptr ;
1080 ctor_fn_t *ctors ;
1081 unsigned int num_ctors ;
1082};
1083#line 13 "include/linux/blk_types.h"
1084struct bio;
1085#line 14
1086struct bio_integrity_payload;
1087#line 16
1088struct block_device;
1089#line 17 "include/linux/blk_types.h"
1090typedef void bio_end_io_t(struct bio * , int );
1091#line 18 "include/linux/blk_types.h"
1092typedef void bio_destructor_t(struct bio * );
1093#line 23 "include/linux/blk_types.h"
1094struct bio_vec {
1095 struct page *bv_page ;
1096 unsigned int bv_len ;
1097 unsigned int bv_offset ;
1098};
1099#line 33 "include/linux/blk_types.h"
1100struct bio {
1101 sector_t bi_sector ;
1102 struct bio *bi_next ;
1103 struct block_device *bi_bdev ;
1104 unsigned long bi_flags ;
1105 unsigned long bi_rw ;
1106 unsigned short bi_vcnt ;
1107 unsigned short bi_idx ;
1108 unsigned int bi_phys_segments ;
1109 unsigned int bi_size ;
1110 unsigned int bi_seg_front_size ;
1111 unsigned int bi_seg_back_size ;
1112 unsigned int bi_max_vecs ;
1113 atomic_t bi_cnt ;
1114 struct bio_vec *bi_io_vec ;
1115 bio_end_io_t *bi_end_io ;
1116 void *bi_private ;
1117 struct bio_integrity_payload *bi_integrity ;
1118 bio_destructor_t *bi_destructor ;
1119 struct bio_vec bi_inline_vecs[0] ;
1120};
1121#line 33 "include/linux/list_bl.h"
1122struct hlist_bl_node;
1123#line 33 "include/linux/list_bl.h"
1124struct hlist_bl_head {
1125 struct hlist_bl_node *first ;
1126};
1127#line 37 "include/linux/list_bl.h"
1128struct hlist_bl_node {
1129 struct hlist_bl_node *next ;
1130 struct hlist_bl_node **pprev ;
1131};
1132#line 13 "include/linux/dcache.h"
1133struct nameidata;
1134#line 14
1135struct path;
1136#line 15
1137struct vfsmount;
1138#line 35 "include/linux/dcache.h"
1139struct qstr {
1140 unsigned int hash ;
1141 unsigned int len ;
1142 unsigned char const *name ;
1143};
1144#line 88
1145struct inode;
1146#line 88
1147struct dentry_operations;
1148#line 88
1149struct super_block;
1150#line 88 "include/linux/dcache.h"
1151union __anonunion_d_u_201 {
1152 struct list_head d_child ;
1153 struct rcu_head d_rcu ;
1154};
1155#line 88 "include/linux/dcache.h"
1156struct dentry {
1157 unsigned int d_flags ;
1158 seqcount_t d_seq ;
1159 struct hlist_bl_node d_hash ;
1160 struct dentry *d_parent ;
1161 struct qstr d_name ;
1162 struct inode *d_inode ;
1163 unsigned char d_iname[32] ;
1164 unsigned int d_count ;
1165 spinlock_t d_lock ;
1166 struct dentry_operations const *d_op ;
1167 struct super_block *d_sb ;
1168 unsigned long d_time ;
1169 void *d_fsdata ;
1170 struct list_head d_lru ;
1171 union __anonunion_d_u_201 d_u ;
1172 struct list_head d_subdirs ;
1173 struct list_head d_alias ;
1174};
1175#line 131 "include/linux/dcache.h"
1176struct dentry_operations {
1177 int (*d_revalidate)(struct dentry * , struct nameidata * ) ;
1178 int (*d_hash)(struct dentry const * , struct inode const * , struct qstr * ) ;
1179 int (*d_compare)(struct dentry const * , struct inode const * , struct dentry const * ,
1180 struct inode const * , unsigned int , char const * , struct qstr const * ) ;
1181 int (*d_delete)(struct dentry const * ) ;
1182 void (*d_release)(struct dentry * ) ;
1183 void (*d_prune)(struct dentry * ) ;
1184 void (*d_iput)(struct dentry * , struct inode * ) ;
1185 char *(*d_dname)(struct dentry * , char * , int ) ;
1186 struct vfsmount *(*d_automount)(struct path * ) ;
1187 int (*d_manage)(struct dentry * , bool ) ;
1188} __attribute__((__aligned__((1) << (6) ))) ;
1189#line 7 "include/linux/path.h"
1190struct path {
1191 struct vfsmount *mnt ;
1192 struct dentry *dentry ;
1193};
1194#line 64 "include/linux/radix-tree.h"
1195struct radix_tree_node;
1196#line 64 "include/linux/radix-tree.h"
1197struct radix_tree_root {
1198 unsigned int height ;
1199 gfp_t gfp_mask ;
1200 struct radix_tree_node *rnode ;
1201};
1202#line 14 "include/linux/prio_tree.h"
1203struct prio_tree_node;
1204#line 14 "include/linux/prio_tree.h"
1205struct raw_prio_tree_node {
1206 struct prio_tree_node *left ;
1207 struct prio_tree_node *right ;
1208 struct prio_tree_node *parent ;
1209};
1210#line 20 "include/linux/prio_tree.h"
1211struct prio_tree_node {
1212 struct prio_tree_node *left ;
1213 struct prio_tree_node *right ;
1214 struct prio_tree_node *parent ;
1215 unsigned long start ;
1216 unsigned long last ;
1217};
1218#line 28 "include/linux/prio_tree.h"
1219struct prio_tree_root {
1220 struct prio_tree_node *prio_tree_node ;
1221 unsigned short index_bits ;
1222 unsigned short raw ;
1223};
1224#line 6 "include/linux/pid.h"
1225enum pid_type {
1226 PIDTYPE_PID = 0,
1227 PIDTYPE_PGID = 1,
1228 PIDTYPE_SID = 2,
1229 PIDTYPE_MAX = 3
1230} ;
1231#line 50
1232struct pid_namespace;
1233#line 50 "include/linux/pid.h"
1234struct upid {
1235 int nr ;
1236 struct pid_namespace *ns ;
1237 struct hlist_node pid_chain ;
1238};
1239#line 57 "include/linux/pid.h"
1240struct pid {
1241 atomic_t count ;
1242 unsigned int level ;
1243 struct hlist_head tasks[3] ;
1244 struct rcu_head rcu ;
1245 struct upid numbers[1] ;
1246};
1247#line 69 "include/linux/pid.h"
1248struct pid_link {
1249 struct hlist_node node ;
1250 struct pid *pid ;
1251};
1252#line 94 "include/linux/capability.h"
1253struct kernel_cap_struct {
1254 __u32 cap[2] ;
1255};
1256#line 94 "include/linux/capability.h"
1257typedef struct kernel_cap_struct kernel_cap_t;
1258#line 378
1259struct user_namespace;
1260#line 16 "include/linux/fiemap.h"
1261struct fiemap_extent {
1262 __u64 fe_logical ;
1263 __u64 fe_physical ;
1264 __u64 fe_length ;
1265 __u64 fe_reserved64[2] ;
1266 __u32 fe_flags ;
1267 __u32 fe_reserved[3] ;
1268};
1269#line 8 "include/linux/shrinker.h"
1270struct shrink_control {
1271 gfp_t gfp_mask ;
1272 unsigned long nr_to_scan ;
1273};
1274#line 31 "include/linux/shrinker.h"
1275struct shrinker {
1276 int (*shrink)(struct shrinker * , struct shrink_control *sc ) ;
1277 int seeks ;
1278 long batch ;
1279 struct list_head list ;
1280 atomic_long_t nr_in_batch ;
1281};
1282#line 10 "include/linux/migrate_mode.h"
1283enum migrate_mode {
1284 MIGRATE_ASYNC = 0,
1285 MIGRATE_SYNC_LIGHT = 1,
1286 MIGRATE_SYNC = 2
1287} ;
1288#line 408 "include/linux/fs.h"
1289struct export_operations;
1290#line 409
1291struct hd_geometry;
1292#line 410
1293struct iovec;
1294#line 412
1295struct kiocb;
1296#line 414
1297struct pipe_inode_info;
1298#line 415
1299struct poll_table_struct;
1300#line 416
1301struct kstatfs;
1302#line 469 "include/linux/fs.h"
1303struct iattr {
1304 unsigned int ia_valid ;
1305 umode_t ia_mode ;
1306 uid_t ia_uid ;
1307 gid_t ia_gid ;
1308 loff_t ia_size ;
1309 struct timespec ia_atime ;
1310 struct timespec ia_mtime ;
1311 struct timespec ia_ctime ;
1312 struct file *ia_file ;
1313};
1314#line 129 "include/linux/quota.h"
1315struct if_dqinfo {
1316 __u64 dqi_bgrace ;
1317 __u64 dqi_igrace ;
1318 __u32 dqi_flags ;
1319 __u32 dqi_valid ;
1320};
1321#line 18 "include/linux/percpu_counter.h"
1322struct percpu_counter {
1323 raw_spinlock_t lock ;
1324 s64 count ;
1325 struct list_head list ;
1326 s32 *counters ;
1327};
1328#line 50 "include/linux/dqblk_xfs.h"
1329struct fs_disk_quota {
1330 __s8 d_version ;
1331 __s8 d_flags ;
1332 __u16 d_fieldmask ;
1333 __u32 d_id ;
1334 __u64 d_blk_hardlimit ;
1335 __u64 d_blk_softlimit ;
1336 __u64 d_ino_hardlimit ;
1337 __u64 d_ino_softlimit ;
1338 __u64 d_bcount ;
1339 __u64 d_icount ;
1340 __s32 d_itimer ;
1341 __s32 d_btimer ;
1342 __u16 d_iwarns ;
1343 __u16 d_bwarns ;
1344 __s32 d_padding2 ;
1345 __u64 d_rtb_hardlimit ;
1346 __u64 d_rtb_softlimit ;
1347 __u64 d_rtbcount ;
1348 __s32 d_rtbtimer ;
1349 __u16 d_rtbwarns ;
1350 __s16 d_padding3 ;
1351 char d_padding4[8] ;
1352};
1353#line 146 "include/linux/dqblk_xfs.h"
1354struct fs_qfilestat {
1355 __u64 qfs_ino ;
1356 __u64 qfs_nblks ;
1357 __u32 qfs_nextents ;
1358};
1359#line 146 "include/linux/dqblk_xfs.h"
1360typedef struct fs_qfilestat fs_qfilestat_t;
1361#line 152 "include/linux/dqblk_xfs.h"
1362struct fs_quota_stat {
1363 __s8 qs_version ;
1364 __u16 qs_flags ;
1365 __s8 qs_pad ;
1366 fs_qfilestat_t qs_uquota ;
1367 fs_qfilestat_t qs_gquota ;
1368 __u32 qs_incoredqs ;
1369 __s32 qs_btimelimit ;
1370 __s32 qs_itimelimit ;
1371 __s32 qs_rtbtimelimit ;
1372 __u16 qs_bwarnlimit ;
1373 __u16 qs_iwarnlimit ;
1374};
1375#line 17 "include/linux/dqblk_qtree.h"
1376struct dquot;
1377#line 185 "include/linux/quota.h"
1378typedef __kernel_uid32_t qid_t;
1379#line 186 "include/linux/quota.h"
1380typedef long long qsize_t;
1381#line 200 "include/linux/quota.h"
1382struct mem_dqblk {
1383 qsize_t dqb_bhardlimit ;
1384 qsize_t dqb_bsoftlimit ;
1385 qsize_t dqb_curspace ;
1386 qsize_t dqb_rsvspace ;
1387 qsize_t dqb_ihardlimit ;
1388 qsize_t dqb_isoftlimit ;
1389 qsize_t dqb_curinodes ;
1390 time_t dqb_btime ;
1391 time_t dqb_itime ;
1392};
1393#line 215
1394struct quota_format_type;
1395#line 217 "include/linux/quota.h"
1396struct mem_dqinfo {
1397 struct quota_format_type *dqi_format ;
1398 int dqi_fmt_id ;
1399 struct list_head dqi_dirty_list ;
1400 unsigned long dqi_flags ;
1401 unsigned int dqi_bgrace ;
1402 unsigned int dqi_igrace ;
1403 qsize_t dqi_maxblimit ;
1404 qsize_t dqi_maxilimit ;
1405 void *dqi_priv ;
1406};
1407#line 288 "include/linux/quota.h"
1408struct dquot {
1409 struct hlist_node dq_hash ;
1410 struct list_head dq_inuse ;
1411 struct list_head dq_free ;
1412 struct list_head dq_dirty ;
1413 struct mutex dq_lock ;
1414 atomic_t dq_count ;
1415 wait_queue_head_t dq_wait_unused ;
1416 struct super_block *dq_sb ;
1417 unsigned int dq_id ;
1418 loff_t dq_off ;
1419 unsigned long dq_flags ;
1420 short dq_type ;
1421 struct mem_dqblk dq_dqb ;
1422};
1423#line 305 "include/linux/quota.h"
1424struct quota_format_ops {
1425 int (*check_quota_file)(struct super_block *sb , int type ) ;
1426 int (*read_file_info)(struct super_block *sb , int type ) ;
1427 int (*write_file_info)(struct super_block *sb , int type ) ;
1428 int (*free_file_info)(struct super_block *sb , int type ) ;
1429 int (*read_dqblk)(struct dquot *dquot ) ;
1430 int (*commit_dqblk)(struct dquot *dquot ) ;
1431 int (*release_dqblk)(struct dquot *dquot ) ;
1432};
1433#line 316 "include/linux/quota.h"
1434struct dquot_operations {
1435 int (*write_dquot)(struct dquot * ) ;
1436 struct dquot *(*alloc_dquot)(struct super_block * , int ) ;
1437 void (*destroy_dquot)(struct dquot * ) ;
1438 int (*acquire_dquot)(struct dquot * ) ;
1439 int (*release_dquot)(struct dquot * ) ;
1440 int (*mark_dirty)(struct dquot * ) ;
1441 int (*write_info)(struct super_block * , int ) ;
1442 qsize_t *(*get_reserved_space)(struct inode * ) ;
1443};
1444#line 332 "include/linux/quota.h"
1445struct quotactl_ops {
1446 int (*quota_on)(struct super_block * , int , int , struct path * ) ;
1447 int (*quota_on_meta)(struct super_block * , int , int ) ;
1448 int (*quota_off)(struct super_block * , int ) ;
1449 int (*quota_sync)(struct super_block * , int , int ) ;
1450 int (*get_info)(struct super_block * , int , struct if_dqinfo * ) ;
1451 int (*set_info)(struct super_block * , int , struct if_dqinfo * ) ;
1452 int (*get_dqblk)(struct super_block * , int , qid_t , struct fs_disk_quota * ) ;
1453 int (*set_dqblk)(struct super_block * , int , qid_t , struct fs_disk_quota * ) ;
1454 int (*get_xstate)(struct super_block * , struct fs_quota_stat * ) ;
1455 int (*set_xstate)(struct super_block * , unsigned int , int ) ;
1456};
1457#line 345 "include/linux/quota.h"
1458struct quota_format_type {
1459 int qf_fmt_id ;
1460 struct quota_format_ops const *qf_ops ;
1461 struct module *qf_owner ;
1462 struct quota_format_type *qf_next ;
1463};
1464#line 399 "include/linux/quota.h"
1465struct quota_info {
1466 unsigned int flags ;
1467 struct mutex dqio_mutex ;
1468 struct mutex dqonoff_mutex ;
1469 struct rw_semaphore dqptr_sem ;
1470 struct inode *files[2] ;
1471 struct mem_dqinfo info[2] ;
1472 struct quota_format_ops const *ops[2] ;
1473};
1474#line 533 "include/linux/fs.h"
1475struct address_space;
1476#line 534
1477struct writeback_control;
1478#line 577 "include/linux/fs.h"
1479union __anonunion_arg_209 {
1480 char *buf ;
1481 void *data ;
1482};
1483#line 577 "include/linux/fs.h"
1484struct __anonstruct_read_descriptor_t_208 {
1485 size_t written ;
1486 size_t count ;
1487 union __anonunion_arg_209 arg ;
1488 int error ;
1489};
1490#line 577 "include/linux/fs.h"
1491typedef struct __anonstruct_read_descriptor_t_208 read_descriptor_t;
1492#line 590 "include/linux/fs.h"
1493struct address_space_operations {
1494 int (*writepage)(struct page *page , struct writeback_control *wbc ) ;
1495 int (*readpage)(struct file * , struct page * ) ;
1496 int (*writepages)(struct address_space * , struct writeback_control * ) ;
1497 int (*set_page_dirty)(struct page *page ) ;
1498 int (*readpages)(struct file *filp , struct address_space *mapping , struct list_head *pages ,
1499 unsigned int nr_pages ) ;
1500 int (*write_begin)(struct file * , struct address_space *mapping , loff_t pos ,
1501 unsigned int len , unsigned int flags , struct page **pagep ,
1502 void **fsdata ) ;
1503 int (*write_end)(struct file * , struct address_space *mapping , loff_t pos , unsigned int len ,
1504 unsigned int copied , struct page *page , void *fsdata ) ;
1505 sector_t (*bmap)(struct address_space * , sector_t ) ;
1506 void (*invalidatepage)(struct page * , unsigned long ) ;
1507 int (*releasepage)(struct page * , gfp_t ) ;
1508 void (*freepage)(struct page * ) ;
1509 ssize_t (*direct_IO)(int , struct kiocb * , struct iovec const *iov , loff_t offset ,
1510 unsigned long nr_segs ) ;
1511 int (*get_xip_mem)(struct address_space * , unsigned long , int , void ** , unsigned long * ) ;
1512 int (*migratepage)(struct address_space * , struct page * , struct page * , enum migrate_mode ) ;
1513 int (*launder_page)(struct page * ) ;
1514 int (*is_partially_uptodate)(struct page * , read_descriptor_t * , unsigned long ) ;
1515 int (*error_remove_page)(struct address_space * , struct page * ) ;
1516};
1517#line 645
1518struct backing_dev_info;
1519#line 646 "include/linux/fs.h"
1520struct address_space {
1521 struct inode *host ;
1522 struct radix_tree_root page_tree ;
1523 spinlock_t tree_lock ;
1524 unsigned int i_mmap_writable ;
1525 struct prio_tree_root i_mmap ;
1526 struct list_head i_mmap_nonlinear ;
1527 struct mutex i_mmap_mutex ;
1528 unsigned long nrpages ;
1529 unsigned long writeback_index ;
1530 struct address_space_operations const *a_ops ;
1531 unsigned long flags ;
1532 struct backing_dev_info *backing_dev_info ;
1533 spinlock_t private_lock ;
1534 struct list_head private_list ;
1535 struct address_space *assoc_mapping ;
1536} __attribute__((__aligned__(sizeof(long )))) ;
1537#line 669
1538struct request_queue;
1539#line 671
1540struct hd_struct;
1541#line 671
1542struct gendisk;
1543#line 671 "include/linux/fs.h"
1544struct block_device {
1545 dev_t bd_dev ;
1546 int bd_openers ;
1547 struct inode *bd_inode ;
1548 struct super_block *bd_super ;
1549 struct mutex bd_mutex ;
1550 struct list_head bd_inodes ;
1551 void *bd_claiming ;
1552 void *bd_holder ;
1553 int bd_holders ;
1554 bool bd_write_holder ;
1555 struct list_head bd_holder_disks ;
1556 struct block_device *bd_contains ;
1557 unsigned int bd_block_size ;
1558 struct hd_struct *bd_part ;
1559 unsigned int bd_part_count ;
1560 int bd_invalidated ;
1561 struct gendisk *bd_disk ;
1562 struct request_queue *bd_queue ;
1563 struct list_head bd_list ;
1564 unsigned long bd_private ;
1565 int bd_fsfreeze_count ;
1566 struct mutex bd_fsfreeze_mutex ;
1567};
1568#line 749
1569struct posix_acl;
1570#line 761
1571struct inode_operations;
1572#line 761 "include/linux/fs.h"
1573union __anonunion____missing_field_name_210 {
1574 unsigned int const i_nlink ;
1575 unsigned int __i_nlink ;
1576};
1577#line 761 "include/linux/fs.h"
1578union __anonunion____missing_field_name_211 {
1579 struct list_head i_dentry ;
1580 struct rcu_head i_rcu ;
1581};
1582#line 761
1583struct file_operations;
1584#line 761
1585struct file_lock;
1586#line 761
1587struct cdev;
1588#line 761 "include/linux/fs.h"
1589union __anonunion____missing_field_name_212 {
1590 struct pipe_inode_info *i_pipe ;
1591 struct block_device *i_bdev ;
1592 struct cdev *i_cdev ;
1593};
1594#line 761 "include/linux/fs.h"
1595struct inode {
1596 umode_t i_mode ;
1597 unsigned short i_opflags ;
1598 uid_t i_uid ;
1599 gid_t i_gid ;
1600 unsigned int i_flags ;
1601 struct posix_acl *i_acl ;
1602 struct posix_acl *i_default_acl ;
1603 struct inode_operations const *i_op ;
1604 struct super_block *i_sb ;
1605 struct address_space *i_mapping ;
1606 void *i_security ;
1607 unsigned long i_ino ;
1608 union __anonunion____missing_field_name_210 __annonCompField33 ;
1609 dev_t i_rdev ;
1610 struct timespec i_atime ;
1611 struct timespec i_mtime ;
1612 struct timespec i_ctime ;
1613 spinlock_t i_lock ;
1614 unsigned short i_bytes ;
1615 blkcnt_t i_blocks ;
1616 loff_t i_size ;
1617 unsigned long i_state ;
1618 struct mutex i_mutex ;
1619 unsigned long dirtied_when ;
1620 struct hlist_node i_hash ;
1621 struct list_head i_wb_list ;
1622 struct list_head i_lru ;
1623 struct list_head i_sb_list ;
1624 union __anonunion____missing_field_name_211 __annonCompField34 ;
1625 atomic_t i_count ;
1626 unsigned int i_blkbits ;
1627 u64 i_version ;
1628 atomic_t i_dio_count ;
1629 atomic_t i_writecount ;
1630 struct file_operations const *i_fop ;
1631 struct file_lock *i_flock ;
1632 struct address_space i_data ;
1633 struct dquot *i_dquot[2] ;
1634 struct list_head i_devices ;
1635 union __anonunion____missing_field_name_212 __annonCompField35 ;
1636 __u32 i_generation ;
1637 __u32 i_fsnotify_mask ;
1638 struct hlist_head i_fsnotify_marks ;
1639 atomic_t i_readcount ;
1640 void *i_private ;
1641};
1642#line 942 "include/linux/fs.h"
1643struct fown_struct {
1644 rwlock_t lock ;
1645 struct pid *pid ;
1646 enum pid_type pid_type ;
1647 uid_t uid ;
1648 uid_t euid ;
1649 int signum ;
1650};
1651#line 953 "include/linux/fs.h"
1652struct file_ra_state {
1653 unsigned long start ;
1654 unsigned int size ;
1655 unsigned int async_size ;
1656 unsigned int ra_pages ;
1657 unsigned int mmap_miss ;
1658 loff_t prev_pos ;
1659};
1660#line 976 "include/linux/fs.h"
1661union __anonunion_f_u_213 {
1662 struct list_head fu_list ;
1663 struct rcu_head fu_rcuhead ;
1664};
1665#line 976 "include/linux/fs.h"
1666struct file {
1667 union __anonunion_f_u_213 f_u ;
1668 struct path f_path ;
1669 struct file_operations const *f_op ;
1670 spinlock_t f_lock ;
1671 int f_sb_list_cpu ;
1672 atomic_long_t f_count ;
1673 unsigned int f_flags ;
1674 fmode_t f_mode ;
1675 loff_t f_pos ;
1676 struct fown_struct f_owner ;
1677 struct cred const *f_cred ;
1678 struct file_ra_state f_ra ;
1679 u64 f_version ;
1680 void *f_security ;
1681 void *private_data ;
1682 struct list_head f_ep_links ;
1683 struct list_head f_tfile_llink ;
1684 struct address_space *f_mapping ;
1685 unsigned long f_mnt_write_state ;
1686};
1687#line 1111
1688struct files_struct;
1689#line 1111 "include/linux/fs.h"
1690typedef struct files_struct *fl_owner_t;
1691#line 1113 "include/linux/fs.h"
1692struct file_lock_operations {
1693 void (*fl_copy_lock)(struct file_lock * , struct file_lock * ) ;
1694 void (*fl_release_private)(struct file_lock * ) ;
1695};
1696#line 1118 "include/linux/fs.h"
1697struct lock_manager_operations {
1698 int (*lm_compare_owner)(struct file_lock * , struct file_lock * ) ;
1699 void (*lm_notify)(struct file_lock * ) ;
1700 int (*lm_grant)(struct file_lock * , struct file_lock * , int ) ;
1701 void (*lm_release_private)(struct file_lock * ) ;
1702 void (*lm_break)(struct file_lock * ) ;
1703 int (*lm_change)(struct file_lock ** , int ) ;
1704};
1705#line 4 "include/linux/nfs_fs_i.h"
1706struct nlm_lockowner;
1707#line 9 "include/linux/nfs_fs_i.h"
1708struct nfs_lock_info {
1709 u32 state ;
1710 struct nlm_lockowner *owner ;
1711 struct list_head list ;
1712};
1713#line 15
1714struct nfs4_lock_state;
1715#line 16 "include/linux/nfs_fs_i.h"
1716struct nfs4_lock_info {
1717 struct nfs4_lock_state *owner ;
1718};
1719#line 1138 "include/linux/fs.h"
1720struct fasync_struct;
1721#line 1138 "include/linux/fs.h"
1722struct __anonstruct_afs_215 {
1723 struct list_head link ;
1724 int state ;
1725};
1726#line 1138 "include/linux/fs.h"
1727union __anonunion_fl_u_214 {
1728 struct nfs_lock_info nfs_fl ;
1729 struct nfs4_lock_info nfs4_fl ;
1730 struct __anonstruct_afs_215 afs ;
1731};
1732#line 1138 "include/linux/fs.h"
1733struct file_lock {
1734 struct file_lock *fl_next ;
1735 struct list_head fl_link ;
1736 struct list_head fl_block ;
1737 fl_owner_t fl_owner ;
1738 unsigned int fl_flags ;
1739 unsigned char fl_type ;
1740 unsigned int fl_pid ;
1741 struct pid *fl_nspid ;
1742 wait_queue_head_t fl_wait ;
1743 struct file *fl_file ;
1744 loff_t fl_start ;
1745 loff_t fl_end ;
1746 struct fasync_struct *fl_fasync ;
1747 unsigned long fl_break_time ;
1748 unsigned long fl_downgrade_time ;
1749 struct file_lock_operations const *fl_ops ;
1750 struct lock_manager_operations const *fl_lmops ;
1751 union __anonunion_fl_u_214 fl_u ;
1752};
1753#line 1378 "include/linux/fs.h"
1754struct fasync_struct {
1755 spinlock_t fa_lock ;
1756 int magic ;
1757 int fa_fd ;
1758 struct fasync_struct *fa_next ;
1759 struct file *fa_file ;
1760 struct rcu_head fa_rcu ;
1761};
1762#line 1418
1763struct file_system_type;
1764#line 1418
1765struct super_operations;
1766#line 1418
1767struct xattr_handler;
1768#line 1418
1769struct mtd_info;
1770#line 1418 "include/linux/fs.h"
1771struct super_block {
1772 struct list_head s_list ;
1773 dev_t s_dev ;
1774 unsigned char s_dirt ;
1775 unsigned char s_blocksize_bits ;
1776 unsigned long s_blocksize ;
1777 loff_t s_maxbytes ;
1778 struct file_system_type *s_type ;
1779 struct super_operations const *s_op ;
1780 struct dquot_operations const *dq_op ;
1781 struct quotactl_ops const *s_qcop ;
1782 struct export_operations const *s_export_op ;
1783 unsigned long s_flags ;
1784 unsigned long s_magic ;
1785 struct dentry *s_root ;
1786 struct rw_semaphore s_umount ;
1787 struct mutex s_lock ;
1788 int s_count ;
1789 atomic_t s_active ;
1790 void *s_security ;
1791 struct xattr_handler const **s_xattr ;
1792 struct list_head s_inodes ;
1793 struct hlist_bl_head s_anon ;
1794 struct list_head *s_files ;
1795 struct list_head s_mounts ;
1796 struct list_head s_dentry_lru ;
1797 int s_nr_dentry_unused ;
1798 spinlock_t s_inode_lru_lock __attribute__((__aligned__((1) << (6) ))) ;
1799 struct list_head s_inode_lru ;
1800 int s_nr_inodes_unused ;
1801 struct block_device *s_bdev ;
1802 struct backing_dev_info *s_bdi ;
1803 struct mtd_info *s_mtd ;
1804 struct hlist_node s_instances ;
1805 struct quota_info s_dquot ;
1806 int s_frozen ;
1807 wait_queue_head_t s_wait_unfrozen ;
1808 char s_id[32] ;
1809 u8 s_uuid[16] ;
1810 void *s_fs_info ;
1811 unsigned int s_max_links ;
1812 fmode_t s_mode ;
1813 u32 s_time_gran ;
1814 struct mutex s_vfs_rename_mutex ;
1815 char *s_subtype ;
1816 char *s_options ;
1817 struct dentry_operations const *s_d_op ;
1818 int cleancache_poolid ;
1819 struct shrinker s_shrink ;
1820 atomic_long_t s_remove_count ;
1821 int s_readonly_remount ;
1822};
1823#line 1567 "include/linux/fs.h"
1824struct fiemap_extent_info {
1825 unsigned int fi_flags ;
1826 unsigned int fi_extents_mapped ;
1827 unsigned int fi_extents_max ;
1828 struct fiemap_extent *fi_extents_start ;
1829};
1830#line 1601
1831struct block_device_operations;
1832#line 1609 "include/linux/fs.h"
1833struct file_operations {
1834 struct module *owner ;
1835 loff_t (*llseek)(struct file * , loff_t , int ) ;
1836 ssize_t (*read)(struct file * , char * , size_t , loff_t * ) ;
1837 ssize_t (*write)(struct file * , char const * , size_t , loff_t * ) ;
1838 ssize_t (*aio_read)(struct kiocb * , struct iovec const * , unsigned long ,
1839 loff_t ) ;
1840 ssize_t (*aio_write)(struct kiocb * , struct iovec const * , unsigned long ,
1841 loff_t ) ;
1842 int (*readdir)(struct file * , void * , int (*)(void * , char const * , int ,
1843 loff_t , u64 , unsigned int ) ) ;
1844 unsigned int (*poll)(struct file * , struct poll_table_struct * ) ;
1845 long (*unlocked_ioctl)(struct file * , unsigned int , unsigned long ) ;
1846 long (*compat_ioctl)(struct file * , unsigned int , unsigned long ) ;
1847 int (*mmap)(struct file * , struct vm_area_struct * ) ;
1848 int (*open)(struct inode * , struct file * ) ;
1849 int (*flush)(struct file * , fl_owner_t id ) ;
1850 int (*release)(struct inode * , struct file * ) ;
1851 int (*fsync)(struct file * , loff_t , loff_t , int datasync ) ;
1852 int (*aio_fsync)(struct kiocb * , int datasync ) ;
1853 int (*fasync)(int , struct file * , int ) ;
1854 int (*lock)(struct file * , int , struct file_lock * ) ;
1855 ssize_t (*sendpage)(struct file * , struct page * , int , size_t , loff_t * ,
1856 int ) ;
1857 unsigned long (*get_unmapped_area)(struct file * , unsigned long , unsigned long ,
1858 unsigned long , unsigned long ) ;
1859 int (*check_flags)(int ) ;
1860 int (*flock)(struct file * , int , struct file_lock * ) ;
1861 ssize_t (*splice_write)(struct pipe_inode_info * , struct file * , loff_t * , size_t ,
1862 unsigned int ) ;
1863 ssize_t (*splice_read)(struct file * , loff_t * , struct pipe_inode_info * , size_t ,
1864 unsigned int ) ;
1865 int (*setlease)(struct file * , long , struct file_lock ** ) ;
1866 long (*fallocate)(struct file *file , int mode , loff_t offset , loff_t len ) ;
1867};
1868#line 1639 "include/linux/fs.h"
1869struct inode_operations {
1870 struct dentry *(*lookup)(struct inode * , struct dentry * , struct nameidata * ) ;
1871 void *(*follow_link)(struct dentry * , struct nameidata * ) ;
1872 int (*permission)(struct inode * , int ) ;
1873 struct posix_acl *(*get_acl)(struct inode * , int ) ;
1874 int (*readlink)(struct dentry * , char * , int ) ;
1875 void (*put_link)(struct dentry * , struct nameidata * , void * ) ;
1876 int (*create)(struct inode * , struct dentry * , umode_t , struct nameidata * ) ;
1877 int (*link)(struct dentry * , struct inode * , struct dentry * ) ;
1878 int (*unlink)(struct inode * , struct dentry * ) ;
1879 int (*symlink)(struct inode * , struct dentry * , char const * ) ;
1880 int (*mkdir)(struct inode * , struct dentry * , umode_t ) ;
1881 int (*rmdir)(struct inode * , struct dentry * ) ;
1882 int (*mknod)(struct inode * , struct dentry * , umode_t , dev_t ) ;
1883 int (*rename)(struct inode * , struct dentry * , struct inode * , struct dentry * ) ;
1884 void (*truncate)(struct inode * ) ;
1885 int (*setattr)(struct dentry * , struct iattr * ) ;
1886 int (*getattr)(struct vfsmount *mnt , struct dentry * , struct kstat * ) ;
1887 int (*setxattr)(struct dentry * , char const * , void const * , size_t , int ) ;
1888 ssize_t (*getxattr)(struct dentry * , char const * , void * , size_t ) ;
1889 ssize_t (*listxattr)(struct dentry * , char * , size_t ) ;
1890 int (*removexattr)(struct dentry * , char const * ) ;
1891 void (*truncate_range)(struct inode * , loff_t , loff_t ) ;
1892 int (*fiemap)(struct inode * , struct fiemap_extent_info * , u64 start , u64 len ) ;
1893} __attribute__((__aligned__((1) << (6) ))) ;
1894#line 1684 "include/linux/fs.h"
1895struct super_operations {
1896 struct inode *(*alloc_inode)(struct super_block *sb ) ;
1897 void (*destroy_inode)(struct inode * ) ;
1898 void (*dirty_inode)(struct inode * , int flags ) ;
1899 int (*write_inode)(struct inode * , struct writeback_control *wbc ) ;
1900 int (*drop_inode)(struct inode * ) ;
1901 void (*evict_inode)(struct inode * ) ;
1902 void (*put_super)(struct super_block * ) ;
1903 void (*write_super)(struct super_block * ) ;
1904 int (*sync_fs)(struct super_block *sb , int wait ) ;
1905 int (*freeze_fs)(struct super_block * ) ;
1906 int (*unfreeze_fs)(struct super_block * ) ;
1907 int (*statfs)(struct dentry * , struct kstatfs * ) ;
1908 int (*remount_fs)(struct super_block * , int * , char * ) ;
1909 void (*umount_begin)(struct super_block * ) ;
1910 int (*show_options)(struct seq_file * , struct dentry * ) ;
1911 int (*show_devname)(struct seq_file * , struct dentry * ) ;
1912 int (*show_path)(struct seq_file * , struct dentry * ) ;
1913 int (*show_stats)(struct seq_file * , struct dentry * ) ;
1914 ssize_t (*quota_read)(struct super_block * , int , char * , size_t , loff_t ) ;
1915 ssize_t (*quota_write)(struct super_block * , int , char const * , size_t ,
1916 loff_t ) ;
1917 int (*bdev_try_to_free_page)(struct super_block * , struct page * , gfp_t ) ;
1918 int (*nr_cached_objects)(struct super_block * ) ;
1919 void (*free_cached_objects)(struct super_block * , int ) ;
1920};
1921#line 1835 "include/linux/fs.h"
1922struct file_system_type {
1923 char const *name ;
1924 int fs_flags ;
1925 struct dentry *(*mount)(struct file_system_type * , int , char const * , void * ) ;
1926 void (*kill_sb)(struct super_block * ) ;
1927 struct module *owner ;
1928 struct file_system_type *next ;
1929 struct hlist_head fs_supers ;
1930 struct lock_class_key s_lock_key ;
1931 struct lock_class_key s_umount_key ;
1932 struct lock_class_key s_vfs_rename_key ;
1933 struct lock_class_key i_lock_key ;
1934 struct lock_class_key i_mutex_key ;
1935 struct lock_class_key i_mutex_dir_key ;
1936};
1937#line 40 "include/linux/mm_types.h"
1938union __anonunion____missing_field_name_219 {
1939 unsigned long index ;
1940 void *freelist ;
1941};
1942#line 40 "include/linux/mm_types.h"
1943struct __anonstruct____missing_field_name_223 {
1944 unsigned int inuse : 16 ;
1945 unsigned int objects : 15 ;
1946 unsigned int frozen : 1 ;
1947};
1948#line 40 "include/linux/mm_types.h"
1949union __anonunion____missing_field_name_222 {
1950 atomic_t _mapcount ;
1951 struct __anonstruct____missing_field_name_223 __annonCompField37 ;
1952};
1953#line 40 "include/linux/mm_types.h"
1954struct __anonstruct____missing_field_name_221 {
1955 union __anonunion____missing_field_name_222 __annonCompField38 ;
1956 atomic_t _count ;
1957};
1958#line 40 "include/linux/mm_types.h"
1959union __anonunion____missing_field_name_220 {
1960 unsigned long counters ;
1961 struct __anonstruct____missing_field_name_221 __annonCompField39 ;
1962};
1963#line 40 "include/linux/mm_types.h"
1964struct __anonstruct____missing_field_name_218 {
1965 union __anonunion____missing_field_name_219 __annonCompField36 ;
1966 union __anonunion____missing_field_name_220 __annonCompField40 ;
1967};
1968#line 40 "include/linux/mm_types.h"
1969struct __anonstruct____missing_field_name_225 {
1970 struct page *next ;
1971 int pages ;
1972 int pobjects ;
1973};
1974#line 40 "include/linux/mm_types.h"
1975union __anonunion____missing_field_name_224 {
1976 struct list_head lru ;
1977 struct __anonstruct____missing_field_name_225 __annonCompField42 ;
1978};
1979#line 40 "include/linux/mm_types.h"
1980union __anonunion____missing_field_name_226 {
1981 unsigned long private ;
1982 struct kmem_cache *slab ;
1983 struct page *first_page ;
1984};
1985#line 40 "include/linux/mm_types.h"
1986struct page {
1987 unsigned long flags ;
1988 struct address_space *mapping ;
1989 struct __anonstruct____missing_field_name_218 __annonCompField41 ;
1990 union __anonunion____missing_field_name_224 __annonCompField43 ;
1991 union __anonunion____missing_field_name_226 __annonCompField44 ;
1992 unsigned long debug_flags ;
1993} __attribute__((__aligned__((2) * (sizeof(unsigned long )) ))) ;
1994#line 200 "include/linux/mm_types.h"
1995struct __anonstruct_vm_set_228 {
1996 struct list_head list ;
1997 void *parent ;
1998 struct vm_area_struct *head ;
1999};
2000#line 200 "include/linux/mm_types.h"
2001union __anonunion_shared_227 {
2002 struct __anonstruct_vm_set_228 vm_set ;
2003 struct raw_prio_tree_node prio_tree_node ;
2004};
2005#line 200
2006struct anon_vma;
2007#line 200
2008struct vm_operations_struct;
2009#line 200
2010struct mempolicy;
2011#line 200 "include/linux/mm_types.h"
2012struct vm_area_struct {
2013 struct mm_struct *vm_mm ;
2014 unsigned long vm_start ;
2015 unsigned long vm_end ;
2016 struct vm_area_struct *vm_next ;
2017 struct vm_area_struct *vm_prev ;
2018 pgprot_t vm_page_prot ;
2019 unsigned long vm_flags ;
2020 struct rb_node vm_rb ;
2021 union __anonunion_shared_227 shared ;
2022 struct list_head anon_vma_chain ;
2023 struct anon_vma *anon_vma ;
2024 struct vm_operations_struct const *vm_ops ;
2025 unsigned long vm_pgoff ;
2026 struct file *vm_file ;
2027 void *vm_private_data ;
2028 struct mempolicy *vm_policy ;
2029};
2030#line 257 "include/linux/mm_types.h"
2031struct core_thread {
2032 struct task_struct *task ;
2033 struct core_thread *next ;
2034};
2035#line 262 "include/linux/mm_types.h"
2036struct core_state {
2037 atomic_t nr_threads ;
2038 struct core_thread dumper ;
2039 struct completion startup ;
2040};
2041#line 284 "include/linux/mm_types.h"
2042struct mm_rss_stat {
2043 atomic_long_t count[3] ;
2044};
2045#line 288
2046struct linux_binfmt;
2047#line 288
2048struct mmu_notifier_mm;
2049#line 288 "include/linux/mm_types.h"
2050struct mm_struct {
2051 struct vm_area_struct *mmap ;
2052 struct rb_root mm_rb ;
2053 struct vm_area_struct *mmap_cache ;
2054 unsigned long (*get_unmapped_area)(struct file *filp , unsigned long addr , unsigned long len ,
2055 unsigned long pgoff , unsigned long flags ) ;
2056 void (*unmap_area)(struct mm_struct *mm , unsigned long addr ) ;
2057 unsigned long mmap_base ;
2058 unsigned long task_size ;
2059 unsigned long cached_hole_size ;
2060 unsigned long free_area_cache ;
2061 pgd_t *pgd ;
2062 atomic_t mm_users ;
2063 atomic_t mm_count ;
2064 int map_count ;
2065 spinlock_t page_table_lock ;
2066 struct rw_semaphore mmap_sem ;
2067 struct list_head mmlist ;
2068 unsigned long hiwater_rss ;
2069 unsigned long hiwater_vm ;
2070 unsigned long total_vm ;
2071 unsigned long locked_vm ;
2072 unsigned long pinned_vm ;
2073 unsigned long shared_vm ;
2074 unsigned long exec_vm ;
2075 unsigned long stack_vm ;
2076 unsigned long reserved_vm ;
2077 unsigned long def_flags ;
2078 unsigned long nr_ptes ;
2079 unsigned long start_code ;
2080 unsigned long end_code ;
2081 unsigned long start_data ;
2082 unsigned long end_data ;
2083 unsigned long start_brk ;
2084 unsigned long brk ;
2085 unsigned long start_stack ;
2086 unsigned long arg_start ;
2087 unsigned long arg_end ;
2088 unsigned long env_start ;
2089 unsigned long env_end ;
2090 unsigned long saved_auxv[44] ;
2091 struct mm_rss_stat rss_stat ;
2092 struct linux_binfmt *binfmt ;
2093 cpumask_var_t cpu_vm_mask_var ;
2094 mm_context_t context ;
2095 unsigned int faultstamp ;
2096 unsigned int token_priority ;
2097 unsigned int last_interval ;
2098 unsigned long flags ;
2099 struct core_state *core_state ;
2100 spinlock_t ioctx_lock ;
2101 struct hlist_head ioctx_list ;
2102 struct task_struct *owner ;
2103 struct file *exe_file ;
2104 unsigned long num_exe_file_vmas ;
2105 struct mmu_notifier_mm *mmu_notifier_mm ;
2106 pgtable_t pmd_huge_pte ;
2107 struct cpumask cpumask_allocation ;
2108};
2109#line 25 "include/linux/mm.h"
2110struct user_struct;
2111#line 188 "include/linux/mm.h"
2112struct vm_fault {
2113 unsigned int flags ;
2114 unsigned long pgoff ;
2115 void *virtual_address ;
2116 struct page *page ;
2117};
2118#line 205 "include/linux/mm.h"
2119struct vm_operations_struct {
2120 void (*open)(struct vm_area_struct *area ) ;
2121 void (*close)(struct vm_area_struct *area ) ;
2122 int (*fault)(struct vm_area_struct *vma , struct vm_fault *vmf ) ;
2123 int (*page_mkwrite)(struct vm_area_struct *vma , struct vm_fault *vmf ) ;
2124 int (*access)(struct vm_area_struct *vma , unsigned long addr , void *buf , int len ,
2125 int write ) ;
2126 int (*set_policy)(struct vm_area_struct *vma , struct mempolicy *new ) ;
2127 struct mempolicy *(*get_policy)(struct vm_area_struct *vma , unsigned long addr ) ;
2128 int (*migrate)(struct vm_area_struct *vma , nodemask_t const *from , nodemask_t const *to ,
2129 unsigned long flags ) ;
2130};
2131#line 94 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/uaccess.h"
2132struct exception_table_entry {
2133 unsigned long insn ;
2134 unsigned long fixup ;
2135};
2136#line 13 "include/linux/irqdesc.h"
2137struct timer_rand_state;
2138#line 11 "include/linux/mempool.h"
2139typedef void *mempool_alloc_t(gfp_t gfp_mask , void *pool_data );
2140#line 12 "include/linux/mempool.h"
2141typedef void mempool_free_t(void *element , void *pool_data );
2142#line 14 "include/linux/mempool.h"
2143struct mempool_s {
2144 spinlock_t lock ;
2145 int min_nr ;
2146 int curr_nr ;
2147 void **elements ;
2148 void *pool_data ;
2149 mempool_alloc_t *alloc ;
2150 mempool_free_t *free ;
2151 wait_queue_head_t wait ;
2152};
2153#line 14 "include/linux/mempool.h"
2154typedef struct mempool_s mempool_t;
2155#line 7 "include/asm-generic/cputime.h"
2156typedef unsigned long cputime_t;
2157#line 101 "include/linux/sem.h"
2158struct sem_undo_list;
2159#line 101 "include/linux/sem.h"
2160struct sysv_sem {
2161 struct sem_undo_list *undo_list ;
2162};
2163#line 10 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/signal.h"
2164struct siginfo;
2165#line 30 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/signal.h"
2166struct __anonstruct_sigset_t_235 {
2167 unsigned long sig[1] ;
2168};
2169#line 30 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/signal.h"
2170typedef struct __anonstruct_sigset_t_235 sigset_t;
2171#line 17 "include/asm-generic/signal-defs.h"
2172typedef void __signalfn_t(int );
2173#line 18 "include/asm-generic/signal-defs.h"
2174typedef __signalfn_t *__sighandler_t;
2175#line 20 "include/asm-generic/signal-defs.h"
2176typedef void __restorefn_t(void);
2177#line 21 "include/asm-generic/signal-defs.h"
2178typedef __restorefn_t *__sigrestore_t;
2179#line 167 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/signal.h"
2180struct sigaction {
2181 __sighandler_t sa_handler ;
2182 unsigned long sa_flags ;
2183 __sigrestore_t sa_restorer ;
2184 sigset_t sa_mask ;
2185};
2186#line 174 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/signal.h"
2187struct k_sigaction {
2188 struct sigaction sa ;
2189};
2190#line 7 "include/asm-generic/siginfo.h"
2191union sigval {
2192 int sival_int ;
2193 void *sival_ptr ;
2194};
2195#line 7 "include/asm-generic/siginfo.h"
2196typedef union sigval sigval_t;
2197#line 48 "include/asm-generic/siginfo.h"
2198struct __anonstruct__kill_237 {
2199 __kernel_pid_t _pid ;
2200 __kernel_uid32_t _uid ;
2201};
2202#line 48 "include/asm-generic/siginfo.h"
2203struct __anonstruct__timer_238 {
2204 __kernel_timer_t _tid ;
2205 int _overrun ;
2206 char _pad[sizeof(__kernel_uid32_t ) - sizeof(int )] ;
2207 sigval_t _sigval ;
2208 int _sys_private ;
2209};
2210#line 48 "include/asm-generic/siginfo.h"
2211struct __anonstruct__rt_239 {
2212 __kernel_pid_t _pid ;
2213 __kernel_uid32_t _uid ;
2214 sigval_t _sigval ;
2215};
2216#line 48 "include/asm-generic/siginfo.h"
2217struct __anonstruct__sigchld_240 {
2218 __kernel_pid_t _pid ;
2219 __kernel_uid32_t _uid ;
2220 int _status ;
2221 __kernel_clock_t _utime ;
2222 __kernel_clock_t _stime ;
2223};
2224#line 48 "include/asm-generic/siginfo.h"
2225struct __anonstruct__sigfault_241 {
2226 void *_addr ;
2227 short _addr_lsb ;
2228};
2229#line 48 "include/asm-generic/siginfo.h"
2230struct __anonstruct__sigpoll_242 {
2231 long _band ;
2232 int _fd ;
2233};
2234#line 48 "include/asm-generic/siginfo.h"
2235union __anonunion__sifields_236 {
2236 int _pad[(128UL - 4UL * sizeof(int )) / sizeof(int )] ;
2237 struct __anonstruct__kill_237 _kill ;
2238 struct __anonstruct__timer_238 _timer ;
2239 struct __anonstruct__rt_239 _rt ;
2240 struct __anonstruct__sigchld_240 _sigchld ;
2241 struct __anonstruct__sigfault_241 _sigfault ;
2242 struct __anonstruct__sigpoll_242 _sigpoll ;
2243};
2244#line 48 "include/asm-generic/siginfo.h"
2245struct siginfo {
2246 int si_signo ;
2247 int si_errno ;
2248 int si_code ;
2249 union __anonunion__sifields_236 _sifields ;
2250};
2251#line 48 "include/asm-generic/siginfo.h"
2252typedef struct siginfo siginfo_t;
2253#line 28 "include/linux/signal.h"
2254struct sigpending {
2255 struct list_head list ;
2256 sigset_t signal ;
2257};
2258#line 50 "include/linux/proportions.h"
2259struct prop_local_percpu {
2260 struct percpu_counter events ;
2261 int shift ;
2262 unsigned long period ;
2263 raw_spinlock_t lock ;
2264};
2265#line 10 "include/linux/seccomp.h"
2266struct __anonstruct_seccomp_t_245 {
2267 int mode ;
2268};
2269#line 10 "include/linux/seccomp.h"
2270typedef struct __anonstruct_seccomp_t_245 seccomp_t;
2271#line 81 "include/linux/plist.h"
2272struct plist_head {
2273 struct list_head node_list ;
2274};
2275#line 85 "include/linux/plist.h"
2276struct plist_node {
2277 int prio ;
2278 struct list_head prio_list ;
2279 struct list_head node_list ;
2280};
2281#line 40 "include/linux/rtmutex.h"
2282struct rt_mutex_waiter;
2283#line 42 "include/linux/resource.h"
2284struct rlimit {
2285 unsigned long rlim_cur ;
2286 unsigned long rlim_max ;
2287};
2288#line 8 "include/linux/timerqueue.h"
2289struct timerqueue_node {
2290 struct rb_node node ;
2291 ktime_t expires ;
2292};
2293#line 13 "include/linux/timerqueue.h"
2294struct timerqueue_head {
2295 struct rb_root head ;
2296 struct timerqueue_node *next ;
2297};
2298#line 27 "include/linux/hrtimer.h"
2299struct hrtimer_clock_base;
2300#line 28
2301struct hrtimer_cpu_base;
2302#line 44
2303enum hrtimer_restart {
2304 HRTIMER_NORESTART = 0,
2305 HRTIMER_RESTART = 1
2306} ;
2307#line 108 "include/linux/hrtimer.h"
2308struct hrtimer {
2309 struct timerqueue_node node ;
2310 ktime_t _softexpires ;
2311 enum hrtimer_restart (*function)(struct hrtimer * ) ;
2312 struct hrtimer_clock_base *base ;
2313 unsigned long state ;
2314 int start_pid ;
2315 void *start_site ;
2316 char start_comm[16] ;
2317};
2318#line 145 "include/linux/hrtimer.h"
2319struct hrtimer_clock_base {
2320 struct hrtimer_cpu_base *cpu_base ;
2321 int index ;
2322 clockid_t clockid ;
2323 struct timerqueue_head active ;
2324 ktime_t resolution ;
2325 ktime_t (*get_time)(void) ;
2326 ktime_t softirq_time ;
2327 ktime_t offset ;
2328};
2329#line 178 "include/linux/hrtimer.h"
2330struct hrtimer_cpu_base {
2331 raw_spinlock_t lock ;
2332 unsigned long active_bases ;
2333 ktime_t expires_next ;
2334 int hres_active ;
2335 int hang_detected ;
2336 unsigned long nr_events ;
2337 unsigned long nr_retries ;
2338 unsigned long nr_hangs ;
2339 ktime_t max_hang_time ;
2340 struct hrtimer_clock_base clock_base[3] ;
2341};
2342#line 11 "include/linux/task_io_accounting.h"
2343struct task_io_accounting {
2344 u64 rchar ;
2345 u64 wchar ;
2346 u64 syscr ;
2347 u64 syscw ;
2348 u64 read_bytes ;
2349 u64 write_bytes ;
2350 u64 cancelled_write_bytes ;
2351};
2352#line 20 "include/linux/latencytop.h"
2353struct latency_record {
2354 unsigned long backtrace[12] ;
2355 unsigned int count ;
2356 unsigned long time ;
2357 unsigned long max ;
2358};
2359#line 29 "include/linux/key.h"
2360typedef int32_t key_serial_t;
2361#line 32 "include/linux/key.h"
2362typedef uint32_t key_perm_t;
2363#line 34
2364struct key;
2365#line 76
2366struct signal_struct;
2367#line 79
2368struct key_type;
2369#line 81
2370struct keyring_list;
2371#line 124
2372struct key_user;
2373#line 124 "include/linux/key.h"
2374union __anonunion____missing_field_name_246 {
2375 time_t expiry ;
2376 time_t revoked_at ;
2377};
2378#line 124 "include/linux/key.h"
2379union __anonunion_type_data_247 {
2380 struct list_head link ;
2381 unsigned long x[2] ;
2382 void *p[2] ;
2383 int reject_error ;
2384};
2385#line 124 "include/linux/key.h"
2386union __anonunion_payload_248 {
2387 unsigned long value ;
2388 void *rcudata ;
2389 void *data ;
2390 struct keyring_list *subscriptions ;
2391};
2392#line 124 "include/linux/key.h"
2393struct key {
2394 atomic_t usage ;
2395 key_serial_t serial ;
2396 struct rb_node serial_node ;
2397 struct key_type *type ;
2398 struct rw_semaphore sem ;
2399 struct key_user *user ;
2400 void *security ;
2401 union __anonunion____missing_field_name_246 __annonCompField45 ;
2402 uid_t uid ;
2403 gid_t gid ;
2404 key_perm_t perm ;
2405 unsigned short quotalen ;
2406 unsigned short datalen ;
2407 unsigned long flags ;
2408 char *description ;
2409 union __anonunion_type_data_247 type_data ;
2410 union __anonunion_payload_248 payload ;
2411};
2412#line 18 "include/linux/selinux.h"
2413struct audit_context;
2414#line 31 "include/linux/cred.h"
2415struct group_info {
2416 atomic_t usage ;
2417 int ngroups ;
2418 int nblocks ;
2419 gid_t small_block[32] ;
2420 gid_t *blocks[0] ;
2421};
2422#line 83 "include/linux/cred.h"
2423struct thread_group_cred {
2424 atomic_t usage ;
2425 pid_t tgid ;
2426 spinlock_t lock ;
2427 struct key *session_keyring ;
2428 struct key *process_keyring ;
2429 struct rcu_head rcu ;
2430};
2431#line 116 "include/linux/cred.h"
2432struct cred {
2433 atomic_t usage ;
2434 atomic_t subscribers ;
2435 void *put_addr ;
2436 unsigned int magic ;
2437 uid_t uid ;
2438 gid_t gid ;
2439 uid_t suid ;
2440 gid_t sgid ;
2441 uid_t euid ;
2442 gid_t egid ;
2443 uid_t fsuid ;
2444 gid_t fsgid ;
2445 unsigned int securebits ;
2446 kernel_cap_t cap_inheritable ;
2447 kernel_cap_t cap_permitted ;
2448 kernel_cap_t cap_effective ;
2449 kernel_cap_t cap_bset ;
2450 unsigned char jit_keyring ;
2451 struct key *thread_keyring ;
2452 struct key *request_key_auth ;
2453 struct thread_group_cred *tgcred ;
2454 void *security ;
2455 struct user_struct *user ;
2456 struct user_namespace *user_ns ;
2457 struct group_info *group_info ;
2458 struct rcu_head rcu ;
2459};
2460#line 61 "include/linux/llist.h"
2461struct llist_node;
2462#line 65 "include/linux/llist.h"
2463struct llist_node {
2464 struct llist_node *next ;
2465};
2466#line 97 "include/linux/sched.h"
2467struct futex_pi_state;
2468#line 98
2469struct robust_list_head;
2470#line 99
2471struct bio_list;
2472#line 100
2473struct fs_struct;
2474#line 101
2475struct perf_event_context;
2476#line 102
2477struct blk_plug;
2478#line 151
2479struct cfs_rq;
2480#line 58 "include/linux/aio_abi.h"
2481struct io_event {
2482 __u64 data ;
2483 __u64 obj ;
2484 __s64 res ;
2485 __s64 res2 ;
2486};
2487#line 16 "include/linux/uio.h"
2488struct iovec {
2489 void *iov_base ;
2490 __kernel_size_t iov_len ;
2491};
2492#line 15 "include/linux/aio.h"
2493struct kioctx;
2494#line 87 "include/linux/aio.h"
2495union __anonunion_ki_obj_250 {
2496 void *user ;
2497 struct task_struct *tsk ;
2498};
2499#line 87
2500struct eventfd_ctx;
2501#line 87 "include/linux/aio.h"
2502struct kiocb {
2503 struct list_head ki_run_list ;
2504 unsigned long ki_flags ;
2505 int ki_users ;
2506 unsigned int ki_key ;
2507 struct file *ki_filp ;
2508 struct kioctx *ki_ctx ;
2509 int (*ki_cancel)(struct kiocb * , struct io_event * ) ;
2510 ssize_t (*ki_retry)(struct kiocb * ) ;
2511 void (*ki_dtor)(struct kiocb * ) ;
2512 union __anonunion_ki_obj_250 ki_obj ;
2513 __u64 ki_user_data ;
2514 loff_t ki_pos ;
2515 void *private ;
2516 unsigned short ki_opcode ;
2517 size_t ki_nbytes ;
2518 char *ki_buf ;
2519 size_t ki_left ;
2520 struct iovec ki_inline_vec ;
2521 struct iovec *ki_iovec ;
2522 unsigned long ki_nr_segs ;
2523 unsigned long ki_cur_seg ;
2524 struct list_head ki_list ;
2525 struct list_head ki_batch ;
2526 struct eventfd_ctx *ki_eventfd ;
2527};
2528#line 166 "include/linux/aio.h"
2529struct aio_ring_info {
2530 unsigned long mmap_base ;
2531 unsigned long mmap_size ;
2532 struct page **ring_pages ;
2533 spinlock_t ring_lock ;
2534 long nr_pages ;
2535 unsigned int nr ;
2536 unsigned int tail ;
2537 struct page *internal_pages[8] ;
2538};
2539#line 179 "include/linux/aio.h"
2540struct kioctx {
2541 atomic_t users ;
2542 int dead ;
2543 struct mm_struct *mm ;
2544 unsigned long user_id ;
2545 struct hlist_node list ;
2546 wait_queue_head_t wait ;
2547 spinlock_t ctx_lock ;
2548 int reqs_active ;
2549 struct list_head active_reqs ;
2550 struct list_head run_list ;
2551 unsigned int max_reqs ;
2552 struct aio_ring_info ring_info ;
2553 struct delayed_work wq ;
2554 struct rcu_head rcu_head ;
2555};
2556#line 443 "include/linux/sched.h"
2557struct sighand_struct {
2558 atomic_t count ;
2559 struct k_sigaction action[64] ;
2560 spinlock_t siglock ;
2561 wait_queue_head_t signalfd_wqh ;
2562};
2563#line 450 "include/linux/sched.h"
2564struct pacct_struct {
2565 int ac_flag ;
2566 long ac_exitcode ;
2567 unsigned long ac_mem ;
2568 cputime_t ac_utime ;
2569 cputime_t ac_stime ;
2570 unsigned long ac_minflt ;
2571 unsigned long ac_majflt ;
2572};
2573#line 458 "include/linux/sched.h"
2574struct cpu_itimer {
2575 cputime_t expires ;
2576 cputime_t incr ;
2577 u32 error ;
2578 u32 incr_error ;
2579};
2580#line 476 "include/linux/sched.h"
2581struct task_cputime {
2582 cputime_t utime ;
2583 cputime_t stime ;
2584 unsigned long long sum_exec_runtime ;
2585};
2586#line 512 "include/linux/sched.h"
2587struct thread_group_cputimer {
2588 struct task_cputime cputime ;
2589 int running ;
2590 raw_spinlock_t lock ;
2591};
2592#line 519
2593struct autogroup;
2594#line 528
2595struct tty_struct;
2596#line 528
2597struct taskstats;
2598#line 528
2599struct tty_audit_buf;
2600#line 528 "include/linux/sched.h"
2601struct signal_struct {
2602 atomic_t sigcnt ;
2603 atomic_t live ;
2604 int nr_threads ;
2605 wait_queue_head_t wait_chldexit ;
2606 struct task_struct *curr_target ;
2607 struct sigpending shared_pending ;
2608 int group_exit_code ;
2609 int notify_count ;
2610 struct task_struct *group_exit_task ;
2611 int group_stop_count ;
2612 unsigned int flags ;
2613 unsigned int is_child_subreaper : 1 ;
2614 unsigned int has_child_subreaper : 1 ;
2615 struct list_head posix_timers ;
2616 struct hrtimer real_timer ;
2617 struct pid *leader_pid ;
2618 ktime_t it_real_incr ;
2619 struct cpu_itimer it[2] ;
2620 struct thread_group_cputimer cputimer ;
2621 struct task_cputime cputime_expires ;
2622 struct list_head cpu_timers[3] ;
2623 struct pid *tty_old_pgrp ;
2624 int leader ;
2625 struct tty_struct *tty ;
2626 struct autogroup *autogroup ;
2627 cputime_t utime ;
2628 cputime_t stime ;
2629 cputime_t cutime ;
2630 cputime_t cstime ;
2631 cputime_t gtime ;
2632 cputime_t cgtime ;
2633 cputime_t prev_utime ;
2634 cputime_t prev_stime ;
2635 unsigned long nvcsw ;
2636 unsigned long nivcsw ;
2637 unsigned long cnvcsw ;
2638 unsigned long cnivcsw ;
2639 unsigned long min_flt ;
2640 unsigned long maj_flt ;
2641 unsigned long cmin_flt ;
2642 unsigned long cmaj_flt ;
2643 unsigned long inblock ;
2644 unsigned long oublock ;
2645 unsigned long cinblock ;
2646 unsigned long coublock ;
2647 unsigned long maxrss ;
2648 unsigned long cmaxrss ;
2649 struct task_io_accounting ioac ;
2650 unsigned long long sum_sched_runtime ;
2651 struct rlimit rlim[16] ;
2652 struct pacct_struct pacct ;
2653 struct taskstats *stats ;
2654 unsigned int audit_tty ;
2655 struct tty_audit_buf *tty_audit_buf ;
2656 struct rw_semaphore group_rwsem ;
2657 int oom_adj ;
2658 int oom_score_adj ;
2659 int oom_score_adj_min ;
2660 struct mutex cred_guard_mutex ;
2661};
2662#line 703 "include/linux/sched.h"
2663struct user_struct {
2664 atomic_t __count ;
2665 atomic_t processes ;
2666 atomic_t files ;
2667 atomic_t sigpending ;
2668 atomic_t inotify_watches ;
2669 atomic_t inotify_devs ;
2670 atomic_t fanotify_listeners ;
2671 atomic_long_t epoll_watches ;
2672 unsigned long mq_bytes ;
2673 unsigned long locked_shm ;
2674 struct key *uid_keyring ;
2675 struct key *session_keyring ;
2676 struct hlist_node uidhash_node ;
2677 uid_t uid ;
2678 struct user_namespace *user_ns ;
2679 atomic_long_t locked_vm ;
2680};
2681#line 748
2682struct reclaim_state;
2683#line 751 "include/linux/sched.h"
2684struct sched_info {
2685 unsigned long pcount ;
2686 unsigned long long run_delay ;
2687 unsigned long long last_arrival ;
2688 unsigned long long last_queued ;
2689};
2690#line 763 "include/linux/sched.h"
2691struct task_delay_info {
2692 spinlock_t lock ;
2693 unsigned int flags ;
2694 struct timespec blkio_start ;
2695 struct timespec blkio_end ;
2696 u64 blkio_delay ;
2697 u64 swapin_delay ;
2698 u32 blkio_count ;
2699 u32 swapin_count ;
2700 struct timespec freepages_start ;
2701 struct timespec freepages_end ;
2702 u64 freepages_delay ;
2703 u32 freepages_count ;
2704};
2705#line 1088
2706struct io_context;
2707#line 1102
2708struct rq;
2709#line 1122 "include/linux/sched.h"
2710struct sched_class {
2711 struct sched_class const *next ;
2712 void (*enqueue_task)(struct rq *rq , struct task_struct *p , int flags ) ;
2713 void (*dequeue_task)(struct rq *rq , struct task_struct *p , int flags ) ;
2714 void (*yield_task)(struct rq *rq ) ;
2715 bool (*yield_to_task)(struct rq *rq , struct task_struct *p , bool preempt ) ;
2716 void (*check_preempt_curr)(struct rq *rq , struct task_struct *p , int flags ) ;
2717 struct task_struct *(*pick_next_task)(struct rq *rq ) ;
2718 void (*put_prev_task)(struct rq *rq , struct task_struct *p ) ;
2719 int (*select_task_rq)(struct task_struct *p , int sd_flag , int flags ) ;
2720 void (*pre_schedule)(struct rq *this_rq , struct task_struct *task ) ;
2721 void (*post_schedule)(struct rq *this_rq ) ;
2722 void (*task_waking)(struct task_struct *task ) ;
2723 void (*task_woken)(struct rq *this_rq , struct task_struct *task ) ;
2724 void (*set_cpus_allowed)(struct task_struct *p , struct cpumask const *newmask ) ;
2725 void (*rq_online)(struct rq *rq ) ;
2726 void (*rq_offline)(struct rq *rq ) ;
2727 void (*set_curr_task)(struct rq *rq ) ;
2728 void (*task_tick)(struct rq *rq , struct task_struct *p , int queued ) ;
2729 void (*task_fork)(struct task_struct *p ) ;
2730 void (*switched_from)(struct rq *this_rq , struct task_struct *task ) ;
2731 void (*switched_to)(struct rq *this_rq , struct task_struct *task ) ;
2732 void (*prio_changed)(struct rq *this_rq , struct task_struct *task , int oldprio ) ;
2733 unsigned int (*get_rr_interval)(struct rq *rq , struct task_struct *task ) ;
2734 void (*task_move_group)(struct task_struct *p , int on_rq ) ;
2735};
2736#line 1167 "include/linux/sched.h"
2737struct load_weight {
2738 unsigned long weight ;
2739 unsigned long inv_weight ;
2740};
2741#line 1172 "include/linux/sched.h"
2742struct sched_statistics {
2743 u64 wait_start ;
2744 u64 wait_max ;
2745 u64 wait_count ;
2746 u64 wait_sum ;
2747 u64 iowait_count ;
2748 u64 iowait_sum ;
2749 u64 sleep_start ;
2750 u64 sleep_max ;
2751 s64 sum_sleep_runtime ;
2752 u64 block_start ;
2753 u64 block_max ;
2754 u64 exec_max ;
2755 u64 slice_max ;
2756 u64 nr_migrations_cold ;
2757 u64 nr_failed_migrations_affine ;
2758 u64 nr_failed_migrations_running ;
2759 u64 nr_failed_migrations_hot ;
2760 u64 nr_forced_migrations ;
2761 u64 nr_wakeups ;
2762 u64 nr_wakeups_sync ;
2763 u64 nr_wakeups_migrate ;
2764 u64 nr_wakeups_local ;
2765 u64 nr_wakeups_remote ;
2766 u64 nr_wakeups_affine ;
2767 u64 nr_wakeups_affine_attempts ;
2768 u64 nr_wakeups_passive ;
2769 u64 nr_wakeups_idle ;
2770};
2771#line 1207 "include/linux/sched.h"
2772struct sched_entity {
2773 struct load_weight load ;
2774 struct rb_node run_node ;
2775 struct list_head group_node ;
2776 unsigned int on_rq ;
2777 u64 exec_start ;
2778 u64 sum_exec_runtime ;
2779 u64 vruntime ;
2780 u64 prev_sum_exec_runtime ;
2781 u64 nr_migrations ;
2782 struct sched_statistics statistics ;
2783 struct sched_entity *parent ;
2784 struct cfs_rq *cfs_rq ;
2785 struct cfs_rq *my_q ;
2786};
2787#line 1233
2788struct rt_rq;
2789#line 1233 "include/linux/sched.h"
2790struct sched_rt_entity {
2791 struct list_head run_list ;
2792 unsigned long timeout ;
2793 unsigned int time_slice ;
2794 int nr_cpus_allowed ;
2795 struct sched_rt_entity *back ;
2796 struct sched_rt_entity *parent ;
2797 struct rt_rq *rt_rq ;
2798 struct rt_rq *my_q ;
2799};
2800#line 1264
2801struct css_set;
2802#line 1264
2803struct compat_robust_list_head;
2804#line 1264
2805struct mem_cgroup;
2806#line 1264 "include/linux/sched.h"
2807struct memcg_batch_info {
2808 int do_batch ;
2809 struct mem_cgroup *memcg ;
2810 unsigned long nr_pages ;
2811 unsigned long memsw_nr_pages ;
2812};
2813#line 1264 "include/linux/sched.h"
2814struct task_struct {
2815 long volatile state ;
2816 void *stack ;
2817 atomic_t usage ;
2818 unsigned int flags ;
2819 unsigned int ptrace ;
2820 struct llist_node wake_entry ;
2821 int on_cpu ;
2822 int on_rq ;
2823 int prio ;
2824 int static_prio ;
2825 int normal_prio ;
2826 unsigned int rt_priority ;
2827 struct sched_class const *sched_class ;
2828 struct sched_entity se ;
2829 struct sched_rt_entity rt ;
2830 struct hlist_head preempt_notifiers ;
2831 unsigned char fpu_counter ;
2832 unsigned int policy ;
2833 cpumask_t cpus_allowed ;
2834 struct sched_info sched_info ;
2835 struct list_head tasks ;
2836 struct plist_node pushable_tasks ;
2837 struct mm_struct *mm ;
2838 struct mm_struct *active_mm ;
2839 unsigned int brk_randomized : 1 ;
2840 int exit_state ;
2841 int exit_code ;
2842 int exit_signal ;
2843 int pdeath_signal ;
2844 unsigned int jobctl ;
2845 unsigned int personality ;
2846 unsigned int did_exec : 1 ;
2847 unsigned int in_execve : 1 ;
2848 unsigned int in_iowait : 1 ;
2849 unsigned int sched_reset_on_fork : 1 ;
2850 unsigned int sched_contributes_to_load : 1 ;
2851 unsigned int irq_thread : 1 ;
2852 pid_t pid ;
2853 pid_t tgid ;
2854 unsigned long stack_canary ;
2855 struct task_struct *real_parent ;
2856 struct task_struct *parent ;
2857 struct list_head children ;
2858 struct list_head sibling ;
2859 struct task_struct *group_leader ;
2860 struct list_head ptraced ;
2861 struct list_head ptrace_entry ;
2862 struct pid_link pids[3] ;
2863 struct list_head thread_group ;
2864 struct completion *vfork_done ;
2865 int *set_child_tid ;
2866 int *clear_child_tid ;
2867 cputime_t utime ;
2868 cputime_t stime ;
2869 cputime_t utimescaled ;
2870 cputime_t stimescaled ;
2871 cputime_t gtime ;
2872 cputime_t prev_utime ;
2873 cputime_t prev_stime ;
2874 unsigned long nvcsw ;
2875 unsigned long nivcsw ;
2876 struct timespec start_time ;
2877 struct timespec real_start_time ;
2878 unsigned long min_flt ;
2879 unsigned long maj_flt ;
2880 struct task_cputime cputime_expires ;
2881 struct list_head cpu_timers[3] ;
2882 struct cred const *real_cred ;
2883 struct cred const *cred ;
2884 struct cred *replacement_session_keyring ;
2885 char comm[16] ;
2886 int link_count ;
2887 int total_link_count ;
2888 struct sysv_sem sysvsem ;
2889 unsigned long last_switch_count ;
2890 struct thread_struct thread ;
2891 struct fs_struct *fs ;
2892 struct files_struct *files ;
2893 struct nsproxy *nsproxy ;
2894 struct signal_struct *signal ;
2895 struct sighand_struct *sighand ;
2896 sigset_t blocked ;
2897 sigset_t real_blocked ;
2898 sigset_t saved_sigmask ;
2899 struct sigpending pending ;
2900 unsigned long sas_ss_sp ;
2901 size_t sas_ss_size ;
2902 int (*notifier)(void *priv ) ;
2903 void *notifier_data ;
2904 sigset_t *notifier_mask ;
2905 struct audit_context *audit_context ;
2906 uid_t loginuid ;
2907 unsigned int sessionid ;
2908 seccomp_t seccomp ;
2909 u32 parent_exec_id ;
2910 u32 self_exec_id ;
2911 spinlock_t alloc_lock ;
2912 raw_spinlock_t pi_lock ;
2913 struct plist_head pi_waiters ;
2914 struct rt_mutex_waiter *pi_blocked_on ;
2915 struct mutex_waiter *blocked_on ;
2916 unsigned int irq_events ;
2917 unsigned long hardirq_enable_ip ;
2918 unsigned long hardirq_disable_ip ;
2919 unsigned int hardirq_enable_event ;
2920 unsigned int hardirq_disable_event ;
2921 int hardirqs_enabled ;
2922 int hardirq_context ;
2923 unsigned long softirq_disable_ip ;
2924 unsigned long softirq_enable_ip ;
2925 unsigned int softirq_disable_event ;
2926 unsigned int softirq_enable_event ;
2927 int softirqs_enabled ;
2928 int softirq_context ;
2929 void *journal_info ;
2930 struct bio_list *bio_list ;
2931 struct blk_plug *plug ;
2932 struct reclaim_state *reclaim_state ;
2933 struct backing_dev_info *backing_dev_info ;
2934 struct io_context *io_context ;
2935 unsigned long ptrace_message ;
2936 siginfo_t *last_siginfo ;
2937 struct task_io_accounting ioac ;
2938 u64 acct_rss_mem1 ;
2939 u64 acct_vm_mem1 ;
2940 cputime_t acct_timexpd ;
2941 nodemask_t mems_allowed ;
2942 seqcount_t mems_allowed_seq ;
2943 int cpuset_mem_spread_rotor ;
2944 int cpuset_slab_spread_rotor ;
2945 struct css_set *cgroups ;
2946 struct list_head cg_list ;
2947 struct robust_list_head *robust_list ;
2948 struct compat_robust_list_head *compat_robust_list ;
2949 struct list_head pi_state_list ;
2950 struct futex_pi_state *pi_state_cache ;
2951 struct perf_event_context *perf_event_ctxp[2] ;
2952 struct mutex perf_event_mutex ;
2953 struct list_head perf_event_list ;
2954 struct mempolicy *mempolicy ;
2955 short il_next ;
2956 short pref_node_fork ;
2957 struct rcu_head rcu ;
2958 struct pipe_inode_info *splice_pipe ;
2959 struct task_delay_info *delays ;
2960 int make_it_fail ;
2961 int nr_dirtied ;
2962 int nr_dirtied_pause ;
2963 unsigned long dirty_paused_when ;
2964 int latency_record_count ;
2965 struct latency_record latency_record[32] ;
2966 unsigned long timer_slack_ns ;
2967 unsigned long default_timer_slack_ns ;
2968 struct list_head *scm_work_list ;
2969 unsigned long trace ;
2970 unsigned long trace_recursion ;
2971 struct memcg_batch_info memcg_batch ;
2972 atomic_t ptrace_bp_refcnt ;
2973};
2974#line 75 "include/linux/iocontext.h"
2975union __anonunion____missing_field_name_253 {
2976 struct list_head q_node ;
2977 struct kmem_cache *__rcu_icq_cache ;
2978};
2979#line 75 "include/linux/iocontext.h"
2980union __anonunion____missing_field_name_254 {
2981 struct hlist_node ioc_node ;
2982 struct rcu_head __rcu_head ;
2983};
2984#line 75 "include/linux/iocontext.h"
2985struct io_cq {
2986 struct request_queue *q ;
2987 struct io_context *ioc ;
2988 union __anonunion____missing_field_name_253 __annonCompField47 ;
2989 union __anonunion____missing_field_name_254 __annonCompField48 ;
2990 unsigned int flags ;
2991};
2992#line 101 "include/linux/iocontext.h"
2993struct io_context {
2994 atomic_long_t refcount ;
2995 atomic_t nr_tasks ;
2996 spinlock_t lock ;
2997 unsigned short ioprio ;
2998 int nr_batch_requests ;
2999 unsigned long last_waited ;
3000 struct radix_tree_root icq_tree ;
3001 struct io_cq *icq_hint ;
3002 struct hlist_head icq_list ;
3003 struct work_struct release_work ;
3004};
3005#line 170 "include/linux/bio.h"
3006struct bio_integrity_payload {
3007 struct bio *bip_bio ;
3008 sector_t bip_sector ;
3009 void *bip_buf ;
3010 bio_end_io_t *bip_end_io ;
3011 unsigned int bip_size ;
3012 unsigned short bip_slab ;
3013 unsigned short bip_vcnt ;
3014 unsigned short bip_idx ;
3015 struct work_struct bip_work ;
3016 struct bio_vec bip_vec[0] ;
3017};
3018#line 374 "include/linux/bio.h"
3019struct bio_list {
3020 struct bio *head ;
3021 struct bio *tail ;
3022};
3023#line 46 "include/linux/slub_def.h"
3024struct kmem_cache_cpu {
3025 void **freelist ;
3026 unsigned long tid ;
3027 struct page *page ;
3028 struct page *partial ;
3029 int node ;
3030 unsigned int stat[26] ;
3031};
3032#line 57 "include/linux/slub_def.h"
3033struct kmem_cache_node {
3034 spinlock_t list_lock ;
3035 unsigned long nr_partial ;
3036 struct list_head partial ;
3037 atomic_long_t nr_slabs ;
3038 atomic_long_t total_objects ;
3039 struct list_head full ;
3040};
3041#line 73 "include/linux/slub_def.h"
3042struct kmem_cache_order_objects {
3043 unsigned long x ;
3044};
3045#line 80 "include/linux/slub_def.h"
3046struct kmem_cache {
3047 struct kmem_cache_cpu *cpu_slab ;
3048 unsigned long flags ;
3049 unsigned long min_partial ;
3050 int size ;
3051 int objsize ;
3052 int offset ;
3053 int cpu_partial ;
3054 struct kmem_cache_order_objects oo ;
3055 struct kmem_cache_order_objects max ;
3056 struct kmem_cache_order_objects min ;
3057 gfp_t allocflags ;
3058 int refcount ;
3059 void (*ctor)(void * ) ;
3060 int inuse ;
3061 int align ;
3062 int reserved ;
3063 char const *name ;
3064 struct list_head list ;
3065 struct kobject kobj ;
3066 int remote_node_defrag_ratio ;
3067 struct kmem_cache_node *node[1 << 10] ;
3068};
3069#line 25 "include/linux/genhd.h"
3070struct device_type;
3071#line 27
3072struct class;
3073#line 19 "include/linux/klist.h"
3074struct klist_node;
3075#line 39 "include/linux/klist.h"
3076struct klist_node {
3077 void *n_klist ;
3078 struct list_head n_node ;
3079 struct kref n_ref ;
3080};
3081#line 4 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/device.h"
3082struct dma_map_ops;
3083#line 4 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/device.h"
3084struct dev_archdata {
3085 void *acpi_handle ;
3086 struct dma_map_ops *dma_ops ;
3087 void *iommu ;
3088};
3089#line 29 "include/linux/device.h"
3090struct device_private;
3091#line 30
3092struct device_driver;
3093#line 31
3094struct driver_private;
3095#line 34
3096struct subsys_private;
3097#line 35
3098struct bus_type;
3099#line 36
3100struct device_node;
3101#line 37
3102struct iommu_ops;
3103#line 39 "include/linux/device.h"
3104struct bus_attribute {
3105 struct attribute attr ;
3106 ssize_t (*show)(struct bus_type *bus , char *buf ) ;
3107 ssize_t (*store)(struct bus_type *bus , char const *buf , size_t count ) ;
3108};
3109#line 89
3110struct device_attribute;
3111#line 89
3112struct driver_attribute;
3113#line 89 "include/linux/device.h"
3114struct bus_type {
3115 char const *name ;
3116 char const *dev_name ;
3117 struct device *dev_root ;
3118 struct bus_attribute *bus_attrs ;
3119 struct device_attribute *dev_attrs ;
3120 struct driver_attribute *drv_attrs ;
3121 int (*match)(struct device *dev , struct device_driver *drv ) ;
3122 int (*uevent)(struct device *dev , struct kobj_uevent_env *env ) ;
3123 int (*probe)(struct device *dev ) ;
3124 int (*remove)(struct device *dev ) ;
3125 void (*shutdown)(struct device *dev ) ;
3126 int (*suspend)(struct device *dev , pm_message_t state ) ;
3127 int (*resume)(struct device *dev ) ;
3128 struct dev_pm_ops const *pm ;
3129 struct iommu_ops *iommu_ops ;
3130 struct subsys_private *p ;
3131};
3132#line 214
3133struct of_device_id;
3134#line 214 "include/linux/device.h"
3135struct device_driver {
3136 char const *name ;
3137 struct bus_type *bus ;
3138 struct module *owner ;
3139 char const *mod_name ;
3140 bool suppress_bind_attrs ;
3141 struct of_device_id const *of_match_table ;
3142 int (*probe)(struct device *dev ) ;
3143 int (*remove)(struct device *dev ) ;
3144 void (*shutdown)(struct device *dev ) ;
3145 int (*suspend)(struct device *dev , pm_message_t state ) ;
3146 int (*resume)(struct device *dev ) ;
3147 struct attribute_group const **groups ;
3148 struct dev_pm_ops const *pm ;
3149 struct driver_private *p ;
3150};
3151#line 249 "include/linux/device.h"
3152struct driver_attribute {
3153 struct attribute attr ;
3154 ssize_t (*show)(struct device_driver *driver , char *buf ) ;
3155 ssize_t (*store)(struct device_driver *driver , char const *buf , size_t count ) ;
3156};
3157#line 330
3158struct class_attribute;
3159#line 330 "include/linux/device.h"
3160struct class {
3161 char const *name ;
3162 struct module *owner ;
3163 struct class_attribute *class_attrs ;
3164 struct device_attribute *dev_attrs ;
3165 struct bin_attribute *dev_bin_attrs ;
3166 struct kobject *dev_kobj ;
3167 int (*dev_uevent)(struct device *dev , struct kobj_uevent_env *env ) ;
3168 char *(*devnode)(struct device *dev , umode_t *mode ) ;
3169 void (*class_release)(struct class *class ) ;
3170 void (*dev_release)(struct device *dev ) ;
3171 int (*suspend)(struct device *dev , pm_message_t state ) ;
3172 int (*resume)(struct device *dev ) ;
3173 struct kobj_ns_type_operations const *ns_type ;
3174 void const *(*namespace)(struct device *dev ) ;
3175 struct dev_pm_ops const *pm ;
3176 struct subsys_private *p ;
3177};
3178#line 397 "include/linux/device.h"
3179struct class_attribute {
3180 struct attribute attr ;
3181 ssize_t (*show)(struct class *class , struct class_attribute *attr , char *buf ) ;
3182 ssize_t (*store)(struct class *class , struct class_attribute *attr , char const *buf ,
3183 size_t count ) ;
3184 void const *(*namespace)(struct class *class , struct class_attribute const *attr ) ;
3185};
3186#line 465 "include/linux/device.h"
3187struct device_type {
3188 char const *name ;
3189 struct attribute_group const **groups ;
3190 int (*uevent)(struct device *dev , struct kobj_uevent_env *env ) ;
3191 char *(*devnode)(struct device *dev , umode_t *mode ) ;
3192 void (*release)(struct device *dev ) ;
3193 struct dev_pm_ops const *pm ;
3194};
3195#line 476 "include/linux/device.h"
3196struct device_attribute {
3197 struct attribute attr ;
3198 ssize_t (*show)(struct device *dev , struct device_attribute *attr , char *buf ) ;
3199 ssize_t (*store)(struct device *dev , struct device_attribute *attr , char const *buf ,
3200 size_t count ) ;
3201};
3202#line 559 "include/linux/device.h"
3203struct device_dma_parameters {
3204 unsigned int max_segment_size ;
3205 unsigned long segment_boundary_mask ;
3206};
3207#line 627
3208struct dma_coherent_mem;
3209#line 627 "include/linux/device.h"
3210struct device {
3211 struct device *parent ;
3212 struct device_private *p ;
3213 struct kobject kobj ;
3214 char const *init_name ;
3215 struct device_type const *type ;
3216 struct mutex mutex ;
3217 struct bus_type *bus ;
3218 struct device_driver *driver ;
3219 void *platform_data ;
3220 struct dev_pm_info power ;
3221 struct dev_pm_domain *pm_domain ;
3222 int numa_node ;
3223 u64 *dma_mask ;
3224 u64 coherent_dma_mask ;
3225 struct device_dma_parameters *dma_parms ;
3226 struct list_head dma_pools ;
3227 struct dma_coherent_mem *dma_mem ;
3228 struct dev_archdata archdata ;
3229 struct device_node *of_node ;
3230 dev_t devt ;
3231 u32 id ;
3232 spinlock_t devres_lock ;
3233 struct list_head devres_head ;
3234 struct klist_node knode_class ;
3235 struct class *class ;
3236 struct attribute_group const **groups ;
3237 void (*release)(struct device *dev ) ;
3238};
3239#line 43 "include/linux/pm_wakeup.h"
3240struct wakeup_source {
3241 char const *name ;
3242 struct list_head entry ;
3243 spinlock_t lock ;
3244 struct timer_list timer ;
3245 unsigned long timer_expires ;
3246 ktime_t total_time ;
3247 ktime_t max_time ;
3248 ktime_t last_time ;
3249 unsigned long event_count ;
3250 unsigned long active_count ;
3251 unsigned long relax_count ;
3252 unsigned long hit_count ;
3253 unsigned int active : 1 ;
3254};
3255#line 82 "include/linux/genhd.h"
3256struct disk_stats {
3257 unsigned long sectors[2] ;
3258 unsigned long ios[2] ;
3259 unsigned long merges[2] ;
3260 unsigned long ticks[2] ;
3261 unsigned long io_ticks ;
3262 unsigned long time_in_queue ;
3263};
3264#line 94 "include/linux/genhd.h"
3265struct partition_meta_info {
3266 u8 uuid[16] ;
3267 u8 volname[64] ;
3268};
3269#line 99 "include/linux/genhd.h"
3270struct hd_struct {
3271 sector_t start_sect ;
3272 sector_t nr_sects ;
3273 sector_t alignment_offset ;
3274 unsigned int discard_alignment ;
3275 struct device __dev ;
3276 struct kobject *holder_dir ;
3277 int policy ;
3278 int partno ;
3279 struct partition_meta_info *info ;
3280 int make_it_fail ;
3281 unsigned long stamp ;
3282 atomic_t in_flight[2] ;
3283 struct disk_stats *dkstats ;
3284 atomic_t ref ;
3285 struct rcu_head rcu_head ;
3286};
3287#line 147 "include/linux/genhd.h"
3288struct disk_part_tbl {
3289 struct rcu_head rcu_head ;
3290 int len ;
3291 struct hd_struct *last_lookup ;
3292 struct hd_struct *part[] ;
3293};
3294#line 154
3295struct disk_events;
3296#line 156
3297struct blk_integrity;
3298#line 156 "include/linux/genhd.h"
3299struct gendisk {
3300 int major ;
3301 int first_minor ;
3302 int minors ;
3303 char disk_name[32] ;
3304 char *(*devnode)(struct gendisk *gd , umode_t *mode ) ;
3305 unsigned int events ;
3306 unsigned int async_events ;
3307 struct disk_part_tbl *part_tbl ;
3308 struct hd_struct part0 ;
3309 struct block_device_operations const *fops ;
3310 struct request_queue *queue ;
3311 void *private_data ;
3312 int flags ;
3313 struct device *driverfs_dev ;
3314 struct kobject *slave_dir ;
3315 struct timer_rand_state *random ;
3316 atomic_t sync_io ;
3317 struct disk_events *ev ;
3318 struct blk_integrity *integrity ;
3319 int node_id ;
3320};
3321#line 33 "include/linux/writeback.h"
3322enum writeback_sync_modes {
3323 WB_SYNC_NONE = 0,
3324 WB_SYNC_ALL = 1
3325} ;
3326#line 60 "include/linux/writeback.h"
3327struct writeback_control {
3328 enum writeback_sync_modes sync_mode ;
3329 long nr_to_write ;
3330 long pages_skipped ;
3331 loff_t range_start ;
3332 loff_t range_end ;
3333 unsigned int for_kupdate : 1 ;
3334 unsigned int for_background : 1 ;
3335 unsigned int tagged_writepages : 1 ;
3336 unsigned int for_reclaim : 1 ;
3337 unsigned int range_cyclic : 1 ;
3338};
3339#line 84
3340struct bdi_writeback;
3341#line 38 "include/linux/backing-dev.h"
3342typedef int congested_fn(void * , int );
3343#line 50 "include/linux/backing-dev.h"
3344struct bdi_writeback {
3345 struct backing_dev_info *bdi ;
3346 unsigned int nr ;
3347 unsigned long last_old_flush ;
3348 unsigned long last_active ;
3349 struct task_struct *task ;
3350 struct timer_list wakeup_timer ;
3351 struct list_head b_dirty ;
3352 struct list_head b_io ;
3353 struct list_head b_more_io ;
3354 spinlock_t list_lock ;
3355};
3356#line 65 "include/linux/backing-dev.h"
3357struct backing_dev_info {
3358 struct list_head bdi_list ;
3359 unsigned long ra_pages ;
3360 unsigned long state ;
3361 unsigned int capabilities ;
3362 congested_fn *congested_fn ;
3363 void *congested_data ;
3364 char *name ;
3365 struct percpu_counter bdi_stat[4] ;
3366 unsigned long bw_time_stamp ;
3367 unsigned long dirtied_stamp ;
3368 unsigned long written_stamp ;
3369 unsigned long write_bandwidth ;
3370 unsigned long avg_write_bandwidth ;
3371 unsigned long dirty_ratelimit ;
3372 unsigned long balanced_dirty_ratelimit ;
3373 struct prop_local_percpu completions ;
3374 int dirty_exceeded ;
3375 unsigned int min_ratio ;
3376 unsigned int max_ratio ;
3377 unsigned int max_prop_frac ;
3378 struct bdi_writeback wb ;
3379 spinlock_t wb_lock ;
3380 struct list_head work_list ;
3381 struct device *dev ;
3382 struct timer_list laptop_mode_wb_timer ;
3383 struct dentry *debug_dir ;
3384 struct dentry *debug_stats ;
3385};
3386#line 67 "include/linux/bsg.h"
3387struct bsg_class_device {
3388 struct device *class_dev ;
3389 struct device *parent ;
3390 int minor ;
3391 struct request_queue *queue ;
3392 struct kref ref ;
3393 void (*release)(struct device * ) ;
3394};
3395#line 29 "include/linux/blkdev.h"
3396struct elevator_queue;
3397#line 32
3398struct request;
3399#line 34
3400struct bsg_job;
3401#line 40 "include/linux/blkdev.h"
3402typedef void rq_end_io_fn(struct request * , int );
3403#line 42 "include/linux/blkdev.h"
3404struct request_list {
3405 int count[2] ;
3406 int starved[2] ;
3407 int elvpriv ;
3408 mempool_t *rq_pool ;
3409 wait_queue_head_t wait[2] ;
3410};
3411#line 57
3412enum rq_cmd_type_bits {
3413 REQ_TYPE_FS = 1,
3414 REQ_TYPE_BLOCK_PC = 2,
3415 REQ_TYPE_SENSE = 3,
3416 REQ_TYPE_PM_SUSPEND = 4,
3417 REQ_TYPE_PM_RESUME = 5,
3418 REQ_TYPE_PM_SHUTDOWN = 6,
3419 REQ_TYPE_SPECIAL = 7,
3420 REQ_TYPE_ATA_TASKFILE = 8,
3421 REQ_TYPE_ATA_PC = 9
3422} ;
3423#line 81 "include/linux/blkdev.h"
3424union __anonunion____missing_field_name_260 {
3425 struct rb_node rb_node ;
3426 void *completion_data ;
3427};
3428#line 81 "include/linux/blkdev.h"
3429struct __anonstruct_elv_262 {
3430 struct io_cq *icq ;
3431 void *priv[2] ;
3432};
3433#line 81 "include/linux/blkdev.h"
3434struct __anonstruct_flush_263 {
3435 unsigned int seq ;
3436 struct list_head list ;
3437 rq_end_io_fn *saved_end_io ;
3438};
3439#line 81 "include/linux/blkdev.h"
3440union __anonunion____missing_field_name_261 {
3441 struct __anonstruct_elv_262 elv ;
3442 struct __anonstruct_flush_263 flush ;
3443};
3444#line 81 "include/linux/blkdev.h"
3445struct request {
3446 struct list_head queuelist ;
3447 struct call_single_data csd ;
3448 struct request_queue *q ;
3449 unsigned int cmd_flags ;
3450 enum rq_cmd_type_bits cmd_type ;
3451 unsigned long atomic_flags ;
3452 int cpu ;
3453 unsigned int __data_len ;
3454 sector_t __sector ;
3455 struct bio *bio ;
3456 struct bio *biotail ;
3457 struct hlist_node hash ;
3458 union __anonunion____missing_field_name_260 __annonCompField49 ;
3459 union __anonunion____missing_field_name_261 __annonCompField50 ;
3460 struct gendisk *rq_disk ;
3461 struct hd_struct *part ;
3462 unsigned long start_time ;
3463 unsigned short nr_phys_segments ;
3464 unsigned short nr_integrity_segments ;
3465 unsigned short ioprio ;
3466 int ref_count ;
3467 void *special ;
3468 char *buffer ;
3469 int tag ;
3470 int errors ;
3471 unsigned char __cmd[16] ;
3472 unsigned char *cmd ;
3473 unsigned short cmd_len ;
3474 unsigned int extra_len ;
3475 unsigned int sense_len ;
3476 unsigned int resid_len ;
3477 void *sense ;
3478 unsigned long deadline ;
3479 struct list_head timeout_list ;
3480 unsigned int timeout ;
3481 int retries ;
3482 rq_end_io_fn *end_io ;
3483 void *end_io_data ;
3484 struct request *next_rq ;
3485};
3486#line 10 "include/linux/elevator.h"
3487typedef int elevator_merge_fn(struct request_queue * , struct request ** , struct bio * );
3488#line 13 "include/linux/elevator.h"
3489typedef void elevator_merge_req_fn(struct request_queue * , struct request * , struct request * );
3490#line 15 "include/linux/elevator.h"
3491typedef void elevator_merged_fn(struct request_queue * , struct request * , int );
3492#line 17 "include/linux/elevator.h"
3493typedef int elevator_allow_merge_fn(struct request_queue * , struct request * , struct bio * );
3494#line 19 "include/linux/elevator.h"
3495typedef void elevator_bio_merged_fn(struct request_queue * , struct request * , struct bio * );
3496#line 22 "include/linux/elevator.h"
3497typedef int elevator_dispatch_fn(struct request_queue * , int );
3498#line 24 "include/linux/elevator.h"
3499typedef void elevator_add_req_fn(struct request_queue * , struct request * );
3500#line 25 "include/linux/elevator.h"
3501typedef struct request *elevator_request_list_fn(struct request_queue * , struct request * );
3502#line 26 "include/linux/elevator.h"
3503typedef void elevator_completed_req_fn(struct request_queue * , struct request * );
3504#line 27 "include/linux/elevator.h"
3505typedef int elevator_may_queue_fn(struct request_queue * , int );
3506#line 29 "include/linux/elevator.h"
3507typedef void elevator_init_icq_fn(struct io_cq * );
3508#line 30 "include/linux/elevator.h"
3509typedef void elevator_exit_icq_fn(struct io_cq * );
3510#line 31 "include/linux/elevator.h"
3511typedef int elevator_set_req_fn(struct request_queue * , struct request * , gfp_t );
3512#line 32 "include/linux/elevator.h"
3513typedef void elevator_put_req_fn(struct request * );
3514#line 33 "include/linux/elevator.h"
3515typedef void elevator_activate_req_fn(struct request_queue * , struct request * );
3516#line 34 "include/linux/elevator.h"
3517typedef void elevator_deactivate_req_fn(struct request_queue * , struct request * );
3518#line 36 "include/linux/elevator.h"
3519typedef void *elevator_init_fn(struct request_queue * );
3520#line 37 "include/linux/elevator.h"
3521typedef void elevator_exit_fn(struct elevator_queue * );
3522#line 39 "include/linux/elevator.h"
3523struct elevator_ops {
3524 elevator_merge_fn *elevator_merge_fn ;
3525 elevator_merged_fn *elevator_merged_fn ;
3526 elevator_merge_req_fn *elevator_merge_req_fn ;
3527 elevator_allow_merge_fn *elevator_allow_merge_fn ;
3528 elevator_bio_merged_fn *elevator_bio_merged_fn ;
3529 elevator_dispatch_fn *elevator_dispatch_fn ;
3530 elevator_add_req_fn *elevator_add_req_fn ;
3531 elevator_activate_req_fn *elevator_activate_req_fn ;
3532 elevator_deactivate_req_fn *elevator_deactivate_req_fn ;
3533 elevator_completed_req_fn *elevator_completed_req_fn ;
3534 elevator_request_list_fn *elevator_former_req_fn ;
3535 elevator_request_list_fn *elevator_latter_req_fn ;
3536 elevator_init_icq_fn *elevator_init_icq_fn ;
3537 elevator_exit_icq_fn *elevator_exit_icq_fn ;
3538 elevator_set_req_fn *elevator_set_req_fn ;
3539 elevator_put_req_fn *elevator_put_req_fn ;
3540 elevator_may_queue_fn *elevator_may_queue_fn ;
3541 elevator_init_fn *elevator_init_fn ;
3542 elevator_exit_fn *elevator_exit_fn ;
3543};
3544#line 71 "include/linux/elevator.h"
3545struct elv_fs_entry {
3546 struct attribute attr ;
3547 ssize_t (*show)(struct elevator_queue * , char * ) ;
3548 ssize_t (*store)(struct elevator_queue * , char const * , size_t ) ;
3549};
3550#line 80 "include/linux/elevator.h"
3551struct elevator_type {
3552 struct kmem_cache *icq_cache ;
3553 struct elevator_ops ops ;
3554 size_t icq_size ;
3555 size_t icq_align ;
3556 struct elv_fs_entry *elevator_attrs ;
3557 char elevator_name[16] ;
3558 struct module *elevator_owner ;
3559 char icq_cache_name[21] ;
3560 struct list_head list ;
3561};
3562#line 101 "include/linux/elevator.h"
3563struct elevator_queue {
3564 struct elevator_type *type ;
3565 void *elevator_data ;
3566 struct kobject kobj ;
3567 struct mutex sysfs_lock ;
3568 struct hlist_head *hash ;
3569 unsigned int registered : 1 ;
3570};
3571#line 202 "include/linux/blkdev.h"
3572typedef void request_fn_proc(struct request_queue *q );
3573#line 203 "include/linux/blkdev.h"
3574typedef void make_request_fn(struct request_queue *q , struct bio *bio );
3575#line 204 "include/linux/blkdev.h"
3576typedef int prep_rq_fn(struct request_queue * , struct request * );
3577#line 205 "include/linux/blkdev.h"
3578typedef void unprep_rq_fn(struct request_queue * , struct request * );
3579#line 208 "include/linux/blkdev.h"
3580struct bvec_merge_data {
3581 struct block_device *bi_bdev ;
3582 sector_t bi_sector ;
3583 unsigned int bi_size ;
3584 unsigned long bi_rw ;
3585};
3586#line 214 "include/linux/blkdev.h"
3587typedef int merge_bvec_fn(struct request_queue * , struct bvec_merge_data * , struct bio_vec * );
3588#line 216 "include/linux/blkdev.h"
3589typedef void softirq_done_fn(struct request * );
3590#line 217 "include/linux/blkdev.h"
3591typedef int dma_drain_needed_fn(struct request * );
3592#line 218 "include/linux/blkdev.h"
3593typedef int lld_busy_fn(struct request_queue *q );
3594#line 219 "include/linux/blkdev.h"
3595typedef int bsg_job_fn(struct bsg_job * );
3596#line 221
3597enum blk_eh_timer_return {
3598 BLK_EH_NOT_HANDLED = 0,
3599 BLK_EH_HANDLED = 1,
3600 BLK_EH_RESET_TIMER = 2
3601} ;
3602#line 227 "include/linux/blkdev.h"
3603typedef enum blk_eh_timer_return rq_timed_out_fn(struct request * );
3604#line 234 "include/linux/blkdev.h"
3605struct blk_queue_tag {
3606 struct request **tag_index ;
3607 unsigned long *tag_map ;
3608 int busy ;
3609 int max_depth ;
3610 int real_max_depth ;
3611 atomic_t refcnt ;
3612};
3613#line 246 "include/linux/blkdev.h"
3614struct queue_limits {
3615 unsigned long bounce_pfn ;
3616 unsigned long seg_boundary_mask ;
3617 unsigned int max_hw_sectors ;
3618 unsigned int max_sectors ;
3619 unsigned int max_segment_size ;
3620 unsigned int physical_block_size ;
3621 unsigned int alignment_offset ;
3622 unsigned int io_min ;
3623 unsigned int io_opt ;
3624 unsigned int max_discard_sectors ;
3625 unsigned int discard_granularity ;
3626 unsigned int discard_alignment ;
3627 unsigned short logical_block_size ;
3628 unsigned short max_segments ;
3629 unsigned short max_integrity_segments ;
3630 unsigned char misaligned ;
3631 unsigned char discard_misaligned ;
3632 unsigned char cluster ;
3633 unsigned char discard_zeroes_data ;
3634};
3635#line 271 "include/linux/blkdev.h"
3636struct request_queue {
3637 struct list_head queue_head ;
3638 struct request *last_merge ;
3639 struct elevator_queue *elevator ;
3640 struct request_list rq ;
3641 request_fn_proc *request_fn ;
3642 make_request_fn *make_request_fn ;
3643 prep_rq_fn *prep_rq_fn ;
3644 unprep_rq_fn *unprep_rq_fn ;
3645 merge_bvec_fn *merge_bvec_fn ;
3646 softirq_done_fn *softirq_done_fn ;
3647 rq_timed_out_fn *rq_timed_out_fn ;
3648 dma_drain_needed_fn *dma_drain_needed ;
3649 lld_busy_fn *lld_busy_fn ;
3650 sector_t end_sector ;
3651 struct request *boundary_rq ;
3652 struct delayed_work delay_work ;
3653 struct backing_dev_info backing_dev_info ;
3654 void *queuedata ;
3655 unsigned long queue_flags ;
3656 int id ;
3657 gfp_t bounce_gfp ;
3658 spinlock_t __queue_lock ;
3659 spinlock_t *queue_lock ;
3660 struct kobject kobj ;
3661 unsigned long nr_requests ;
3662 unsigned int nr_congestion_on ;
3663 unsigned int nr_congestion_off ;
3664 unsigned int nr_batching ;
3665 unsigned int dma_drain_size ;
3666 void *dma_drain_buffer ;
3667 unsigned int dma_pad_mask ;
3668 unsigned int dma_alignment ;
3669 struct blk_queue_tag *queue_tags ;
3670 struct list_head tag_busy_list ;
3671 unsigned int nr_sorted ;
3672 unsigned int in_flight[2] ;
3673 unsigned int rq_timeout ;
3674 struct timer_list timeout ;
3675 struct list_head timeout_list ;
3676 struct list_head icq_list ;
3677 struct queue_limits limits ;
3678 unsigned int sg_timeout ;
3679 unsigned int sg_reserved_size ;
3680 int node ;
3681 unsigned int flush_flags ;
3682 unsigned int flush_not_queueable : 1 ;
3683 unsigned int flush_queue_delayed : 1 ;
3684 unsigned int flush_pending_idx : 1 ;
3685 unsigned int flush_running_idx : 1 ;
3686 unsigned long flush_pending_since ;
3687 struct list_head flush_queue[2] ;
3688 struct list_head flush_data_in_flight ;
3689 struct request flush_rq ;
3690 struct mutex sysfs_lock ;
3691 bsg_job_fn *bsg_job_fn ;
3692 int bsg_job_size ;
3693 struct bsg_class_device bsg_dev ;
3694};
3695#line 889 "include/linux/blkdev.h"
3696struct blk_plug {
3697 unsigned long magic ;
3698 struct list_head list ;
3699 struct list_head cb_list ;
3700 unsigned int should_sort ;
3701};
3702#line 1220 "include/linux/blkdev.h"
3703struct blk_integrity_exchg {
3704 void *prot_buf ;
3705 void *data_buf ;
3706 sector_t sector ;
3707 unsigned int data_size ;
3708 unsigned short sector_size ;
3709 char const *disk_name ;
3710};
3711#line 1229 "include/linux/blkdev.h"
3712typedef void integrity_gen_fn(struct blk_integrity_exchg * );
3713#line 1230 "include/linux/blkdev.h"
3714typedef int integrity_vrfy_fn(struct blk_integrity_exchg * );
3715#line 1231 "include/linux/blkdev.h"
3716typedef void integrity_set_tag_fn(void * , void * , unsigned int );
3717#line 1232 "include/linux/blkdev.h"
3718typedef void integrity_get_tag_fn(void * , void * , unsigned int );
3719#line 1234 "include/linux/blkdev.h"
3720struct blk_integrity {
3721 integrity_gen_fn *generate_fn ;
3722 integrity_vrfy_fn *verify_fn ;
3723 integrity_set_tag_fn *set_tag_fn ;
3724 integrity_get_tag_fn *get_tag_fn ;
3725 unsigned short flags ;
3726 unsigned short tuple_size ;
3727 unsigned short sector_size ;
3728 unsigned short tag_size ;
3729 char const *name ;
3730 struct kobject kobj ;
3731};
3732#line 1362 "include/linux/blkdev.h"
3733struct block_device_operations {
3734 int (*open)(struct block_device * , fmode_t ) ;
3735 int (*release)(struct gendisk * , fmode_t ) ;
3736 int (*ioctl)(struct block_device * , fmode_t , unsigned int , unsigned long ) ;
3737 int (*compat_ioctl)(struct block_device * , fmode_t , unsigned int , unsigned long ) ;
3738 int (*direct_access)(struct block_device * , sector_t , void ** , unsigned long * ) ;
3739 unsigned int (*check_events)(struct gendisk *disk , unsigned int clearing ) ;
3740 int (*media_changed)(struct gendisk * ) ;
3741 void (*unlock_native_capacity)(struct gendisk * ) ;
3742 int (*revalidate_disk)(struct gendisk * ) ;
3743 int (*getgeo)(struct block_device * , struct hd_geometry * ) ;
3744 void (*swap_slot_free_notify)(struct block_device * , unsigned long ) ;
3745 struct module *owner ;
3746};
3747#line 18 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/staging/zram/../zsmalloc/zsmalloc.h"
3748struct zs_pool;
3749#line 35 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/staging/zram/zram_drv.h"
3750struct zobj_header {
3751
3752};
3753#line 70
3754enum zram_pageflags {
3755 ZRAM_UNCOMPRESSED = 0,
3756 ZRAM_ZERO = 1,
3757 __NR_ZRAM_PAGEFLAGS = 2
3758} ;
3759#line 83 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/staging/zram/zram_drv.h"
3760struct table {
3761 void *handle ;
3762 u16 size ;
3763 u8 count ;
3764 u8 flags ;
3765} __attribute__((__aligned__(4))) ;
3766#line 90 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/staging/zram/zram_drv.h"
3767struct zram_stats {
3768 u64 compr_size ;
3769 u64 num_reads ;
3770 u64 num_writes ;
3771 u64 failed_reads ;
3772 u64 failed_writes ;
3773 u64 invalid_io ;
3774 u64 notify_free ;
3775 u32 pages_zero ;
3776 u32 pages_stored ;
3777 u32 good_compress ;
3778 u32 pages_expand ;
3779};
3780#line 104 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/staging/zram/zram_drv.h"
3781struct zram {
3782 struct zs_pool *mem_pool ;
3783 void *compress_workmem ;
3784 void *compress_buffer ;
3785 struct table *table ;
3786 spinlock_t stat64_lock ;
3787 struct rw_semaphore lock ;
3788 struct request_queue *queue ;
3789 struct gendisk *disk ;
3790 int init_done ;
3791 struct rw_semaphore init_lock ;
3792 u64 disksize ;
3793 struct zram_stats stats ;
3794};
3795#line 24 "include/linux/sysfs.h"
3796enum kobj_ns_type;
3797#line 1 "<compiler builtins>"
3798
3799#line 1
3800long __builtin_expect(long val , long res ) ;
3801#line 59 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/bitops.h"
3802__inline static void ( __attribute__((__always_inline__)) set_bit)(unsigned int nr ,
3803 unsigned long volatile *addr ) __attribute__((__no_instrument_function__)) ;
3804#line 59 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/bitops.h"
3805__inline static void ( __attribute__((__always_inline__)) set_bit)(unsigned int nr ,
3806 unsigned long volatile *addr )
3807{ long volatile *__cil_tmp3 ;
3808
3809 {
3810#line 68
3811 __cil_tmp3 = (long volatile *)addr;
3812#line 68
3813 __asm__ volatile (".section .smp_locks,\"a\"\n"
3814 ".balign 4\n"
3815 ".long 671f - .\n"
3816 ".previous\n"
3817 "671:"
3818 "\n\tlock; "
3819 "bts %1,%0": "+m" (*__cil_tmp3): "Ir" (nr): "memory");
3820#line 71
3821 return;
3822}
3823}
3824#line 82
3825__inline static void __set_bit(int nr , unsigned long volatile *addr ) __attribute__((__no_instrument_function__)) ;
3826#line 82 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/bitops.h"
3827__inline static void __set_bit(int nr , unsigned long volatile *addr )
3828{ long volatile *__cil_tmp3 ;
3829
3830 {
3831#line 84
3832 __cil_tmp3 = (long volatile *)addr;
3833#line 84
3834 __asm__ volatile ("bts %1,%0": "+m" (*__cil_tmp3): "Ir" (nr): "memory");
3835#line 85
3836 return;
3837}
3838}
3839#line 100 "include/linux/printk.h"
3840extern int ( printk)(char const *fmt , ...) ;
3841#line 44 "include/linux/dynamic_debug.h"
3842extern int ( __dynamic_pr_debug)(struct _ddebug *descriptor ,
3843 char const *fmt , ...) ;
3844#line 322 "include/linux/kernel.h"
3845extern int ( snprintf)(char *buf , size_t size , char const *fmt
3846 , ...) ;
3847#line 88 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/percpu.h"
3848extern void __bad_percpu_size(void) ;
3849#line 34 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/string_64.h"
3850extern void *__memcpy(void *to , void const *from , size_t len ) ;
3851#line 55
3852extern void *memset(void *s , int c , size_t n ) ;
3853#line 220 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/thread_info.h"
3854extern unsigned long kernel_stack __attribute__((__section__(".data..percpu"))) ;
3855#line 222
3856__inline static struct thread_info *current_thread_info(void) __attribute__((__no_instrument_function__)) ;
3857#line 222 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/thread_info.h"
3858__inline static struct thread_info *current_thread_info(void)
3859{ struct thread_info *ti ;
3860 unsigned long pfo_ret__ ;
3861 unsigned long __cil_tmp3 ;
3862 unsigned long __cil_tmp4 ;
3863 unsigned long __cil_tmp5 ;
3864 unsigned long __cil_tmp6 ;
3865 void *__cil_tmp7 ;
3866
3867 {
3868#line 225
3869 if ((int )8UL == 1) {
3870#line 225
3871 goto case_1;
3872 } else
3873#line 225
3874 if ((int )8UL == 2) {
3875#line 225
3876 goto case_2;
3877 } else
3878#line 225
3879 if ((int )8UL == 4) {
3880#line 225
3881 goto case_4;
3882 } else
3883#line 225
3884 if ((int )8UL == 8) {
3885#line 225
3886 goto case_8;
3887 } else {
3888 {
3889#line 225
3890 goto switch_default;
3891#line 225
3892 if (0) {
3893 case_1:
3894#line 225
3895 __asm__ ("mov"
3896 "b "
3897 "%%"
3898 "gs"
3899 ":"
3900 "%P"
3901 "1"
3902 ",%0": "=q" (pfo_ret__): "p" (& kernel_stack));
3903#line 225
3904 goto switch_break;
3905 case_2:
3906#line 225
3907 __asm__ ("mov"
3908 "w "
3909 "%%"
3910 "gs"
3911 ":"
3912 "%P"
3913 "1"
3914 ",%0": "=r" (pfo_ret__): "p" (& kernel_stack));
3915#line 225
3916 goto switch_break;
3917 case_4:
3918#line 225
3919 __asm__ ("mov"
3920 "l "
3921 "%%"
3922 "gs"
3923 ":"
3924 "%P"
3925 "1"
3926 ",%0": "=r" (pfo_ret__): "p" (& kernel_stack));
3927#line 225
3928 goto switch_break;
3929 case_8:
3930#line 225
3931 __asm__ ("mov"
3932 "q "
3933 "%%"
3934 "gs"
3935 ":"
3936 "%P"
3937 "1"
3938 ",%0": "=r" (pfo_ret__): "p" (& kernel_stack));
3939#line 225
3940 goto switch_break;
3941 switch_default:
3942 {
3943#line 225
3944 __bad_percpu_size();
3945 }
3946 } else {
3947 switch_break: ;
3948 }
3949 }
3950 }
3951#line 225
3952 __cil_tmp3 = 1UL << 12;
3953#line 225
3954 __cil_tmp4 = __cil_tmp3 << 1;
3955#line 225
3956 __cil_tmp5 = pfo_ret__ + 40UL;
3957#line 225
3958 __cil_tmp6 = __cil_tmp5 - __cil_tmp4;
3959#line 225
3960 __cil_tmp7 = (void *)__cil_tmp6;
3961#line 225
3962 ti = (struct thread_info *)__cil_tmp7;
3963#line 227
3964 return (ti);
3965}
3966}
3967#line 93 "include/linux/spinlock.h"
3968extern void __raw_spin_lock_init(raw_spinlock_t *lock , char const *name , struct lock_class_key *key ) ;
3969#line 22 "include/linux/spinlock_api_smp.h"
3970extern void _raw_spin_lock(raw_spinlock_t *lock ) __attribute__((__section__(".spinlock.text"))) ;
3971#line 39
3972extern void _raw_spin_unlock(raw_spinlock_t *lock ) __attribute__((__section__(".spinlock.text"))) ;
3973#line 272 "include/linux/spinlock.h"
3974__inline static raw_spinlock_t *spinlock_check(spinlock_t *lock ) __attribute__((__no_instrument_function__)) ;
3975#line 272 "include/linux/spinlock.h"
3976__inline static raw_spinlock_t *spinlock_check(spinlock_t *lock )
3977{
3978
3979 {
3980#line 274
3981 return ((struct raw_spinlock *)lock);
3982}
3983}
3984#line 283
3985__inline static void spin_lock(spinlock_t *lock ) __attribute__((__no_instrument_function__)) ;
3986#line 283 "include/linux/spinlock.h"
3987__inline static void spin_lock(spinlock_t *lock )
3988{ struct raw_spinlock *__cil_tmp2 ;
3989
3990 {
3991 {
3992#line 285
3993 __cil_tmp2 = (struct raw_spinlock *)lock;
3994#line 285
3995 _raw_spin_lock(__cil_tmp2);
3996 }
3997#line 286
3998 return;
3999}
4000}
4001#line 323
4002__inline static void spin_unlock(spinlock_t *lock ) __attribute__((__no_instrument_function__)) ;
4003#line 323 "include/linux/spinlock.h"
4004__inline static void spin_unlock(spinlock_t *lock )
4005{ struct raw_spinlock *__cil_tmp2 ;
4006
4007 {
4008 {
4009#line 325
4010 __cil_tmp2 = (struct raw_spinlock *)lock;
4011#line 325
4012 _raw_spin_unlock(__cil_tmp2);
4013 }
4014#line 326
4015 return;
4016}
4017}
4018#line 152 "include/linux/mutex.h"
4019void mutex_lock(struct mutex *lock ) ;
4020#line 153
4021int __attribute__((__warn_unused_result__)) mutex_lock_interruptible(struct mutex *lock ) ;
4022#line 154
4023int __attribute__((__warn_unused_result__)) mutex_lock_killable(struct mutex *lock ) ;
4024#line 168
4025int mutex_trylock(struct mutex *lock ) ;
4026#line 169
4027void mutex_unlock(struct mutex *lock ) ;
4028#line 170
4029int atomic_dec_and_mutex_lock(atomic_t *cnt , struct mutex *lock ) ;
4030#line 67 "include/linux/rwsem.h"
4031extern void __init_rwsem(struct rw_semaphore *sem , char const *name , struct lock_class_key *key ) ;
4032#line 80
4033extern void down_read(struct rw_semaphore *sem ) ;
4034#line 90
4035extern void down_write(struct rw_semaphore *sem ) ;
4036#line 100
4037extern void up_read(struct rw_semaphore *sem ) ;
4038#line 105
4039extern void up_write(struct rw_semaphore *sem ) ;
4040#line 55 "include/linux/vmalloc.h"
4041extern void *vzalloc(unsigned long size ) ;
4042#line 66
4043extern void vfree(void const *addr ) ;
4044#line 324 "include/linux/gfp.h"
4045extern struct page *alloc_pages_current(gfp_t gfp_mask , unsigned int order ) ;
4046#line 326
4047__inline static struct page *alloc_pages(gfp_t gfp_mask , unsigned int order ) __attribute__((__no_instrument_function__)) ;
4048#line 326 "include/linux/gfp.h"
4049__inline static struct page *alloc_pages(gfp_t gfp_mask , unsigned int order )
4050{ struct page *tmp ;
4051
4052 {
4053 {
4054#line 329
4055 tmp = alloc_pages_current(gfp_mask, order);
4056 }
4057#line 329
4058 return (tmp);
4059}
4060}
4061#line 346
4062extern unsigned long __get_free_pages(gfp_t gfp_mask , unsigned int order ) ;
4063#line 360
4064extern void __free_pages(struct page *page , unsigned int order ) ;
4065#line 361
4066extern void free_pages(unsigned long addr , unsigned int order ) ;
4067#line 158 "include/linux/sysfs.h"
4068extern int __attribute__((__warn_unused_result__)) sysfs_create_group(struct kobject *kobj ,
4069 struct attribute_group const *grp ) ;
4070#line 162
4071extern void sysfs_remove_group(struct kobject *kobj , struct attribute_group const *grp ) ;
4072#line 361 "include/linux/moduleparam.h"
4073extern struct kernel_param_ops param_ops_uint ;
4074#line 26 "include/linux/export.h"
4075extern struct module __this_module ;
4076#line 67 "include/linux/module.h"
4077int init_module(void) ;
4078#line 68
4079void cleanup_module(void) ;
4080#line 2049 "include/linux/fs.h"
4081extern int register_blkdev(unsigned int , char const * ) ;
4082#line 2050
4083extern void unregister_blkdev(unsigned int , char const * ) ;
4084#line 33 "include/linux/mm.h"
4085extern unsigned long totalram_pages ;
4086#line 737
4087__inline static void *( __attribute__((__always_inline__)) lowmem_page_address)(struct page const *page ) __attribute__((__no_instrument_function__)) ;
4088#line 737 "include/linux/mm.h"
4089__inline static void *( __attribute__((__always_inline__)) lowmem_page_address)(struct page const *page )
4090{ struct page *__cil_tmp2 ;
4091 struct page const *__cil_tmp3 ;
4092 int __cil_tmp4 ;
4093 unsigned long __cil_tmp5 ;
4094 phys_addr_t __cil_tmp6 ;
4095 phys_addr_t __cil_tmp7 ;
4096 unsigned long __cil_tmp8 ;
4097 unsigned long __cil_tmp9 ;
4098
4099 {
4100 {
4101#line 739
4102 __cil_tmp2 = (struct page *)0xffffea0000000000UL;
4103#line 739
4104 __cil_tmp3 = (struct page const *)__cil_tmp2;
4105#line 739
4106 __cil_tmp4 = page - __cil_tmp3;
4107#line 739
4108 __cil_tmp5 = (unsigned long )__cil_tmp4;
4109#line 739
4110 __cil_tmp6 = (phys_addr_t )__cil_tmp5;
4111#line 739
4112 __cil_tmp7 = __cil_tmp6 << 12;
4113#line 739
4114 __cil_tmp8 = (unsigned long )__cil_tmp7;
4115#line 739
4116 __cil_tmp9 = __cil_tmp8 + 0xffff880000000000UL;
4117#line 739
4118 return ((void *)__cil_tmp9);
4119 }
4120}
4121}
4122#line 16 "include/linux/uaccess.h"
4123__inline static void pagefault_disable(void) __attribute__((__no_instrument_function__)) ;
4124#line 16 "include/linux/uaccess.h"
4125__inline static void pagefault_disable(void)
4126{ struct thread_info *tmp ;
4127 unsigned long __cil_tmp2 ;
4128 unsigned long __cil_tmp3 ;
4129 unsigned long __cil_tmp4 ;
4130 unsigned long __cil_tmp5 ;
4131 int __cil_tmp6 ;
4132
4133 {
4134 {
4135#line 18
4136 while (1) {
4137 while_continue: ;
4138 {
4139#line 18
4140 tmp = current_thread_info();
4141#line 18
4142 __cil_tmp2 = (unsigned long )tmp;
4143#line 18
4144 __cil_tmp3 = __cil_tmp2 + 28;
4145#line 18
4146 __cil_tmp4 = (unsigned long )tmp;
4147#line 18
4148 __cil_tmp5 = __cil_tmp4 + 28;
4149#line 18
4150 __cil_tmp6 = *((int *)__cil_tmp5);
4151#line 18
4152 *((int *)__cil_tmp3) = __cil_tmp6 + 1;
4153 }
4154#line 18
4155 goto while_break;
4156 }
4157 while_break: ;
4158 }
4159#line 23
4160 __asm__ volatile ("": : : "memory");
4161#line 24
4162 return;
4163}
4164}
4165#line 26
4166__inline static void pagefault_enable(void) __attribute__((__no_instrument_function__)) ;
4167#line 26 "include/linux/uaccess.h"
4168__inline static void pagefault_enable(void)
4169{ struct thread_info *tmp ;
4170 unsigned long __cil_tmp2 ;
4171 unsigned long __cil_tmp3 ;
4172 unsigned long __cil_tmp4 ;
4173 unsigned long __cil_tmp5 ;
4174 int __cil_tmp6 ;
4175
4176 {
4177#line 32
4178 __asm__ volatile ("": : : "memory");
4179 {
4180#line 33
4181 while (1) {
4182 while_continue: ;
4183 {
4184#line 33
4185 tmp = current_thread_info();
4186#line 33
4187 __cil_tmp2 = (unsigned long )tmp;
4188#line 33
4189 __cil_tmp3 = __cil_tmp2 + 28;
4190#line 33
4191 __cil_tmp4 = (unsigned long )tmp;
4192#line 33
4193 __cil_tmp5 = __cil_tmp4 + 28;
4194#line 33
4195 __cil_tmp6 = *((int *)__cil_tmp5);
4196#line 33
4197 *((int *)__cil_tmp3) = __cil_tmp6 - 1;
4198 }
4199#line 33
4200 goto while_break;
4201 }
4202 while_break: ;
4203 }
4204#line 37
4205 __asm__ volatile ("": : : "memory");
4206 {
4207#line 38
4208 while (1) {
4209 while_continue___0: ;
4210#line 38
4211 goto while_break___0;
4212 }
4213 while_break___0: ;
4214 }
4215#line 39
4216 return;
4217}
4218}
4219#line 59 "include/linux/highmem.h"
4220__inline static void *kmap_atomic(struct page *page ) __attribute__((__no_instrument_function__)) ;
4221#line 59 "include/linux/highmem.h"
4222__inline static void *kmap_atomic(struct page *page )
4223{ void *tmp ;
4224 struct page const *__cil_tmp3 ;
4225
4226 {
4227 {
4228#line 61
4229 pagefault_disable();
4230#line 62
4231 __cil_tmp3 = (struct page const *)page;
4232#line 62
4233 tmp = lowmem_page_address(__cil_tmp3);
4234 }
4235#line 62
4236 return (tmp);
4237}
4238}
4239#line 66
4240__inline static void __kunmap_atomic(void *addr ) __attribute__((__no_instrument_function__)) ;
4241#line 66 "include/linux/highmem.h"
4242__inline static void __kunmap_atomic(void *addr )
4243{
4244
4245 {
4246 {
4247#line 68
4248 pagefault_enable();
4249 }
4250#line 69
4251 return;
4252}
4253}
4254#line 221 "include/linux/bio.h"
4255extern void bio_endio(struct bio * , int ) ;
4256#line 161 "include/linux/slab.h"
4257extern void kfree(void const * ) ;
4258#line 221 "include/linux/slub_def.h"
4259extern void *__kmalloc(size_t size , gfp_t flags ) ;
4260#line 268
4261__inline static void *( __attribute__((__always_inline__)) kmalloc)(size_t size ,
4262 gfp_t flags ) __attribute__((__no_instrument_function__)) ;
4263#line 268 "include/linux/slub_def.h"
4264__inline static void *( __attribute__((__always_inline__)) kmalloc)(size_t size ,
4265 gfp_t flags )
4266{ void *tmp___10 ;
4267
4268 {
4269 {
4270#line 283
4271 tmp___10 = __kmalloc(size, flags);
4272 }
4273#line 283
4274 return (tmp___10);
4275}
4276}
4277#line 349 "include/linux/slab.h"
4278__inline static void *kzalloc(size_t size , gfp_t flags ) __attribute__((__no_instrument_function__)) ;
4279#line 349 "include/linux/slab.h"
4280__inline static void *kzalloc(size_t size , gfp_t flags )
4281{ void *tmp___7 ;
4282 unsigned int __cil_tmp4 ;
4283
4284 {
4285 {
4286#line 351
4287 __cil_tmp4 = flags | 32768U;
4288#line 351
4289 tmp___7 = kmalloc(size, __cil_tmp4);
4290 }
4291#line 351
4292 return (tmp___7);
4293}
4294}
4295#line 404 "include/linux/genhd.h"
4296extern void add_disk(struct gendisk *disk ) ;
4297#line 405
4298extern void del_gendisk(struct gendisk *gp ) ;
4299#line 434
4300__inline static void set_capacity(struct gendisk *disk , sector_t size ) __attribute__((__no_instrument_function__)) ;
4301#line 434 "include/linux/genhd.h"
4302__inline static void set_capacity(struct gendisk *disk , sector_t size )
4303{ unsigned long __cil_tmp3 ;
4304 unsigned long __cil_tmp4 ;
4305 unsigned long __cil_tmp5 ;
4306
4307 {
4308#line 436
4309 __cil_tmp3 = 72 + 8;
4310#line 436
4311 __cil_tmp4 = (unsigned long )disk;
4312#line 436
4313 __cil_tmp5 = __cil_tmp4 + __cil_tmp3;
4314#line 436
4315 *((sector_t *)__cil_tmp5) = size;
4316#line 437
4317 return;
4318}
4319}
4320#line 604
4321extern struct gendisk *alloc_disk(int minors ) ;
4322#line 606
4323extern void put_disk(struct gendisk *disk ) ;
4324#line 436 "include/linux/blkdev.h"
4325__inline static void queue_flag_set_unlocked(unsigned int flag , struct request_queue *q ) __attribute__((__no_instrument_function__)) ;
4326#line 436 "include/linux/blkdev.h"
4327__inline static void queue_flag_set_unlocked(unsigned int flag , struct request_queue *q )
4328{ int __cil_tmp3 ;
4329 unsigned long __cil_tmp4 ;
4330 unsigned long __cil_tmp5 ;
4331 unsigned long *__cil_tmp6 ;
4332 unsigned long volatile *__cil_tmp7 ;
4333
4334 {
4335 {
4336#line 439
4337 __cil_tmp3 = (int )flag;
4338#line 439
4339 __cil_tmp4 = (unsigned long )q;
4340#line 439
4341 __cil_tmp5 = __cil_tmp4 + 1144;
4342#line 439
4343 __cil_tmp6 = (unsigned long *)__cil_tmp5;
4344#line 439
4345 __cil_tmp7 = (unsigned long volatile *)__cil_tmp6;
4346#line 439
4347 __set_bit(__cil_tmp3, __cil_tmp7);
4348 }
4349#line 440
4350 return;
4351}
4352}
4353#line 823
4354extern void blk_cleanup_queue(struct request_queue * ) ;
4355#line 824
4356extern void blk_queue_make_request(struct request_queue * , make_request_fn * ) ;
4357#line 832
4358extern void blk_queue_logical_block_size(struct request_queue * , unsigned short ) ;
4359#line 833
4360extern void blk_queue_physical_block_size(struct request_queue * , unsigned int ) ;
4361#line 837
4362extern void blk_queue_io_min(struct request_queue *q , unsigned int min ) ;
4363#line 839
4364extern void blk_queue_io_opt(struct request_queue *q , unsigned int opt ) ;
4365#line 873
4366extern struct request_queue *blk_alloc_queue(gfp_t ) ;
4367#line 23 "include/linux/lzo.h"
4368extern int lzo1x_1_compress(unsigned char const *src , size_t src_len , unsigned char *dst ,
4369 size_t *dst_len , void *wrkmem ) ;
4370#line 27
4371extern int lzo1x_decompress_safe(unsigned char const *src , size_t src_len , unsigned char *dst ,
4372 size_t *dst_len ) ;
4373#line 20 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/staging/zram/../zsmalloc/zsmalloc.h"
4374extern struct zs_pool *zs_create_pool(char const *name , gfp_t flags ) ;
4375#line 21
4376extern void zs_destroy_pool(struct zs_pool *pool ) ;
4377#line 23
4378extern void *zs_malloc(struct zs_pool *pool , size_t size ) ;
4379#line 24
4380extern void zs_free(struct zs_pool *pool , void *obj ) ;
4381#line 26
4382extern void *zs_map_object(struct zs_pool *pool , void *handle ) ;
4383#line 27
4384extern void zs_unmap_object(struct zs_pool *pool , void *handle ) ;
4385#line 27 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/staging/zram/zram_drv.h"
4386static unsigned int const max_num_devices = (unsigned int const )32;
4387#line 44 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/staging/zram/zram_drv.h"
4388static unsigned int const default_disksize_perc_ram = (unsigned int const )25;
4389#line 50 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/staging/zram/zram_drv.h"
4390static unsigned long const max_zpage_size = (size_t const )(((1UL << 12) / 4UL) * 3UL);
4391#line 126 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/staging/zram/zram_drv.h"
4392struct zram *zram_devices ;
4393#line 127
4394unsigned int zram_get_num_devices(void) ;
4395#line 129
4396struct attribute_group zram_disk_attr_group ;
4397#line 132
4398int zram_init_device(struct zram *zram ) ;
4399#line 133
4400void __zram_reset_device(struct zram *zram ) ;
4401#line 40 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
4402static int zram_major ;
4403#line 44 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
4404static unsigned int num_devices ;
4405#line 46 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
4406static void zram_stat_inc(u32 *v )
4407{ u32 __cil_tmp2 ;
4408
4409 {
4410#line 48
4411 __cil_tmp2 = *v;
4412#line 48
4413 *v = __cil_tmp2 + 1U;
4414#line 49
4415 return;
4416}
4417}
4418#line 51 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
4419static void zram_stat_dec(u32 *v )
4420{ u32 __cil_tmp2 ;
4421
4422 {
4423#line 53
4424 __cil_tmp2 = *v;
4425#line 53
4426 *v = __cil_tmp2 - 1U;
4427#line 54
4428 return;
4429}
4430}
4431#line 56 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
4432static void zram_stat64_add(struct zram *zram , u64 *v , u64 inc )
4433{ unsigned long __cil_tmp4 ;
4434 unsigned long __cil_tmp5 ;
4435 spinlock_t *__cil_tmp6 ;
4436 u64 __cil_tmp7 ;
4437 unsigned long __cil_tmp8 ;
4438 unsigned long __cil_tmp9 ;
4439 spinlock_t *__cil_tmp10 ;
4440
4441 {
4442 {
4443#line 58
4444 __cil_tmp4 = (unsigned long )zram;
4445#line 58
4446 __cil_tmp5 = __cil_tmp4 + 32;
4447#line 58
4448 __cil_tmp6 = (spinlock_t *)__cil_tmp5;
4449#line 58
4450 spin_lock(__cil_tmp6);
4451#line 59
4452 __cil_tmp7 = *v;
4453#line 59
4454 *v = __cil_tmp7 + inc;
4455#line 60
4456 __cil_tmp8 = (unsigned long )zram;
4457#line 60
4458 __cil_tmp9 = __cil_tmp8 + 32;
4459#line 60
4460 __cil_tmp10 = (spinlock_t *)__cil_tmp9;
4461#line 60
4462 spin_unlock(__cil_tmp10);
4463 }
4464#line 61
4465 return;
4466}
4467}
4468#line 63 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
4469static void zram_stat64_sub(struct zram *zram , u64 *v , u64 dec )
4470{ unsigned long __cil_tmp4 ;
4471 unsigned long __cil_tmp5 ;
4472 spinlock_t *__cil_tmp6 ;
4473 u64 __cil_tmp7 ;
4474 unsigned long __cil_tmp8 ;
4475 unsigned long __cil_tmp9 ;
4476 spinlock_t *__cil_tmp10 ;
4477
4478 {
4479 {
4480#line 65
4481 __cil_tmp4 = (unsigned long )zram;
4482#line 65
4483 __cil_tmp5 = __cil_tmp4 + 32;
4484#line 65
4485 __cil_tmp6 = (spinlock_t *)__cil_tmp5;
4486#line 65
4487 spin_lock(__cil_tmp6);
4488#line 66
4489 __cil_tmp7 = *v;
4490#line 66
4491 *v = __cil_tmp7 - dec;
4492#line 67
4493 __cil_tmp8 = (unsigned long )zram;
4494#line 67
4495 __cil_tmp9 = __cil_tmp8 + 32;
4496#line 67
4497 __cil_tmp10 = (spinlock_t *)__cil_tmp9;
4498#line 67
4499 spin_unlock(__cil_tmp10);
4500 }
4501#line 68
4502 return;
4503}
4504}
4505#line 70 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
4506static void zram_stat64_inc(struct zram *zram , u64 *v )
4507{ u64 __cil_tmp3 ;
4508
4509 {
4510 {
4511#line 72
4512 __cil_tmp3 = (u64 )1;
4513#line 72
4514 zram_stat64_add(zram, v, __cil_tmp3);
4515 }
4516#line 73
4517 return;
4518}
4519}
4520#line 75 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
4521static int zram_test_flag(struct zram *zram , u32 index , enum zram_pageflags flag )
4522{ unsigned int __cil_tmp4 ;
4523 unsigned long __cil_tmp5 ;
4524 unsigned long __cil_tmp6 ;
4525 unsigned long __cil_tmp7 ;
4526 struct table *__cil_tmp8 ;
4527 struct table *__cil_tmp9 ;
4528 unsigned long __cil_tmp10 ;
4529 unsigned long __cil_tmp11 ;
4530 u8 __cil_tmp12 ;
4531 unsigned long __cil_tmp13 ;
4532 unsigned long __cil_tmp14 ;
4533
4534 {
4535 {
4536#line 78
4537 __cil_tmp4 = (unsigned int )flag;
4538#line 78
4539 __cil_tmp5 = 1UL << __cil_tmp4;
4540#line 78
4541 __cil_tmp6 = (unsigned long )zram;
4542#line 78
4543 __cil_tmp7 = __cil_tmp6 + 24;
4544#line 78
4545 __cil_tmp8 = *((struct table **)__cil_tmp7);
4546#line 78
4547 __cil_tmp9 = __cil_tmp8 + index;
4548#line 78
4549 __cil_tmp10 = (unsigned long )__cil_tmp9;
4550#line 78
4551 __cil_tmp11 = __cil_tmp10 + 11;
4552#line 78
4553 __cil_tmp12 = *((u8 *)__cil_tmp11);
4554#line 78
4555 __cil_tmp13 = (unsigned long )__cil_tmp12;
4556#line 78
4557 __cil_tmp14 = __cil_tmp13 & __cil_tmp5;
4558#line 78
4559 return ((int )__cil_tmp14);
4560 }
4561}
4562}
4563#line 81 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
4564static void zram_set_flag(struct zram *zram , u32 index , enum zram_pageflags flag )
4565{ unsigned long __cil_tmp4 ;
4566 unsigned long __cil_tmp5 ;
4567 struct table *__cil_tmp6 ;
4568 struct table *__cil_tmp7 ;
4569 unsigned long __cil_tmp8 ;
4570 unsigned long __cil_tmp9 ;
4571 unsigned int __cil_tmp10 ;
4572 unsigned long __cil_tmp11 ;
4573 unsigned long __cil_tmp12 ;
4574 unsigned long __cil_tmp13 ;
4575 struct table *__cil_tmp14 ;
4576 struct table *__cil_tmp15 ;
4577 unsigned long __cil_tmp16 ;
4578 unsigned long __cil_tmp17 ;
4579 u8 __cil_tmp18 ;
4580 unsigned long __cil_tmp19 ;
4581 unsigned long __cil_tmp20 ;
4582
4583 {
4584#line 84
4585 __cil_tmp4 = (unsigned long )zram;
4586#line 84
4587 __cil_tmp5 = __cil_tmp4 + 24;
4588#line 84
4589 __cil_tmp6 = *((struct table **)__cil_tmp5);
4590#line 84
4591 __cil_tmp7 = __cil_tmp6 + index;
4592#line 84
4593 __cil_tmp8 = (unsigned long )__cil_tmp7;
4594#line 84
4595 __cil_tmp9 = __cil_tmp8 + 11;
4596#line 84
4597 __cil_tmp10 = (unsigned int )flag;
4598#line 84
4599 __cil_tmp11 = 1UL << __cil_tmp10;
4600#line 84
4601 __cil_tmp12 = (unsigned long )zram;
4602#line 84
4603 __cil_tmp13 = __cil_tmp12 + 24;
4604#line 84
4605 __cil_tmp14 = *((struct table **)__cil_tmp13);
4606#line 84
4607 __cil_tmp15 = __cil_tmp14 + index;
4608#line 84
4609 __cil_tmp16 = (unsigned long )__cil_tmp15;
4610#line 84
4611 __cil_tmp17 = __cil_tmp16 + 11;
4612#line 84
4613 __cil_tmp18 = *((u8 *)__cil_tmp17);
4614#line 84
4615 __cil_tmp19 = (unsigned long )__cil_tmp18;
4616#line 84
4617 __cil_tmp20 = __cil_tmp19 | __cil_tmp11;
4618#line 84
4619 *((u8 *)__cil_tmp9) = (u8 )__cil_tmp20;
4620#line 85
4621 return;
4622}
4623}
4624#line 87 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
4625static void zram_clear_flag(struct zram *zram , u32 index , enum zram_pageflags flag )
4626{ unsigned long __cil_tmp4 ;
4627 unsigned long __cil_tmp5 ;
4628 struct table *__cil_tmp6 ;
4629 struct table *__cil_tmp7 ;
4630 unsigned long __cil_tmp8 ;
4631 unsigned long __cil_tmp9 ;
4632 unsigned int __cil_tmp10 ;
4633 unsigned long __cil_tmp11 ;
4634 unsigned long __cil_tmp12 ;
4635 unsigned long __cil_tmp13 ;
4636 unsigned long __cil_tmp14 ;
4637 struct table *__cil_tmp15 ;
4638 struct table *__cil_tmp16 ;
4639 unsigned long __cil_tmp17 ;
4640 unsigned long __cil_tmp18 ;
4641 u8 __cil_tmp19 ;
4642 unsigned long __cil_tmp20 ;
4643 unsigned long __cil_tmp21 ;
4644
4645 {
4646#line 90
4647 __cil_tmp4 = (unsigned long )zram;
4648#line 90
4649 __cil_tmp5 = __cil_tmp4 + 24;
4650#line 90
4651 __cil_tmp6 = *((struct table **)__cil_tmp5);
4652#line 90
4653 __cil_tmp7 = __cil_tmp6 + index;
4654#line 90
4655 __cil_tmp8 = (unsigned long )__cil_tmp7;
4656#line 90
4657 __cil_tmp9 = __cil_tmp8 + 11;
4658#line 90
4659 __cil_tmp10 = (unsigned int )flag;
4660#line 90
4661 __cil_tmp11 = 1UL << __cil_tmp10;
4662#line 90
4663 __cil_tmp12 = ~ __cil_tmp11;
4664#line 90
4665 __cil_tmp13 = (unsigned long )zram;
4666#line 90
4667 __cil_tmp14 = __cil_tmp13 + 24;
4668#line 90
4669 __cil_tmp15 = *((struct table **)__cil_tmp14);
4670#line 90
4671 __cil_tmp16 = __cil_tmp15 + index;
4672#line 90
4673 __cil_tmp17 = (unsigned long )__cil_tmp16;
4674#line 90
4675 __cil_tmp18 = __cil_tmp17 + 11;
4676#line 90
4677 __cil_tmp19 = *((u8 *)__cil_tmp18);
4678#line 90
4679 __cil_tmp20 = (unsigned long )__cil_tmp19;
4680#line 90
4681 __cil_tmp21 = __cil_tmp20 & __cil_tmp12;
4682#line 90
4683 *((u8 *)__cil_tmp9) = (u8 )__cil_tmp21;
4684#line 91
4685 return;
4686}
4687}
4688#line 93 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
4689static int page_zero_filled(void *ptr )
4690{ unsigned int pos ;
4691 unsigned long *page ;
4692 unsigned long __cil_tmp4 ;
4693 unsigned long __cil_tmp5 ;
4694 unsigned long __cil_tmp6 ;
4695 unsigned long *__cil_tmp7 ;
4696
4697 {
4698#line 98
4699 page = (unsigned long *)ptr;
4700#line 100
4701 pos = 0U;
4702 {
4703#line 100
4704 while (1) {
4705 while_continue: ;
4706 {
4707#line 100
4708 __cil_tmp4 = 1UL << 12;
4709#line 100
4710 __cil_tmp5 = __cil_tmp4 / 8UL;
4711#line 100
4712 __cil_tmp6 = (unsigned long )pos;
4713#line 100
4714 if (__cil_tmp6 != __cil_tmp5) {
4715
4716 } else {
4717#line 100
4718 goto while_break;
4719 }
4720 }
4721 {
4722#line 101
4723 __cil_tmp7 = page + pos;
4724#line 101
4725 if (*__cil_tmp7) {
4726#line 102
4727 return (0);
4728 } else {
4729
4730 }
4731 }
4732#line 100
4733 pos = pos + 1U;
4734 }
4735 while_break: ;
4736 }
4737#line 105
4738 return (1);
4739}
4740}
4741#line 108 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
4742static void zram_set_disksize(struct zram *zram , size_t totalram_bytes )
4743{ unsigned long __cil_tmp3 ;
4744 unsigned long __cil_tmp4 ;
4745 u64 __cil_tmp5 ;
4746 unsigned long __cil_tmp6 ;
4747 unsigned long __cil_tmp7 ;
4748 size_t __cil_tmp8 ;
4749 size_t __cil_tmp9 ;
4750 size_t __cil_tmp10 ;
4751 size_t __cil_tmp11 ;
4752 u64 __cil_tmp12 ;
4753 unsigned long __cil_tmp13 ;
4754 unsigned long __cil_tmp14 ;
4755 u64 __cil_tmp15 ;
4756 size_t __cil_tmp16 ;
4757 unsigned long __cil_tmp17 ;
4758 unsigned long __cil_tmp18 ;
4759 u64 __cil_tmp19 ;
4760 unsigned long __cil_tmp20 ;
4761 unsigned long __cil_tmp21 ;
4762 unsigned long __cil_tmp22 ;
4763 unsigned long __cil_tmp23 ;
4764 unsigned long __cil_tmp24 ;
4765 unsigned long long __cil_tmp25 ;
4766 unsigned long __cil_tmp26 ;
4767 unsigned long __cil_tmp27 ;
4768 u64 __cil_tmp28 ;
4769
4770 {
4771 {
4772#line 110
4773 __cil_tmp3 = (unsigned long )zram;
4774#line 110
4775 __cil_tmp4 = __cil_tmp3 + 176;
4776#line 110
4777 __cil_tmp5 = *((u64 *)__cil_tmp4);
4778#line 110
4779 if (! __cil_tmp5) {
4780 {
4781#line 111
4782 printk("<6>zram: disk size not provided. You can use disksize_kb module param to specify size.\nUsing default: (%u%% of RAM).\n",
4783 default_disksize_perc_ram);
4784#line 116
4785 __cil_tmp6 = (unsigned long )zram;
4786#line 116
4787 __cil_tmp7 = __cil_tmp6 + 176;
4788#line 116
4789 __cil_tmp8 = totalram_bytes / 100UL;
4790#line 116
4791 __cil_tmp9 = (size_t )default_disksize_perc_ram;
4792#line 116
4793 __cil_tmp10 = __cil_tmp9 * __cil_tmp8;
4794#line 116
4795 *((u64 *)__cil_tmp7) = (u64 )__cil_tmp10;
4796 }
4797 } else {
4798
4799 }
4800 }
4801 {
4802#line 120
4803 __cil_tmp11 = 2UL * totalram_bytes;
4804#line 120
4805 __cil_tmp12 = (u64 )__cil_tmp11;
4806#line 120
4807 __cil_tmp13 = (unsigned long )zram;
4808#line 120
4809 __cil_tmp14 = __cil_tmp13 + 176;
4810#line 120
4811 __cil_tmp15 = *((u64 *)__cil_tmp14);
4812#line 120
4813 if (__cil_tmp15 > __cil_tmp12) {
4814 {
4815#line 121
4816 __cil_tmp16 = totalram_bytes >> 10;
4817#line 121
4818 __cil_tmp17 = (unsigned long )zram;
4819#line 121
4820 __cil_tmp18 = __cil_tmp17 + 176;
4821#line 121
4822 __cil_tmp19 = *((u64 *)__cil_tmp18);
4823#line 121
4824 printk("<6>zram: There is little point creating a zram of greater than twice the size of memory since we expect a 2:1 compression ratio. Note that zram uses about 0.1%% of the size of the disk when not in use so a huge zram is wasteful.\n\tMemory Size: %zu kB\n\tSize you selected: %llu kB\nContinuing anyway ...\n",
4825 __cil_tmp16, __cil_tmp19);
4826 }
4827 } else {
4828
4829 }
4830 }
4831#line 134
4832 __cil_tmp20 = (unsigned long )zram;
4833#line 134
4834 __cil_tmp21 = __cil_tmp20 + 176;
4835#line 134
4836 __cil_tmp22 = 1UL << 12;
4837#line 134
4838 __cil_tmp23 = __cil_tmp22 - 1UL;
4839#line 134
4840 __cil_tmp24 = ~ __cil_tmp23;
4841#line 134
4842 __cil_tmp25 = (unsigned long long )__cil_tmp24;
4843#line 134
4844 __cil_tmp26 = (unsigned long )zram;
4845#line 134
4846 __cil_tmp27 = __cil_tmp26 + 176;
4847#line 134
4848 __cil_tmp28 = *((u64 *)__cil_tmp27);
4849#line 134
4850 *((u64 *)__cil_tmp21) = __cil_tmp28 & __cil_tmp25;
4851#line 135
4852 return;
4853}
4854}
4855#line 137 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
4856static void zram_free_page(struct zram *zram , size_t index )
4857{ void *handle ;
4858 int tmp___7 ;
4859 long tmp___8 ;
4860 int tmp___9 ;
4861 int tmp___10 ;
4862 long tmp___11 ;
4863 unsigned long __cil_tmp9 ;
4864 unsigned long __cil_tmp10 ;
4865 struct table *__cil_tmp11 ;
4866 struct table *__cil_tmp12 ;
4867 int __cil_tmp13 ;
4868 int __cil_tmp14 ;
4869 int __cil_tmp15 ;
4870 long __cil_tmp16 ;
4871 u32 __cil_tmp17 ;
4872 enum zram_pageflags __cil_tmp18 ;
4873 u32 __cil_tmp19 ;
4874 enum zram_pageflags __cil_tmp20 ;
4875 unsigned long __cil_tmp21 ;
4876 unsigned long __cil_tmp22 ;
4877 unsigned long __cil_tmp23 ;
4878 u32 *__cil_tmp24 ;
4879 u32 __cil_tmp25 ;
4880 enum zram_pageflags __cil_tmp26 ;
4881 long __cil_tmp27 ;
4882 struct page *__cil_tmp28 ;
4883 u32 __cil_tmp29 ;
4884 enum zram_pageflags __cil_tmp30 ;
4885 unsigned long __cil_tmp31 ;
4886 unsigned long __cil_tmp32 ;
4887 unsigned long __cil_tmp33 ;
4888 u32 *__cil_tmp34 ;
4889 struct zs_pool *__cil_tmp35 ;
4890 unsigned long __cil_tmp36 ;
4891 unsigned long __cil_tmp37 ;
4892 unsigned long __cil_tmp38 ;
4893 unsigned long __cil_tmp39 ;
4894 struct table *__cil_tmp40 ;
4895 struct table *__cil_tmp41 ;
4896 unsigned long __cil_tmp42 ;
4897 unsigned long __cil_tmp43 ;
4898 u16 __cil_tmp44 ;
4899 unsigned long __cil_tmp45 ;
4900 unsigned long __cil_tmp46 ;
4901 unsigned long __cil_tmp47 ;
4902 unsigned long __cil_tmp48 ;
4903 u32 *__cil_tmp49 ;
4904 unsigned long __cil_tmp50 ;
4905 unsigned long __cil_tmp51 ;
4906 u64 *__cil_tmp52 ;
4907 unsigned long __cil_tmp53 ;
4908 unsigned long __cil_tmp54 ;
4909 struct table *__cil_tmp55 ;
4910 struct table *__cil_tmp56 ;
4911 unsigned long __cil_tmp57 ;
4912 unsigned long __cil_tmp58 ;
4913 u16 __cil_tmp59 ;
4914 u64 __cil_tmp60 ;
4915 unsigned long __cil_tmp61 ;
4916 unsigned long __cil_tmp62 ;
4917 unsigned long __cil_tmp63 ;
4918 u32 *__cil_tmp64 ;
4919 unsigned long __cil_tmp65 ;
4920 unsigned long __cil_tmp66 ;
4921 struct table *__cil_tmp67 ;
4922 struct table *__cil_tmp68 ;
4923 unsigned long __cil_tmp69 ;
4924 unsigned long __cil_tmp70 ;
4925 struct table *__cil_tmp71 ;
4926 struct table *__cil_tmp72 ;
4927 unsigned long __cil_tmp73 ;
4928 unsigned long __cil_tmp74 ;
4929
4930 {
4931 {
4932#line 139
4933 __cil_tmp9 = (unsigned long )zram;
4934#line 139
4935 __cil_tmp10 = __cil_tmp9 + 24;
4936#line 139
4937 __cil_tmp11 = *((struct table **)__cil_tmp10);
4938#line 139
4939 __cil_tmp12 = __cil_tmp11 + index;
4940#line 139
4941 handle = *((void **)__cil_tmp12);
4942#line 141
4943 __cil_tmp13 = ! handle;
4944#line 141
4945 __cil_tmp14 = ! __cil_tmp13;
4946#line 141
4947 __cil_tmp15 = ! __cil_tmp14;
4948#line 141
4949 __cil_tmp16 = (long )__cil_tmp15;
4950#line 141
4951 tmp___8 = __builtin_expect(__cil_tmp16, 0L);
4952 }
4953#line 141
4954 if (tmp___8) {
4955 {
4956#line 146
4957 __cil_tmp17 = (u32 )index;
4958#line 146
4959 __cil_tmp18 = (enum zram_pageflags )1;
4960#line 146
4961 tmp___7 = zram_test_flag(zram, __cil_tmp17, __cil_tmp18);
4962 }
4963#line 146
4964 if (tmp___7) {
4965 {
4966#line 147
4967 __cil_tmp19 = (u32 )index;
4968#line 147
4969 __cil_tmp20 = (enum zram_pageflags )1;
4970#line 147
4971 zram_clear_flag(zram, __cil_tmp19, __cil_tmp20);
4972#line 148
4973 __cil_tmp21 = 184 + 56;
4974#line 148
4975 __cil_tmp22 = (unsigned long )zram;
4976#line 148
4977 __cil_tmp23 = __cil_tmp22 + __cil_tmp21;
4978#line 148
4979 __cil_tmp24 = (u32 *)__cil_tmp23;
4980#line 148
4981 zram_stat_dec(__cil_tmp24);
4982 }
4983 } else {
4984
4985 }
4986#line 150
4987 return;
4988 } else {
4989
4990 }
4991 {
4992#line 153
4993 __cil_tmp25 = (u32 )index;
4994#line 153
4995 __cil_tmp26 = (enum zram_pageflags )0;
4996#line 153
4997 tmp___9 = zram_test_flag(zram, __cil_tmp25, __cil_tmp26);
4998 }
4999#line 153
5000 if (tmp___9) {
5001#line 153
5002 tmp___10 = 1;
5003 } else {
5004#line 153
5005 tmp___10 = 0;
5006 }
5007 {
5008#line 153
5009 __cil_tmp27 = (long )tmp___10;
5010#line 153
5011 tmp___11 = __builtin_expect(__cil_tmp27, 0L);
5012 }
5013#line 153
5014 if (tmp___11) {
5015 {
5016#line 154
5017 __cil_tmp28 = (struct page *)handle;
5018#line 154
5019 __free_pages(__cil_tmp28, 0U);
5020#line 155
5021 __cil_tmp29 = (u32 )index;
5022#line 155
5023 __cil_tmp30 = (enum zram_pageflags )0;
5024#line 155
5025 zram_clear_flag(zram, __cil_tmp29, __cil_tmp30);
5026#line 156
5027 __cil_tmp31 = 184 + 68;
5028#line 156
5029 __cil_tmp32 = (unsigned long )zram;
5030#line 156
5031 __cil_tmp33 = __cil_tmp32 + __cil_tmp31;
5032#line 156
5033 __cil_tmp34 = (u32 *)__cil_tmp33;
5034#line 156
5035 zram_stat_dec(__cil_tmp34);
5036 }
5037#line 157
5038 goto out;
5039 } else {
5040
5041 }
5042 {
5043#line 160
5044 __cil_tmp35 = *((struct zs_pool **)zram);
5045#line 160
5046 zs_free(__cil_tmp35, handle);
5047 }
5048 {
5049#line 162
5050 __cil_tmp36 = 1UL << 12;
5051#line 162
5052 __cil_tmp37 = __cil_tmp36 / 2UL;
5053#line 162
5054 __cil_tmp38 = (unsigned long )zram;
5055#line 162
5056 __cil_tmp39 = __cil_tmp38 + 24;
5057#line 162
5058 __cil_tmp40 = *((struct table **)__cil_tmp39);
5059#line 162
5060 __cil_tmp41 = __cil_tmp40 + index;
5061#line 162
5062 __cil_tmp42 = (unsigned long )__cil_tmp41;
5063#line 162
5064 __cil_tmp43 = __cil_tmp42 + 8;
5065#line 162
5066 __cil_tmp44 = *((u16 *)__cil_tmp43);
5067#line 162
5068 __cil_tmp45 = (unsigned long )__cil_tmp44;
5069#line 162
5070 if (__cil_tmp45 <= __cil_tmp37) {
5071 {
5072#line 163
5073 __cil_tmp46 = 184 + 64;
5074#line 163
5075 __cil_tmp47 = (unsigned long )zram;
5076#line 163
5077 __cil_tmp48 = __cil_tmp47 + __cil_tmp46;
5078#line 163
5079 __cil_tmp49 = (u32 *)__cil_tmp48;
5080#line 163
5081 zram_stat_dec(__cil_tmp49);
5082 }
5083 } else {
5084
5085 }
5086 }
5087 out:
5088 {
5089#line 166
5090 __cil_tmp50 = (unsigned long )zram;
5091#line 166
5092 __cil_tmp51 = __cil_tmp50 + 184;
5093#line 166
5094 __cil_tmp52 = (u64 *)__cil_tmp51;
5095#line 166
5096 __cil_tmp53 = (unsigned long )zram;
5097#line 166
5098 __cil_tmp54 = __cil_tmp53 + 24;
5099#line 166
5100 __cil_tmp55 = *((struct table **)__cil_tmp54);
5101#line 166
5102 __cil_tmp56 = __cil_tmp55 + index;
5103#line 166
5104 __cil_tmp57 = (unsigned long )__cil_tmp56;
5105#line 166
5106 __cil_tmp58 = __cil_tmp57 + 8;
5107#line 166
5108 __cil_tmp59 = *((u16 *)__cil_tmp58);
5109#line 166
5110 __cil_tmp60 = (u64 )__cil_tmp59;
5111#line 166
5112 zram_stat64_sub(zram, __cil_tmp52, __cil_tmp60);
5113#line 168
5114 __cil_tmp61 = 184 + 60;
5115#line 168
5116 __cil_tmp62 = (unsigned long )zram;
5117#line 168
5118 __cil_tmp63 = __cil_tmp62 + __cil_tmp61;
5119#line 168
5120 __cil_tmp64 = (u32 *)__cil_tmp63;
5121#line 168
5122 zram_stat_dec(__cil_tmp64);
5123#line 170
5124 __cil_tmp65 = (unsigned long )zram;
5125#line 170
5126 __cil_tmp66 = __cil_tmp65 + 24;
5127#line 170
5128 __cil_tmp67 = *((struct table **)__cil_tmp66);
5129#line 170
5130 __cil_tmp68 = __cil_tmp67 + index;
5131#line 170
5132 *((void **)__cil_tmp68) = (void *)0;
5133#line 171
5134 __cil_tmp69 = (unsigned long )zram;
5135#line 171
5136 __cil_tmp70 = __cil_tmp69 + 24;
5137#line 171
5138 __cil_tmp71 = *((struct table **)__cil_tmp70);
5139#line 171
5140 __cil_tmp72 = __cil_tmp71 + index;
5141#line 171
5142 __cil_tmp73 = (unsigned long )__cil_tmp72;
5143#line 171
5144 __cil_tmp74 = __cil_tmp73 + 8;
5145#line 171
5146 *((u16 *)__cil_tmp74) = (u16 )0;
5147 }
5148#line 172
5149 return;
5150}
5151}
5152#line 174 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
5153static void handle_zero_page(struct bio_vec *bvec )
5154{ struct page *page ;
5155 void *user_mem ;
5156 unsigned long __cil_tmp4 ;
5157 unsigned long __cil_tmp5 ;
5158 unsigned int __cil_tmp6 ;
5159 void *__cil_tmp7 ;
5160 unsigned long __cil_tmp8 ;
5161 unsigned long __cil_tmp9 ;
5162 unsigned int __cil_tmp10 ;
5163 size_t __cil_tmp11 ;
5164
5165 {
5166 {
5167#line 176
5168 page = *((struct page **)bvec);
5169#line 179
5170 user_mem = kmap_atomic(page);
5171#line 180
5172 __cil_tmp4 = (unsigned long )bvec;
5173#line 180
5174 __cil_tmp5 = __cil_tmp4 + 12;
5175#line 180
5176 __cil_tmp6 = *((unsigned int *)__cil_tmp5);
5177#line 180
5178 __cil_tmp7 = user_mem + __cil_tmp6;
5179#line 180
5180 __cil_tmp8 = (unsigned long )bvec;
5181#line 180
5182 __cil_tmp9 = __cil_tmp8 + 8;
5183#line 180
5184 __cil_tmp10 = *((unsigned int *)__cil_tmp9);
5185#line 180
5186 __cil_tmp11 = (size_t )__cil_tmp10;
5187#line 180
5188 memset(__cil_tmp7, 0, __cil_tmp11);
5189 }
5190 {
5191#line 181
5192 while (1) {
5193 while_continue: ;
5194 {
5195#line 181
5196 __kunmap_atomic(user_mem);
5197 }
5198#line 181
5199 goto while_break;
5200 }
5201 while_break: ;
5202 }
5203 {
5204#line 183
5205 while (1) {
5206 while_continue___0: ;
5207#line 183
5208 goto while_break___0;
5209 }
5210 while_break___0: ;
5211 }
5212#line 184
5213 return;
5214}
5215}
5216#line 186 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
5217static void handle_uncompressed_page(struct zram *zram , struct bio_vec *bvec , u32 index ,
5218 int offset )
5219{ struct page *page ;
5220 unsigned char *user_mem ;
5221 unsigned char *cmem ;
5222 void *tmp___7 ;
5223 void *tmp___8 ;
5224 size_t __len ;
5225 void *__ret ;
5226 unsigned long __cil_tmp12 ;
5227 unsigned long __cil_tmp13 ;
5228 struct table *__cil_tmp14 ;
5229 struct table *__cil_tmp15 ;
5230 void *__cil_tmp16 ;
5231 struct page *__cil_tmp17 ;
5232 unsigned long __cil_tmp18 ;
5233 unsigned long __cil_tmp19 ;
5234 unsigned int __cil_tmp20 ;
5235 unsigned long __cil_tmp21 ;
5236 unsigned long __cil_tmp22 ;
5237 unsigned int __cil_tmp23 ;
5238 unsigned char *__cil_tmp24 ;
5239 void *__cil_tmp25 ;
5240 unsigned char *__cil_tmp26 ;
5241 void const *__cil_tmp27 ;
5242 void *__cil_tmp28 ;
5243 void *__cil_tmp29 ;
5244
5245 {
5246 {
5247#line 189
5248 page = *((struct page **)bvec);
5249#line 192
5250 tmp___7 = kmap_atomic(page);
5251#line 192
5252 user_mem = (unsigned char *)tmp___7;
5253#line 193
5254 __cil_tmp12 = (unsigned long )zram;
5255#line 193
5256 __cil_tmp13 = __cil_tmp12 + 24;
5257#line 193
5258 __cil_tmp14 = *((struct table **)__cil_tmp13);
5259#line 193
5260 __cil_tmp15 = __cil_tmp14 + index;
5261#line 193
5262 __cil_tmp16 = *((void **)__cil_tmp15);
5263#line 193
5264 __cil_tmp17 = (struct page *)__cil_tmp16;
5265#line 193
5266 tmp___8 = kmap_atomic(__cil_tmp17);
5267#line 193
5268 cmem = (unsigned char *)tmp___8;
5269#line 195
5270 __cil_tmp18 = (unsigned long )bvec;
5271#line 195
5272 __cil_tmp19 = __cil_tmp18 + 8;
5273#line 195
5274 __cil_tmp20 = *((unsigned int *)__cil_tmp19);
5275#line 195
5276 __len = (size_t )__cil_tmp20;
5277#line 195
5278 __cil_tmp21 = (unsigned long )bvec;
5279#line 195
5280 __cil_tmp22 = __cil_tmp21 + 12;
5281#line 195
5282 __cil_tmp23 = *((unsigned int *)__cil_tmp22);
5283#line 195
5284 __cil_tmp24 = user_mem + __cil_tmp23;
5285#line 195
5286 __cil_tmp25 = (void *)__cil_tmp24;
5287#line 195
5288 __cil_tmp26 = cmem + offset;
5289#line 195
5290 __cil_tmp27 = (void const *)__cil_tmp26;
5291#line 195
5292 __ret = __builtin_memcpy(__cil_tmp25, __cil_tmp27, __len);
5293 }
5294 {
5295#line 196
5296 while (1) {
5297 while_continue: ;
5298 {
5299#line 196
5300 __cil_tmp28 = (void *)cmem;
5301#line 196
5302 __kunmap_atomic(__cil_tmp28);
5303 }
5304#line 196
5305 goto while_break;
5306 }
5307 while_break: ;
5308 }
5309 {
5310#line 197
5311 while (1) {
5312 while_continue___0: ;
5313 {
5314#line 197
5315 __cil_tmp29 = (void *)user_mem;
5316#line 197
5317 __kunmap_atomic(__cil_tmp29);
5318 }
5319#line 197
5320 goto while_break___0;
5321 }
5322 while_break___0: ;
5323 }
5324 {
5325#line 199
5326 while (1) {
5327 while_continue___1: ;
5328#line 199
5329 goto while_break___1;
5330 }
5331 while_break___1: ;
5332 }
5333#line 200
5334 return;
5335}
5336}
5337#line 202
5338__inline static int is_partial_io(struct bio_vec *bvec ) __attribute__((__no_instrument_function__)) ;
5339#line 202 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
5340__inline static int is_partial_io(struct bio_vec *bvec )
5341{ unsigned long __cil_tmp2 ;
5342 unsigned long __cil_tmp3 ;
5343 unsigned long __cil_tmp4 ;
5344 unsigned int __cil_tmp5 ;
5345 unsigned long __cil_tmp6 ;
5346
5347 {
5348 {
5349#line 204
5350 __cil_tmp2 = 1UL << 12;
5351#line 204
5352 __cil_tmp3 = (unsigned long )bvec;
5353#line 204
5354 __cil_tmp4 = __cil_tmp3 + 8;
5355#line 204
5356 __cil_tmp5 = *((unsigned int *)__cil_tmp4);
5357#line 204
5358 __cil_tmp6 = (unsigned long )__cil_tmp5;
5359#line 204
5360 return (__cil_tmp6 != __cil_tmp2);
5361 }
5362}
5363}
5364#line 225
5365static int zram_bvec_read(struct zram *zram , struct bio_vec *bvec , u32 index , int offset ,
5366 struct bio *bio ) ;
5367#line 225 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
5368static struct _ddebug __attribute__((__aligned__(8))) descriptor __attribute__((__used__,
5369__section__("__verbose"))) = {"zram", "zram_bvec_read", "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c",
5370 "Read before write: sector=%lu, size=%u", 226U, 1U};
5371#line 207 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
5372static int zram_bvec_read(struct zram *zram , struct bio_vec *bvec , u32 index , int offset ,
5373 struct bio *bio )
5374{ int ret ;
5375 size_t clen ;
5376 struct page *page ;
5377 struct zobj_header *zheader ;
5378 unsigned char *user_mem ;
5379 unsigned char *cmem ;
5380 unsigned char *uncmem ;
5381 int tmp___7 ;
5382 long tmp___8 ;
5383 long tmp___9 ;
5384 int tmp___10 ;
5385 int tmp___11 ;
5386 long tmp___12 ;
5387 void *tmp___13 ;
5388 int tmp___14 ;
5389 void *tmp___15 ;
5390 int tmp___16 ;
5391 void *tmp___17 ;
5392 size_t __len ;
5393 void *__ret ;
5394 int tmp___18 ;
5395 long tmp___19 ;
5396 void *__cil_tmp28 ;
5397 enum zram_pageflags __cil_tmp29 ;
5398 unsigned long __cil_tmp30 ;
5399 unsigned long __cil_tmp31 ;
5400 struct table *__cil_tmp32 ;
5401 struct table *__cil_tmp33 ;
5402 void *__cil_tmp34 ;
5403 int __cil_tmp35 ;
5404 int __cil_tmp36 ;
5405 int __cil_tmp37 ;
5406 long __cil_tmp38 ;
5407 struct _ddebug __attribute__((__aligned__(8))) *__cil_tmp39 ;
5408 unsigned int __cil_tmp40 ;
5409 unsigned int __cil_tmp41 ;
5410 int __cil_tmp42 ;
5411 int __cil_tmp43 ;
5412 long __cil_tmp44 ;
5413 sector_t __cil_tmp45 ;
5414 unsigned long __cil_tmp46 ;
5415 unsigned long __cil_tmp47 ;
5416 unsigned int __cil_tmp48 ;
5417 enum zram_pageflags __cil_tmp49 ;
5418 long __cil_tmp50 ;
5419 unsigned long __cil_tmp51 ;
5420 size_t *__cil_tmp52 ;
5421 struct zs_pool *__cil_tmp53 ;
5422 unsigned long __cil_tmp54 ;
5423 unsigned long __cil_tmp55 ;
5424 struct table *__cil_tmp56 ;
5425 struct table *__cil_tmp57 ;
5426 void *__cil_tmp58 ;
5427 unsigned char *__cil_tmp59 ;
5428 unsigned char const *__cil_tmp60 ;
5429 unsigned long __cil_tmp61 ;
5430 unsigned long __cil_tmp62 ;
5431 struct table *__cil_tmp63 ;
5432 struct table *__cil_tmp64 ;
5433 unsigned long __cil_tmp65 ;
5434 unsigned long __cil_tmp66 ;
5435 u16 __cil_tmp67 ;
5436 size_t __cil_tmp68 ;
5437 unsigned long __cil_tmp69 ;
5438 unsigned long __cil_tmp70 ;
5439 unsigned int __cil_tmp71 ;
5440 unsigned long __cil_tmp72 ;
5441 unsigned long __cil_tmp73 ;
5442 unsigned int __cil_tmp74 ;
5443 unsigned char *__cil_tmp75 ;
5444 void *__cil_tmp76 ;
5445 unsigned char *__cil_tmp77 ;
5446 void const *__cil_tmp78 ;
5447 void const *__cil_tmp79 ;
5448 struct zs_pool *__cil_tmp80 ;
5449 unsigned long __cil_tmp81 ;
5450 unsigned long __cil_tmp82 ;
5451 struct table *__cil_tmp83 ;
5452 struct table *__cil_tmp84 ;
5453 void *__cil_tmp85 ;
5454 void *__cil_tmp86 ;
5455 int __cil_tmp87 ;
5456 int __cil_tmp88 ;
5457 int __cil_tmp89 ;
5458 long __cil_tmp90 ;
5459 unsigned long __cil_tmp91 ;
5460 unsigned long __cil_tmp92 ;
5461 unsigned long __cil_tmp93 ;
5462 u64 *__cil_tmp94 ;
5463
5464 {
5465 {
5466#line 214
5467 __cil_tmp28 = (void *)0;
5468#line 214
5469 uncmem = (unsigned char *)__cil_tmp28;
5470#line 216
5471 page = *((struct page **)bvec);
5472#line 218
5473 __cil_tmp29 = (enum zram_pageflags )1;
5474#line 218
5475 tmp___7 = zram_test_flag(zram, index, __cil_tmp29);
5476 }
5477#line 218
5478 if (tmp___7) {
5479 {
5480#line 219
5481 handle_zero_page(bvec);
5482 }
5483#line 220
5484 return (0);
5485 } else {
5486
5487 }
5488 {
5489#line 224
5490 __cil_tmp30 = (unsigned long )zram;
5491#line 224
5492 __cil_tmp31 = __cil_tmp30 + 24;
5493#line 224
5494 __cil_tmp32 = *((struct table **)__cil_tmp31);
5495#line 224
5496 __cil_tmp33 = __cil_tmp32 + index;
5497#line 224
5498 __cil_tmp34 = *((void **)__cil_tmp33);
5499#line 224
5500 __cil_tmp35 = ! __cil_tmp34;
5501#line 224
5502 __cil_tmp36 = ! __cil_tmp35;
5503#line 224
5504 __cil_tmp37 = ! __cil_tmp36;
5505#line 224
5506 __cil_tmp38 = (long )__cil_tmp37;
5507#line 224
5508 tmp___9 = __builtin_expect(__cil_tmp38, 0L);
5509 }
5510#line 224
5511 if (tmp___9) {
5512 {
5513#line 225
5514 while (1) {
5515 while_continue: ;
5516 {
5517#line 225
5518 __cil_tmp39 = & descriptor;
5519#line 225
5520 __cil_tmp40 = __cil_tmp39->flags;
5521#line 225
5522 __cil_tmp41 = __cil_tmp40 & 1U;
5523#line 225
5524 __cil_tmp42 = ! __cil_tmp41;
5525#line 225
5526 __cil_tmp43 = ! __cil_tmp42;
5527#line 225
5528 __cil_tmp44 = (long )__cil_tmp43;
5529#line 225
5530 tmp___8 = __builtin_expect(__cil_tmp44, 0L);
5531 }
5532#line 225
5533 if (tmp___8) {
5534 {
5535#line 225
5536 __cil_tmp45 = *((sector_t *)bio);
5537#line 225
5538 __cil_tmp46 = (unsigned long )bio;
5539#line 225
5540 __cil_tmp47 = __cil_tmp46 + 48;
5541#line 225
5542 __cil_tmp48 = *((unsigned int *)__cil_tmp47);
5543#line 225
5544 __dynamic_pr_debug(& descriptor, "zram: Read before write: sector=%lu, size=%u",
5545 __cil_tmp45, __cil_tmp48);
5546 }
5547 } else {
5548
5549 }
5550#line 225
5551 goto while_break;
5552 }
5553 while_break: ;
5554 }
5555 {
5556#line 227
5557 handle_zero_page(bvec);
5558 }
5559#line 228
5560 return (0);
5561 } else {
5562
5563 }
5564 {
5565#line 232
5566 __cil_tmp49 = (enum zram_pageflags )0;
5567#line 232
5568 tmp___10 = zram_test_flag(zram, index, __cil_tmp49);
5569 }
5570#line 232
5571 if (tmp___10) {
5572#line 232
5573 tmp___11 = 1;
5574 } else {
5575#line 232
5576 tmp___11 = 0;
5577 }
5578 {
5579#line 232
5580 __cil_tmp50 = (long )tmp___11;
5581#line 232
5582 tmp___12 = __builtin_expect(__cil_tmp50, 0L);
5583 }
5584#line 232
5585 if (tmp___12) {
5586 {
5587#line 233
5588 handle_uncompressed_page(zram, bvec, index, offset);
5589 }
5590#line 234
5591 return (0);
5592 } else {
5593
5594 }
5595 {
5596#line 237
5597 tmp___14 = is_partial_io(bvec);
5598 }
5599#line 237
5600 if (tmp___14) {
5601 {
5602#line 239
5603 __cil_tmp51 = 1UL << 12;
5604#line 239
5605 tmp___13 = kmalloc(__cil_tmp51, 208U);
5606#line 239
5607 uncmem = (unsigned char *)tmp___13;
5608 }
5609#line 240
5610 if (! uncmem) {
5611 {
5612#line 241
5613 printk("<6>zram: Error allocating temp memory!\n");
5614 }
5615#line 242
5616 return (-12);
5617 } else {
5618
5619 }
5620 } else {
5621
5622 }
5623 {
5624#line 246
5625 tmp___15 = kmap_atomic(page);
5626#line 246
5627 user_mem = (unsigned char *)tmp___15;
5628#line 247
5629 tmp___16 = is_partial_io(bvec);
5630 }
5631#line 247
5632 if (tmp___16) {
5633
5634 } else {
5635#line 248
5636 uncmem = user_mem;
5637 }
5638 {
5639#line 249
5640 __cil_tmp52 = & clen;
5641#line 249
5642 *__cil_tmp52 = 1UL << 12;
5643#line 251
5644 __cil_tmp53 = *((struct zs_pool **)zram);
5645#line 251
5646 __cil_tmp54 = (unsigned long )zram;
5647#line 251
5648 __cil_tmp55 = __cil_tmp54 + 24;
5649#line 251
5650 __cil_tmp56 = *((struct table **)__cil_tmp55);
5651#line 251
5652 __cil_tmp57 = __cil_tmp56 + index;
5653#line 251
5654 __cil_tmp58 = *((void **)__cil_tmp57);
5655#line 251
5656 tmp___17 = zs_map_object(__cil_tmp53, __cil_tmp58);
5657#line 251
5658 cmem = (unsigned char *)tmp___17;
5659#line 253
5660 __cil_tmp59 = cmem + 0UL;
5661#line 253
5662 __cil_tmp60 = (unsigned char const *)__cil_tmp59;
5663#line 253
5664 __cil_tmp61 = (unsigned long )zram;
5665#line 253
5666 __cil_tmp62 = __cil_tmp61 + 24;
5667#line 253
5668 __cil_tmp63 = *((struct table **)__cil_tmp62);
5669#line 253
5670 __cil_tmp64 = __cil_tmp63 + index;
5671#line 253
5672 __cil_tmp65 = (unsigned long )__cil_tmp64;
5673#line 253
5674 __cil_tmp66 = __cil_tmp65 + 8;
5675#line 253
5676 __cil_tmp67 = *((u16 *)__cil_tmp66);
5677#line 253
5678 __cil_tmp68 = (size_t )__cil_tmp67;
5679#line 253
5680 ret = lzo1x_decompress_safe(__cil_tmp60, __cil_tmp68, uncmem, & clen);
5681#line 257
5682 tmp___18 = is_partial_io(bvec);
5683 }
5684#line 257
5685 if (tmp___18) {
5686 {
5687#line 258
5688 __cil_tmp69 = (unsigned long )bvec;
5689#line 258
5690 __cil_tmp70 = __cil_tmp69 + 8;
5691#line 258
5692 __cil_tmp71 = *((unsigned int *)__cil_tmp70);
5693#line 258
5694 __len = (size_t )__cil_tmp71;
5695#line 258
5696 __cil_tmp72 = (unsigned long )bvec;
5697#line 258
5698 __cil_tmp73 = __cil_tmp72 + 12;
5699#line 258
5700 __cil_tmp74 = *((unsigned int *)__cil_tmp73);
5701#line 258
5702 __cil_tmp75 = user_mem + __cil_tmp74;
5703#line 258
5704 __cil_tmp76 = (void *)__cil_tmp75;
5705#line 258
5706 __cil_tmp77 = uncmem + offset;
5707#line 258
5708 __cil_tmp78 = (void const *)__cil_tmp77;
5709#line 258
5710 __ret = __builtin_memcpy(__cil_tmp76, __cil_tmp78, __len);
5711#line 260
5712 __cil_tmp79 = (void const *)uncmem;
5713#line 260
5714 kfree(__cil_tmp79);
5715 }
5716 } else {
5717
5718 }
5719 {
5720#line 263
5721 __cil_tmp80 = *((struct zs_pool **)zram);
5722#line 263
5723 __cil_tmp81 = (unsigned long )zram;
5724#line 263
5725 __cil_tmp82 = __cil_tmp81 + 24;
5726#line 263
5727 __cil_tmp83 = *((struct table **)__cil_tmp82);
5728#line 263
5729 __cil_tmp84 = __cil_tmp83 + index;
5730#line 263
5731 __cil_tmp85 = *((void **)__cil_tmp84);
5732#line 263
5733 zs_unmap_object(__cil_tmp80, __cil_tmp85);
5734 }
5735 {
5736#line 264
5737 while (1) {
5738 while_continue___0: ;
5739 {
5740#line 264
5741 __cil_tmp86 = (void *)user_mem;
5742#line 264
5743 __kunmap_atomic(__cil_tmp86);
5744 }
5745#line 264
5746 goto while_break___0;
5747 }
5748 while_break___0: ;
5749 }
5750 {
5751#line 267
5752 __cil_tmp87 = ret != 0;
5753#line 267
5754 __cil_tmp88 = ! __cil_tmp87;
5755#line 267
5756 __cil_tmp89 = ! __cil_tmp88;
5757#line 267
5758 __cil_tmp90 = (long )__cil_tmp89;
5759#line 267
5760 tmp___19 = __builtin_expect(__cil_tmp90, 0L);
5761 }
5762#line 267
5763 if (tmp___19) {
5764 {
5765#line 268
5766 printk("<3>zram: Decompression failed! err=%d, page=%u\n", ret, index);
5767#line 269
5768 __cil_tmp91 = 184 + 24;
5769#line 269
5770 __cil_tmp92 = (unsigned long )zram;
5771#line 269
5772 __cil_tmp93 = __cil_tmp92 + __cil_tmp91;
5773#line 269
5774 __cil_tmp94 = (u64 *)__cil_tmp93;
5775#line 269
5776 zram_stat64_inc(zram, __cil_tmp94);
5777 }
5778#line 270
5779 return (ret);
5780 } else {
5781
5782 }
5783 {
5784#line 273
5785 while (1) {
5786 while_continue___1: ;
5787#line 273
5788 goto while_break___1;
5789 }
5790 while_break___1: ;
5791 }
5792#line 275
5793 return (0);
5794}
5795}
5796#line 278 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
5797static int zram_read_before_write(struct zram *zram , char *mem , u32 index )
5798{ int ret ;
5799 size_t clen ;
5800 struct zobj_header *zheader ;
5801 unsigned char *cmem ;
5802 int tmp___7 ;
5803 void *tmp___8 ;
5804 size_t __len ;
5805 void *__ret ;
5806 int tmp___9 ;
5807 int tmp___10 ;
5808 long tmp___11 ;
5809 long tmp___12 ;
5810 size_t *__cil_tmp16 ;
5811 enum zram_pageflags __cil_tmp17 ;
5812 void *__cil_tmp18 ;
5813 unsigned long __cil_tmp19 ;
5814 unsigned long __cil_tmp20 ;
5815 unsigned long __cil_tmp21 ;
5816 struct table *__cil_tmp22 ;
5817 struct table *__cil_tmp23 ;
5818 void *__cil_tmp24 ;
5819 void *__cil_tmp25 ;
5820 unsigned long __cil_tmp26 ;
5821 struct zs_pool *__cil_tmp27 ;
5822 unsigned long __cil_tmp28 ;
5823 unsigned long __cil_tmp29 ;
5824 struct table *__cil_tmp30 ;
5825 struct table *__cil_tmp31 ;
5826 void *__cil_tmp32 ;
5827 enum zram_pageflags __cil_tmp33 ;
5828 long __cil_tmp34 ;
5829 void *__cil_tmp35 ;
5830 void const *__cil_tmp36 ;
5831 void *__cil_tmp37 ;
5832 void const *__cil_tmp38 ;
5833 void *__cil_tmp39 ;
5834 unsigned char *__cil_tmp40 ;
5835 unsigned char const *__cil_tmp41 ;
5836 unsigned long __cil_tmp42 ;
5837 unsigned long __cil_tmp43 ;
5838 struct table *__cil_tmp44 ;
5839 struct table *__cil_tmp45 ;
5840 unsigned long __cil_tmp46 ;
5841 unsigned long __cil_tmp47 ;
5842 u16 __cil_tmp48 ;
5843 size_t __cil_tmp49 ;
5844 unsigned char *__cil_tmp50 ;
5845 struct zs_pool *__cil_tmp51 ;
5846 unsigned long __cil_tmp52 ;
5847 unsigned long __cil_tmp53 ;
5848 struct table *__cil_tmp54 ;
5849 struct table *__cil_tmp55 ;
5850 void *__cil_tmp56 ;
5851 int __cil_tmp57 ;
5852 int __cil_tmp58 ;
5853 int __cil_tmp59 ;
5854 long __cil_tmp60 ;
5855 unsigned long __cil_tmp61 ;
5856 unsigned long __cil_tmp62 ;
5857 unsigned long __cil_tmp63 ;
5858 u64 *__cil_tmp64 ;
5859
5860 {
5861 {
5862#line 281
5863 __cil_tmp16 = & clen;
5864#line 281
5865 *__cil_tmp16 = 1UL << 12;
5866#line 285
5867 __cil_tmp17 = (enum zram_pageflags )1;
5868#line 285
5869 tmp___7 = zram_test_flag(zram, index, __cil_tmp17);
5870 }
5871#line 285
5872 if (tmp___7) {
5873 {
5874#line 287
5875 __cil_tmp18 = (void *)mem;
5876#line 287
5877 __cil_tmp19 = 1UL << 12;
5878#line 287
5879 memset(__cil_tmp18, 0, __cil_tmp19);
5880 }
5881#line 288
5882 return (0);
5883 } else {
5884 {
5885#line 285
5886 __cil_tmp20 = (unsigned long )zram;
5887#line 285
5888 __cil_tmp21 = __cil_tmp20 + 24;
5889#line 285
5890 __cil_tmp22 = *((struct table **)__cil_tmp21);
5891#line 285
5892 __cil_tmp23 = __cil_tmp22 + index;
5893#line 285
5894 __cil_tmp24 = *((void **)__cil_tmp23);
5895#line 285
5896 if (! __cil_tmp24) {
5897 {
5898#line 287
5899 __cil_tmp25 = (void *)mem;
5900#line 287
5901 __cil_tmp26 = 1UL << 12;
5902#line 287
5903 memset(__cil_tmp25, 0, __cil_tmp26);
5904 }
5905#line 288
5906 return (0);
5907 } else {
5908
5909 }
5910 }
5911 }
5912 {
5913#line 291
5914 __cil_tmp27 = *((struct zs_pool **)zram);
5915#line 291
5916 __cil_tmp28 = (unsigned long )zram;
5917#line 291
5918 __cil_tmp29 = __cil_tmp28 + 24;
5919#line 291
5920 __cil_tmp30 = *((struct table **)__cil_tmp29);
5921#line 291
5922 __cil_tmp31 = __cil_tmp30 + index;
5923#line 291
5924 __cil_tmp32 = *((void **)__cil_tmp31);
5925#line 291
5926 tmp___8 = zs_map_object(__cil_tmp27, __cil_tmp32);
5927#line 291
5928 cmem = (unsigned char *)tmp___8;
5929#line 294
5930 __cil_tmp33 = (enum zram_pageflags )0;
5931#line 294
5932 tmp___9 = zram_test_flag(zram, index, __cil_tmp33);
5933 }
5934#line 294
5935 if (tmp___9) {
5936#line 294
5937 tmp___10 = 1;
5938 } else {
5939#line 294
5940 tmp___10 = 0;
5941 }
5942 {
5943#line 294
5944 __cil_tmp34 = (long )tmp___10;
5945#line 294
5946 tmp___11 = __builtin_expect(__cil_tmp34, 0L);
5947 }
5948#line 294
5949 if (tmp___11) {
5950#line 295
5951 __len = 1UL << 12;
5952#line 295
5953 if (__len >= 64UL) {
5954 {
5955#line 295
5956 __cil_tmp35 = (void *)mem;
5957#line 295
5958 __cil_tmp36 = (void const *)cmem;
5959#line 295
5960 __ret = __memcpy(__cil_tmp35, __cil_tmp36, __len);
5961 }
5962 } else {
5963 {
5964#line 295
5965 __cil_tmp37 = (void *)mem;
5966#line 295
5967 __cil_tmp38 = (void const *)cmem;
5968#line 295
5969 __ret = __builtin_memcpy(__cil_tmp37, __cil_tmp38, __len);
5970 }
5971 }
5972 {
5973#line 296
5974 while (1) {
5975 while_continue: ;
5976 {
5977#line 296
5978 __cil_tmp39 = (void *)cmem;
5979#line 296
5980 __kunmap_atomic(__cil_tmp39);
5981 }
5982#line 296
5983 goto while_break;
5984 }
5985 while_break: ;
5986 }
5987#line 297
5988 return (0);
5989 } else {
5990
5991 }
5992 {
5993#line 300
5994 __cil_tmp40 = cmem + 0UL;
5995#line 300
5996 __cil_tmp41 = (unsigned char const *)__cil_tmp40;
5997#line 300
5998 __cil_tmp42 = (unsigned long )zram;
5999#line 300
6000 __cil_tmp43 = __cil_tmp42 + 24;
6001#line 300
6002 __cil_tmp44 = *((struct table **)__cil_tmp43);
6003#line 300
6004 __cil_tmp45 = __cil_tmp44 + index;
6005#line 300
6006 __cil_tmp46 = (unsigned long )__cil_tmp45;
6007#line 300
6008 __cil_tmp47 = __cil_tmp46 + 8;
6009#line 300
6010 __cil_tmp48 = *((u16 *)__cil_tmp47);
6011#line 300
6012 __cil_tmp49 = (size_t )__cil_tmp48;
6013#line 300
6014 __cil_tmp50 = (unsigned char *)mem;
6015#line 300
6016 ret = lzo1x_decompress_safe(__cil_tmp41, __cil_tmp49, __cil_tmp50, & clen);
6017#line 303
6018 __cil_tmp51 = *((struct zs_pool **)zram);
6019#line 303
6020 __cil_tmp52 = (unsigned long )zram;
6021#line 303
6022 __cil_tmp53 = __cil_tmp52 + 24;
6023#line 303
6024 __cil_tmp54 = *((struct table **)__cil_tmp53);
6025#line 303
6026 __cil_tmp55 = __cil_tmp54 + index;
6027#line 303
6028 __cil_tmp56 = *((void **)__cil_tmp55);
6029#line 303
6030 zs_unmap_object(__cil_tmp51, __cil_tmp56);
6031#line 306
6032 __cil_tmp57 = ret != 0;
6033#line 306
6034 __cil_tmp58 = ! __cil_tmp57;
6035#line 306
6036 __cil_tmp59 = ! __cil_tmp58;
6037#line 306
6038 __cil_tmp60 = (long )__cil_tmp59;
6039#line 306
6040 tmp___12 = __builtin_expect(__cil_tmp60, 0L);
6041 }
6042#line 306
6043 if (tmp___12) {
6044 {
6045#line 307
6046 printk("<3>zram: Decompression failed! err=%d, page=%u\n", ret, index);
6047#line 308
6048 __cil_tmp61 = 184 + 24;
6049#line 308
6050 __cil_tmp62 = (unsigned long )zram;
6051#line 308
6052 __cil_tmp63 = __cil_tmp62 + __cil_tmp61;
6053#line 308
6054 __cil_tmp64 = (u64 *)__cil_tmp63;
6055#line 308
6056 zram_stat64_inc(zram, __cil_tmp64);
6057 }
6058#line 309
6059 return (ret);
6060 } else {
6061
6062 }
6063#line 312
6064 return (0);
6065}
6066}
6067#line 315 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
6068static int zram_bvec_write(struct zram *zram , struct bio_vec *bvec , u32 index ,
6069 int offset )
6070{ int ret ;
6071 u32 store_offset ;
6072 size_t clen ;
6073 void *handle ;
6074 struct zobj_header *zheader ;
6075 struct page *page ;
6076 struct page *page_store ;
6077 unsigned char *user_mem ;
6078 unsigned char *cmem ;
6079 unsigned char *src ;
6080 unsigned char *uncmem ;
6081 void *tmp___7 ;
6082 int tmp___8 ;
6083 int tmp___9 ;
6084 void *tmp___10 ;
6085 size_t __len ;
6086 void *__ret ;
6087 int tmp___11 ;
6088 int tmp___12 ;
6089 int tmp___13 ;
6090 int tmp___14 ;
6091 long tmp___15 ;
6092 long tmp___16 ;
6093 void *tmp___17 ;
6094 void *tmp___18 ;
6095 long tmp___19 ;
6096 void *tmp___20 ;
6097 size_t __len___0 ;
6098 void *__ret___0 ;
6099 int tmp___21 ;
6100 int tmp___22 ;
6101 long tmp___23 ;
6102 void *__cil_tmp37 ;
6103 unsigned long __cil_tmp38 ;
6104 unsigned long __cil_tmp39 ;
6105 void *__cil_tmp40 ;
6106 unsigned long __cil_tmp41 ;
6107 char *__cil_tmp42 ;
6108 void const *__cil_tmp43 ;
6109 unsigned long __cil_tmp44 ;
6110 unsigned long __cil_tmp45 ;
6111 struct table *__cil_tmp46 ;
6112 struct table *__cil_tmp47 ;
6113 size_t __cil_tmp48 ;
6114 enum zram_pageflags __cil_tmp49 ;
6115 size_t __cil_tmp50 ;
6116 unsigned long __cil_tmp51 ;
6117 unsigned long __cil_tmp52 ;
6118 unsigned int __cil_tmp53 ;
6119 unsigned char *__cil_tmp54 ;
6120 void *__cil_tmp55 ;
6121 unsigned long __cil_tmp56 ;
6122 unsigned long __cil_tmp57 ;
6123 unsigned int __cil_tmp58 ;
6124 unsigned char *__cil_tmp59 ;
6125 void const *__cil_tmp60 ;
6126 void *__cil_tmp61 ;
6127 void *__cil_tmp62 ;
6128 void const *__cil_tmp63 ;
6129 unsigned long __cil_tmp64 ;
6130 unsigned long __cil_tmp65 ;
6131 unsigned long __cil_tmp66 ;
6132 u32 *__cil_tmp67 ;
6133 enum zram_pageflags __cil_tmp68 ;
6134 unsigned char const *__cil_tmp69 ;
6135 unsigned long __cil_tmp70 ;
6136 unsigned long __cil_tmp71 ;
6137 unsigned long __cil_tmp72 ;
6138 void *__cil_tmp73 ;
6139 void *__cil_tmp74 ;
6140 void const *__cil_tmp75 ;
6141 int __cil_tmp76 ;
6142 int __cil_tmp77 ;
6143 int __cil_tmp78 ;
6144 long __cil_tmp79 ;
6145 size_t __cil_tmp80 ;
6146 size_t *__cil_tmp81 ;
6147 size_t __cil_tmp82 ;
6148 int __cil_tmp83 ;
6149 int __cil_tmp84 ;
6150 int __cil_tmp85 ;
6151 long __cil_tmp86 ;
6152 size_t *__cil_tmp87 ;
6153 int __cil_tmp88 ;
6154 int __cil_tmp89 ;
6155 int __cil_tmp90 ;
6156 long __cil_tmp91 ;
6157 enum zram_pageflags __cil_tmp92 ;
6158 unsigned long __cil_tmp93 ;
6159 unsigned long __cil_tmp94 ;
6160 unsigned long __cil_tmp95 ;
6161 u32 *__cil_tmp96 ;
6162 struct zs_pool *__cil_tmp97 ;
6163 size_t *__cil_tmp98 ;
6164 size_t __cil_tmp99 ;
6165 size_t __cil_tmp100 ;
6166 size_t *__cil_tmp101 ;
6167 size_t __cil_tmp102 ;
6168 struct zs_pool *__cil_tmp103 ;
6169 size_t *__cil_tmp104 ;
6170 void *__cil_tmp105 ;
6171 void const *__cil_tmp106 ;
6172 enum zram_pageflags __cil_tmp107 ;
6173 long __cil_tmp108 ;
6174 void *__cil_tmp109 ;
6175 void *__cil_tmp110 ;
6176 struct zs_pool *__cil_tmp111 ;
6177 unsigned long __cil_tmp112 ;
6178 unsigned long __cil_tmp113 ;
6179 struct table *__cil_tmp114 ;
6180 struct table *__cil_tmp115 ;
6181 unsigned long __cil_tmp116 ;
6182 unsigned long __cil_tmp117 ;
6183 struct table *__cil_tmp118 ;
6184 struct table *__cil_tmp119 ;
6185 unsigned long __cil_tmp120 ;
6186 unsigned long __cil_tmp121 ;
6187 size_t *__cil_tmp122 ;
6188 size_t __cil_tmp123 ;
6189 unsigned long __cil_tmp124 ;
6190 unsigned long __cil_tmp125 ;
6191 u64 *__cil_tmp126 ;
6192 size_t *__cil_tmp127 ;
6193 size_t __cil_tmp128 ;
6194 u64 __cil_tmp129 ;
6195 unsigned long __cil_tmp130 ;
6196 unsigned long __cil_tmp131 ;
6197 unsigned long __cil_tmp132 ;
6198 u32 *__cil_tmp133 ;
6199 unsigned long __cil_tmp134 ;
6200 unsigned long __cil_tmp135 ;
6201 size_t *__cil_tmp136 ;
6202 size_t __cil_tmp137 ;
6203 unsigned long __cil_tmp138 ;
6204 unsigned long __cil_tmp139 ;
6205 unsigned long __cil_tmp140 ;
6206 u32 *__cil_tmp141 ;
6207 unsigned long __cil_tmp142 ;
6208 unsigned long __cil_tmp143 ;
6209 unsigned long __cil_tmp144 ;
6210 u64 *__cil_tmp145 ;
6211
6212 {
6213 {
6214#line 324
6215 __cil_tmp37 = (void *)0;
6216#line 324
6217 uncmem = (unsigned char *)__cil_tmp37;
6218#line 326
6219 page = *((struct page **)bvec);
6220#line 327
6221 __cil_tmp38 = (unsigned long )zram;
6222#line 327
6223 __cil_tmp39 = __cil_tmp38 + 16;
6224#line 327
6225 __cil_tmp40 = *((void **)__cil_tmp39);
6226#line 327
6227 src = (unsigned char *)__cil_tmp40;
6228#line 329
6229 tmp___8 = is_partial_io(bvec);
6230 }
6231#line 329
6232 if (tmp___8) {
6233 {
6234#line 334
6235 __cil_tmp41 = 1UL << 12;
6236#line 334
6237 tmp___7 = kmalloc(__cil_tmp41, 208U);
6238#line 334
6239 uncmem = (unsigned char *)tmp___7;
6240 }
6241#line 335
6242 if (! uncmem) {
6243 {
6244#line 336
6245 printk("<6>zram: Error allocating temp memory!\n");
6246#line 337
6247 ret = -12;
6248 }
6249#line 338
6250 goto out;
6251 } else {
6252
6253 }
6254 {
6255#line 340
6256 __cil_tmp42 = (char *)uncmem;
6257#line 340
6258 ret = zram_read_before_write(zram, __cil_tmp42, index);
6259 }
6260#line 341
6261 if (ret) {
6262 {
6263#line 342
6264 __cil_tmp43 = (void const *)uncmem;
6265#line 342
6266 kfree(__cil_tmp43);
6267 }
6268#line 343
6269 goto out;
6270 } else {
6271
6272 }
6273 } else {
6274
6275 }
6276 {
6277#line 351
6278 __cil_tmp44 = (unsigned long )zram;
6279#line 351
6280 __cil_tmp45 = __cil_tmp44 + 24;
6281#line 351
6282 __cil_tmp46 = *((struct table **)__cil_tmp45);
6283#line 351
6284 __cil_tmp47 = __cil_tmp46 + index;
6285#line 351
6286 if (*((void **)__cil_tmp47)) {
6287 {
6288#line 353
6289 __cil_tmp48 = (size_t )index;
6290#line 353
6291 zram_free_page(zram, __cil_tmp48);
6292 }
6293 } else {
6294 {
6295#line 351
6296 __cil_tmp49 = (enum zram_pageflags )1;
6297#line 351
6298 tmp___9 = zram_test_flag(zram, index, __cil_tmp49);
6299 }
6300#line 351
6301 if (tmp___9) {
6302 {
6303#line 353
6304 __cil_tmp50 = (size_t )index;
6305#line 353
6306 zram_free_page(zram, __cil_tmp50);
6307 }
6308 } else {
6309
6310 }
6311 }
6312 }
6313 {
6314#line 355
6315 tmp___10 = kmap_atomic(page);
6316#line 355
6317 user_mem = (unsigned char *)tmp___10;
6318#line 357
6319 tmp___11 = is_partial_io(bvec);
6320 }
6321#line 357
6322 if (tmp___11) {
6323 {
6324#line 358
6325 __cil_tmp51 = (unsigned long )bvec;
6326#line 358
6327 __cil_tmp52 = __cil_tmp51 + 8;
6328#line 358
6329 __cil_tmp53 = *((unsigned int *)__cil_tmp52);
6330#line 358
6331 __len = (size_t )__cil_tmp53;
6332#line 358
6333 __cil_tmp54 = uncmem + offset;
6334#line 358
6335 __cil_tmp55 = (void *)__cil_tmp54;
6336#line 358
6337 __cil_tmp56 = (unsigned long )bvec;
6338#line 358
6339 __cil_tmp57 = __cil_tmp56 + 12;
6340#line 358
6341 __cil_tmp58 = *((unsigned int *)__cil_tmp57);
6342#line 358
6343 __cil_tmp59 = user_mem + __cil_tmp58;
6344#line 358
6345 __cil_tmp60 = (void const *)__cil_tmp59;
6346#line 358
6347 __ret = __builtin_memcpy(__cil_tmp55, __cil_tmp60, __len);
6348 }
6349 } else {
6350#line 361
6351 uncmem = user_mem;
6352 }
6353 {
6354#line 363
6355 __cil_tmp61 = (void *)uncmem;
6356#line 363
6357 tmp___13 = page_zero_filled(__cil_tmp61);
6358 }
6359#line 363
6360 if (tmp___13) {
6361 {
6362#line 364
6363 while (1) {
6364 while_continue: ;
6365 {
6366#line 364
6367 __cil_tmp62 = (void *)user_mem;
6368#line 364
6369 __kunmap_atomic(__cil_tmp62);
6370 }
6371#line 364
6372 goto while_break;
6373 }
6374 while_break: ;
6375 }
6376 {
6377#line 365
6378 tmp___12 = is_partial_io(bvec);
6379 }
6380#line 365
6381 if (tmp___12) {
6382 {
6383#line 366
6384 __cil_tmp63 = (void const *)uncmem;
6385#line 366
6386 kfree(__cil_tmp63);
6387 }
6388 } else {
6389
6390 }
6391 {
6392#line 367
6393 __cil_tmp64 = 184 + 56;
6394#line 367
6395 __cil_tmp65 = (unsigned long )zram;
6396#line 367
6397 __cil_tmp66 = __cil_tmp65 + __cil_tmp64;
6398#line 367
6399 __cil_tmp67 = (u32 *)__cil_tmp66;
6400#line 367
6401 zram_stat_inc(__cil_tmp67);
6402#line 368
6403 __cil_tmp68 = (enum zram_pageflags )1;
6404#line 368
6405 zram_set_flag(zram, index, __cil_tmp68);
6406#line 369
6407 ret = 0;
6408 }
6409#line 370
6410 goto out;
6411 } else {
6412
6413 }
6414 {
6415#line 373
6416 __cil_tmp69 = (unsigned char const *)uncmem;
6417#line 373
6418 __cil_tmp70 = 1UL << 12;
6419#line 373
6420 __cil_tmp71 = (unsigned long )zram;
6421#line 373
6422 __cil_tmp72 = __cil_tmp71 + 8;
6423#line 373
6424 __cil_tmp73 = *((void **)__cil_tmp72);
6425#line 373
6426 ret = lzo1x_1_compress(__cil_tmp69, __cil_tmp70, src, & clen, __cil_tmp73);
6427 }
6428 {
6429#line 376
6430 while (1) {
6431 while_continue___0: ;
6432 {
6433#line 376
6434 __cil_tmp74 = (void *)user_mem;
6435#line 376
6436 __kunmap_atomic(__cil_tmp74);
6437 }
6438#line 376
6439 goto while_break___0;
6440 }
6441 while_break___0: ;
6442 }
6443 {
6444#line 377
6445 tmp___14 = is_partial_io(bvec);
6446 }
6447#line 377
6448 if (tmp___14) {
6449 {
6450#line 378
6451 __cil_tmp75 = (void const *)uncmem;
6452#line 378
6453 kfree(__cil_tmp75);
6454 }
6455 } else {
6456
6457 }
6458 {
6459#line 380
6460 __cil_tmp76 = ret != 0;
6461#line 380
6462 __cil_tmp77 = ! __cil_tmp76;
6463#line 380
6464 __cil_tmp78 = ! __cil_tmp77;
6465#line 380
6466 __cil_tmp79 = (long )__cil_tmp78;
6467#line 380
6468 tmp___15 = __builtin_expect(__cil_tmp79, 0L);
6469 }
6470#line 380
6471 if (tmp___15) {
6472 {
6473#line 381
6474 printk("<3>zram: Compression failed! err=%d\n", ret);
6475 }
6476#line 382
6477 goto out;
6478 } else {
6479
6480 }
6481 {
6482#line 390
6483 __cil_tmp80 = (size_t )max_zpage_size;
6484#line 390
6485 __cil_tmp81 = & clen;
6486#line 390
6487 __cil_tmp82 = *__cil_tmp81;
6488#line 390
6489 __cil_tmp83 = __cil_tmp82 > __cil_tmp80;
6490#line 390
6491 __cil_tmp84 = ! __cil_tmp83;
6492#line 390
6493 __cil_tmp85 = ! __cil_tmp84;
6494#line 390
6495 __cil_tmp86 = (long )__cil_tmp85;
6496#line 390
6497 tmp___19 = __builtin_expect(__cil_tmp86, 0L);
6498 }
6499#line 390
6500 if (tmp___19) {
6501 {
6502#line 391
6503 __cil_tmp87 = & clen;
6504#line 391
6505 *__cil_tmp87 = 1UL << 12;
6506#line 392
6507 page_store = alloc_pages(18U, 0U);
6508#line 393
6509 __cil_tmp88 = ! page_store;
6510#line 393
6511 __cil_tmp89 = ! __cil_tmp88;
6512#line 393
6513 __cil_tmp90 = ! __cil_tmp89;
6514#line 393
6515 __cil_tmp91 = (long )__cil_tmp90;
6516#line 393
6517 tmp___16 = __builtin_expect(__cil_tmp91, 0L);
6518 }
6519#line 393
6520 if (tmp___16) {
6521 {
6522#line 394
6523 printk("<6>zram: Error allocating memory for incompressible page: %u\n", index);
6524#line 396
6525 ret = -12;
6526 }
6527#line 397
6528 goto out;
6529 } else {
6530
6531 }
6532 {
6533#line 400
6534 store_offset = (u32 )0;
6535#line 401
6536 __cil_tmp92 = (enum zram_pageflags )0;
6537#line 401
6538 zram_set_flag(zram, index, __cil_tmp92);
6539#line 402
6540 __cil_tmp93 = 184 + 68;
6541#line 402
6542 __cil_tmp94 = (unsigned long )zram;
6543#line 402
6544 __cil_tmp95 = __cil_tmp94 + __cil_tmp93;
6545#line 402
6546 __cil_tmp96 = (u32 *)__cil_tmp95;
6547#line 402
6548 zram_stat_inc(__cil_tmp96);
6549#line 403
6550 handle = (void *)page_store;
6551#line 404
6552 tmp___17 = kmap_atomic(page);
6553#line 404
6554 src = (unsigned char *)tmp___17;
6555#line 405
6556 tmp___18 = kmap_atomic(page_store);
6557#line 405
6558 cmem = (unsigned char *)tmp___18;
6559 }
6560#line 406
6561 goto memstore;
6562 } else {
6563
6564 }
6565 {
6566#line 409
6567 __cil_tmp97 = *((struct zs_pool **)zram);
6568#line 409
6569 __cil_tmp98 = & clen;
6570#line 409
6571 __cil_tmp99 = *__cil_tmp98;
6572#line 409
6573 __cil_tmp100 = __cil_tmp99 + 0UL;
6574#line 409
6575 handle = zs_malloc(__cil_tmp97, __cil_tmp100);
6576 }
6577#line 410
6578 if (! handle) {
6579 {
6580#line 411
6581 __cil_tmp101 = & clen;
6582#line 411
6583 __cil_tmp102 = *__cil_tmp101;
6584#line 411
6585 printk("<6>zram: Error allocating memory for compressed page: %u, size=%zu\n",
6586 index, __cil_tmp102);
6587#line 413
6588 ret = -12;
6589 }
6590#line 414
6591 goto out;
6592 } else {
6593
6594 }
6595 {
6596#line 416
6597 __cil_tmp103 = *((struct zs_pool **)zram);
6598#line 416
6599 tmp___20 = zs_map_object(__cil_tmp103, handle);
6600#line 416
6601 cmem = (unsigned char *)tmp___20;
6602 }
6603 memstore:
6604 {
6605#line 428
6606 __cil_tmp104 = & clen;
6607#line 428
6608 __len___0 = *__cil_tmp104;
6609#line 428
6610 __cil_tmp105 = (void *)cmem;
6611#line 428
6612 __cil_tmp106 = (void const *)src;
6613#line 428
6614 __ret___0 = __builtin_memcpy(__cil_tmp105, __cil_tmp106, __len___0);
6615#line 430
6616 __cil_tmp107 = (enum zram_pageflags )0;
6617#line 430
6618 tmp___21 = zram_test_flag(zram, index, __cil_tmp107);
6619 }
6620#line 430
6621 if (tmp___21) {
6622#line 430
6623 tmp___22 = 1;
6624 } else {
6625#line 430
6626 tmp___22 = 0;
6627 }
6628 {
6629#line 430
6630 __cil_tmp108 = (long )tmp___22;
6631#line 430
6632 tmp___23 = __builtin_expect(__cil_tmp108, 0L);
6633 }
6634#line 430
6635 if (tmp___23) {
6636 {
6637#line 431
6638 while (1) {
6639 while_continue___1: ;
6640 {
6641#line 431
6642 __cil_tmp109 = (void *)cmem;
6643#line 431
6644 __kunmap_atomic(__cil_tmp109);
6645 }
6646#line 431
6647 goto while_break___1;
6648 }
6649 while_break___1: ;
6650 }
6651 {
6652#line 432
6653 while (1) {
6654 while_continue___2: ;
6655 {
6656#line 432
6657 __cil_tmp110 = (void *)src;
6658#line 432
6659 __kunmap_atomic(__cil_tmp110);
6660 }
6661#line 432
6662 goto while_break___2;
6663 }
6664 while_break___2: ;
6665 }
6666 } else {
6667 {
6668#line 434
6669 __cil_tmp111 = *((struct zs_pool **)zram);
6670#line 434
6671 zs_unmap_object(__cil_tmp111, handle);
6672 }
6673 }
6674 {
6675#line 437
6676 __cil_tmp112 = (unsigned long )zram;
6677#line 437
6678 __cil_tmp113 = __cil_tmp112 + 24;
6679#line 437
6680 __cil_tmp114 = *((struct table **)__cil_tmp113);
6681#line 437
6682 __cil_tmp115 = __cil_tmp114 + index;
6683#line 437
6684 *((void **)__cil_tmp115) = handle;
6685#line 438
6686 __cil_tmp116 = (unsigned long )zram;
6687#line 438
6688 __cil_tmp117 = __cil_tmp116 + 24;
6689#line 438
6690 __cil_tmp118 = *((struct table **)__cil_tmp117);
6691#line 438
6692 __cil_tmp119 = __cil_tmp118 + index;
6693#line 438
6694 __cil_tmp120 = (unsigned long )__cil_tmp119;
6695#line 438
6696 __cil_tmp121 = __cil_tmp120 + 8;
6697#line 438
6698 __cil_tmp122 = & clen;
6699#line 438
6700 __cil_tmp123 = *__cil_tmp122;
6701#line 438
6702 *((u16 *)__cil_tmp121) = (u16 )__cil_tmp123;
6703#line 441
6704 __cil_tmp124 = (unsigned long )zram;
6705#line 441
6706 __cil_tmp125 = __cil_tmp124 + 184;
6707#line 441
6708 __cil_tmp126 = (u64 *)__cil_tmp125;
6709#line 441
6710 __cil_tmp127 = & clen;
6711#line 441
6712 __cil_tmp128 = *__cil_tmp127;
6713#line 441
6714 __cil_tmp129 = (u64 )__cil_tmp128;
6715#line 441
6716 zram_stat64_add(zram, __cil_tmp126, __cil_tmp129);
6717#line 442
6718 __cil_tmp130 = 184 + 60;
6719#line 442
6720 __cil_tmp131 = (unsigned long )zram;
6721#line 442
6722 __cil_tmp132 = __cil_tmp131 + __cil_tmp130;
6723#line 442
6724 __cil_tmp133 = (u32 *)__cil_tmp132;
6725#line 442
6726 zram_stat_inc(__cil_tmp133);
6727 }
6728 {
6729#line 443
6730 __cil_tmp134 = 1UL << 12;
6731#line 443
6732 __cil_tmp135 = __cil_tmp134 / 2UL;
6733#line 443
6734 __cil_tmp136 = & clen;
6735#line 443
6736 __cil_tmp137 = *__cil_tmp136;
6737#line 443
6738 if (__cil_tmp137 <= __cil_tmp135) {
6739 {
6740#line 444
6741 __cil_tmp138 = 184 + 64;
6742#line 444
6743 __cil_tmp139 = (unsigned long )zram;
6744#line 444
6745 __cil_tmp140 = __cil_tmp139 + __cil_tmp138;
6746#line 444
6747 __cil_tmp141 = (u32 *)__cil_tmp140;
6748#line 444
6749 zram_stat_inc(__cil_tmp141);
6750 }
6751 } else {
6752
6753 }
6754 }
6755#line 446
6756 return (0);
6757 out:
6758#line 449
6759 if (ret) {
6760 {
6761#line 450
6762 __cil_tmp142 = 184 + 32;
6763#line 450
6764 __cil_tmp143 = (unsigned long )zram;
6765#line 450
6766 __cil_tmp144 = __cil_tmp143 + __cil_tmp142;
6767#line 450
6768 __cil_tmp145 = (u64 *)__cil_tmp144;
6769#line 450
6770 zram_stat64_inc(zram, __cil_tmp145);
6771 }
6772 } else {
6773
6774 }
6775#line 451
6776 return (ret);
6777}
6778}
6779#line 454 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
6780static int zram_bvec_rw(struct zram *zram , struct bio_vec *bvec , u32 index , int offset ,
6781 struct bio *bio , int rw )
6782{ int ret ;
6783 unsigned long __cil_tmp8 ;
6784 unsigned long __cil_tmp9 ;
6785 struct rw_semaphore *__cil_tmp10 ;
6786 unsigned long __cil_tmp11 ;
6787 unsigned long __cil_tmp12 ;
6788 struct rw_semaphore *__cil_tmp13 ;
6789 unsigned long __cil_tmp14 ;
6790 unsigned long __cil_tmp15 ;
6791 struct rw_semaphore *__cil_tmp16 ;
6792 unsigned long __cil_tmp17 ;
6793 unsigned long __cil_tmp18 ;
6794 struct rw_semaphore *__cil_tmp19 ;
6795
6796 {
6797#line 459
6798 if (rw == 0) {
6799 {
6800#line 460
6801 __cil_tmp8 = (unsigned long )zram;
6802#line 460
6803 __cil_tmp9 = __cil_tmp8 + 56;
6804#line 460
6805 __cil_tmp10 = (struct rw_semaphore *)__cil_tmp9;
6806#line 460
6807 down_read(__cil_tmp10);
6808#line 461
6809 ret = zram_bvec_read(zram, bvec, index, offset, bio);
6810#line 462
6811 __cil_tmp11 = (unsigned long )zram;
6812#line 462
6813 __cil_tmp12 = __cil_tmp11 + 56;
6814#line 462
6815 __cil_tmp13 = (struct rw_semaphore *)__cil_tmp12;
6816#line 462
6817 up_read(__cil_tmp13);
6818 }
6819 } else {
6820 {
6821#line 464
6822 __cil_tmp14 = (unsigned long )zram;
6823#line 464
6824 __cil_tmp15 = __cil_tmp14 + 56;
6825#line 464
6826 __cil_tmp16 = (struct rw_semaphore *)__cil_tmp15;
6827#line 464
6828 down_write(__cil_tmp16);
6829#line 465
6830 ret = zram_bvec_write(zram, bvec, index, offset);
6831#line 466
6832 __cil_tmp17 = (unsigned long )zram;
6833#line 466
6834 __cil_tmp18 = __cil_tmp17 + 56;
6835#line 466
6836 __cil_tmp19 = (struct rw_semaphore *)__cil_tmp18;
6837#line 466
6838 up_write(__cil_tmp19);
6839 }
6840 }
6841#line 469
6842 return (ret);
6843}
6844}
6845#line 472 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
6846static void update_position(u32 *index , int *offset , struct bio_vec *bvec )
6847{ unsigned long __cil_tmp4 ;
6848 unsigned long __cil_tmp5 ;
6849 unsigned long __cil_tmp6 ;
6850 unsigned int __cil_tmp7 ;
6851 int __cil_tmp8 ;
6852 unsigned int __cil_tmp9 ;
6853 unsigned int __cil_tmp10 ;
6854 unsigned long __cil_tmp11 ;
6855 u32 __cil_tmp12 ;
6856 unsigned long __cil_tmp13 ;
6857 unsigned long __cil_tmp14 ;
6858 unsigned long __cil_tmp15 ;
6859 unsigned int __cil_tmp16 ;
6860 int __cil_tmp17 ;
6861 unsigned int __cil_tmp18 ;
6862 unsigned int __cil_tmp19 ;
6863 unsigned long __cil_tmp20 ;
6864 unsigned long __cil_tmp21 ;
6865
6866 {
6867 {
6868#line 474
6869 __cil_tmp4 = 1UL << 12;
6870#line 474
6871 __cil_tmp5 = (unsigned long )bvec;
6872#line 474
6873 __cil_tmp6 = __cil_tmp5 + 8;
6874#line 474
6875 __cil_tmp7 = *((unsigned int *)__cil_tmp6);
6876#line 474
6877 __cil_tmp8 = *offset;
6878#line 474
6879 __cil_tmp9 = (unsigned int )__cil_tmp8;
6880#line 474
6881 __cil_tmp10 = __cil_tmp9 + __cil_tmp7;
6882#line 474
6883 __cil_tmp11 = (unsigned long )__cil_tmp10;
6884#line 474
6885 if (__cil_tmp11 >= __cil_tmp4) {
6886#line 475
6887 __cil_tmp12 = *index;
6888#line 475
6889 *index = __cil_tmp12 + 1U;
6890 } else {
6891
6892 }
6893 }
6894#line 476
6895 __cil_tmp13 = 1UL << 12;
6896#line 476
6897 __cil_tmp14 = (unsigned long )bvec;
6898#line 476
6899 __cil_tmp15 = __cil_tmp14 + 8;
6900#line 476
6901 __cil_tmp16 = *((unsigned int *)__cil_tmp15);
6902#line 476
6903 __cil_tmp17 = *offset;
6904#line 476
6905 __cil_tmp18 = (unsigned int )__cil_tmp17;
6906#line 476
6907 __cil_tmp19 = __cil_tmp18 + __cil_tmp16;
6908#line 476
6909 __cil_tmp20 = (unsigned long )__cil_tmp19;
6910#line 476
6911 __cil_tmp21 = __cil_tmp20 % __cil_tmp13;
6912#line 476
6913 *offset = (int )__cil_tmp21;
6914#line 477
6915 return;
6916}
6917}
6918#line 479 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
6919static void __zram_make_request(struct zram *zram , struct bio *bio , int rw )
6920{ int i ;
6921 int offset ;
6922 u32 index ;
6923 struct bio_vec *bvec ;
6924 int max_transfer_size ;
6925 struct bio_vec bv ;
6926 int tmp___7 ;
6927 int tmp___8 ;
6928 int tmp___9 ;
6929 unsigned long __cil_tmp13 ;
6930 unsigned long __cil_tmp14 ;
6931 unsigned long __cil_tmp15 ;
6932 u64 *__cil_tmp16 ;
6933 unsigned long __cil_tmp17 ;
6934 unsigned long __cil_tmp18 ;
6935 unsigned long __cil_tmp19 ;
6936 u64 *__cil_tmp20 ;
6937 u32 *__cil_tmp21 ;
6938 sector_t __cil_tmp22 ;
6939 sector_t __cil_tmp23 ;
6940 int *__cil_tmp24 ;
6941 int __cil_tmp25 ;
6942 int __cil_tmp26 ;
6943 unsigned long __cil_tmp27 ;
6944 sector_t __cil_tmp28 ;
6945 unsigned long __cil_tmp29 ;
6946 unsigned long __cil_tmp30 ;
6947 unsigned long __cil_tmp31 ;
6948 unsigned long __cil_tmp32 ;
6949 unsigned short __cil_tmp33 ;
6950 unsigned long __cil_tmp34 ;
6951 unsigned long __cil_tmp35 ;
6952 struct bio_vec *__cil_tmp36 ;
6953 unsigned long __cil_tmp37 ;
6954 unsigned long __cil_tmp38 ;
6955 unsigned short __cil_tmp39 ;
6956 unsigned long __cil_tmp40 ;
6957 unsigned long __cil_tmp41 ;
6958 unsigned short __cil_tmp42 ;
6959 int __cil_tmp43 ;
6960 int *__cil_tmp44 ;
6961 int __cil_tmp45 ;
6962 unsigned long __cil_tmp46 ;
6963 unsigned long __cil_tmp47 ;
6964 unsigned long __cil_tmp48 ;
6965 unsigned int __cil_tmp49 ;
6966 unsigned long __cil_tmp50 ;
6967 unsigned long __cil_tmp51 ;
6968 unsigned int __cil_tmp52 ;
6969 struct bio_vec *__cil_tmp53 ;
6970 unsigned long __cil_tmp54 ;
6971 unsigned long __cil_tmp55 ;
6972 unsigned long __cil_tmp56 ;
6973 unsigned long __cil_tmp57 ;
6974 u32 *__cil_tmp58 ;
6975 u32 __cil_tmp59 ;
6976 int *__cil_tmp60 ;
6977 int __cil_tmp61 ;
6978 unsigned long __cil_tmp62 ;
6979 unsigned int __cil_tmp63 ;
6980 unsigned long __cil_tmp64 ;
6981 unsigned long __cil_tmp65 ;
6982 unsigned int __cil_tmp66 ;
6983 unsigned long __cil_tmp67 ;
6984 unsigned int __cil_tmp68 ;
6985 unsigned long __cil_tmp69 ;
6986 unsigned int __cil_tmp70 ;
6987 u32 *__cil_tmp71 ;
6988 u32 __cil_tmp72 ;
6989 u32 __cil_tmp73 ;
6990 u32 *__cil_tmp74 ;
6991 u32 __cil_tmp75 ;
6992 int *__cil_tmp76 ;
6993 int __cil_tmp77 ;
6994 unsigned long __cil_tmp78 ;
6995 unsigned long __cil_tmp79 ;
6996 unsigned long *__cil_tmp80 ;
6997 unsigned long volatile *__cil_tmp81 ;
6998
6999 {
7000#line 486
7001 if (rw == 0) {
7002#line 486
7003 goto case_0;
7004 } else
7005#line 489
7006 if (rw == 1) {
7007#line 489
7008 goto case_1;
7009 } else
7010#line 485
7011 if (0) {
7012 case_0:
7013 {
7014#line 487
7015 __cil_tmp13 = 184 + 8;
7016#line 487
7017 __cil_tmp14 = (unsigned long )zram;
7018#line 487
7019 __cil_tmp15 = __cil_tmp14 + __cil_tmp13;
7020#line 487
7021 __cil_tmp16 = (u64 *)__cil_tmp15;
7022#line 487
7023 zram_stat64_inc(zram, __cil_tmp16);
7024 }
7025#line 488
7026 goto switch_break;
7027 case_1:
7028 {
7029#line 490
7030 __cil_tmp17 = 184 + 16;
7031#line 490
7032 __cil_tmp18 = (unsigned long )zram;
7033#line 490
7034 __cil_tmp19 = __cil_tmp18 + __cil_tmp17;
7035#line 490
7036 __cil_tmp20 = (u64 *)__cil_tmp19;
7037#line 490
7038 zram_stat64_inc(zram, __cil_tmp20);
7039 }
7040#line 491
7041 goto switch_break;
7042 } else {
7043 switch_break: ;
7044 }
7045#line 494
7046 __cil_tmp21 = & index;
7047#line 494
7048 __cil_tmp22 = *((sector_t *)bio);
7049#line 494
7050 __cil_tmp23 = __cil_tmp22 >> 3;
7051#line 494
7052 *__cil_tmp21 = (u32 )__cil_tmp23;
7053#line 495
7054 __cil_tmp24 = & offset;
7055#line 495
7056 __cil_tmp25 = 1 << 3;
7057#line 495
7058 __cil_tmp26 = __cil_tmp25 - 1;
7059#line 495
7060 __cil_tmp27 = (unsigned long )__cil_tmp26;
7061#line 495
7062 __cil_tmp28 = *((sector_t *)bio);
7063#line 495
7064 __cil_tmp29 = __cil_tmp28 & __cil_tmp27;
7065#line 495
7066 __cil_tmp30 = __cil_tmp29 << 9;
7067#line 495
7068 *__cil_tmp24 = (int )__cil_tmp30;
7069#line 497
7070 __cil_tmp31 = (unsigned long )bio;
7071#line 497
7072 __cil_tmp32 = __cil_tmp31 + 42;
7073#line 497
7074 __cil_tmp33 = *((unsigned short *)__cil_tmp32);
7075#line 497
7076 __cil_tmp34 = (unsigned long )bio;
7077#line 497
7078 __cil_tmp35 = __cil_tmp34 + 72;
7079#line 497
7080 __cil_tmp36 = *((struct bio_vec **)__cil_tmp35);
7081#line 497
7082 bvec = __cil_tmp36 + __cil_tmp33;
7083#line 497
7084 __cil_tmp37 = (unsigned long )bio;
7085#line 497
7086 __cil_tmp38 = __cil_tmp37 + 42;
7087#line 497
7088 __cil_tmp39 = *((unsigned short *)__cil_tmp38);
7089#line 497
7090 i = (int )__cil_tmp39;
7091 {
7092#line 497
7093 while (1) {
7094 while_continue: ;
7095 {
7096#line 497
7097 __cil_tmp40 = (unsigned long )bio;
7098#line 497
7099 __cil_tmp41 = __cil_tmp40 + 40;
7100#line 497
7101 __cil_tmp42 = *((unsigned short *)__cil_tmp41);
7102#line 497
7103 __cil_tmp43 = (int )__cil_tmp42;
7104#line 497
7105 if (i < __cil_tmp43) {
7106
7107 } else {
7108#line 497
7109 goto while_break;
7110 }
7111 }
7112#line 498
7113 __cil_tmp44 = & offset;
7114#line 498
7115 __cil_tmp45 = *__cil_tmp44;
7116#line 498
7117 __cil_tmp46 = (unsigned long )__cil_tmp45;
7118#line 498
7119 __cil_tmp47 = 1UL << 12;
7120#line 498
7121 __cil_tmp48 = __cil_tmp47 - __cil_tmp46;
7122#line 498
7123 max_transfer_size = (int )__cil_tmp48;
7124 {
7125#line 500
7126 __cil_tmp49 = (unsigned int )max_transfer_size;
7127#line 500
7128 __cil_tmp50 = (unsigned long )bvec;
7129#line 500
7130 __cil_tmp51 = __cil_tmp50 + 8;
7131#line 500
7132 __cil_tmp52 = *((unsigned int *)__cil_tmp51);
7133#line 500
7134 if (__cil_tmp52 > __cil_tmp49) {
7135 {
7136#line 507
7137 __cil_tmp53 = & bv;
7138#line 507
7139 *((struct page **)__cil_tmp53) = *((struct page **)bvec);
7140#line 508
7141 __cil_tmp54 = (unsigned long )(& bv) + 8;
7142#line 508
7143 *((unsigned int *)__cil_tmp54) = (unsigned int )max_transfer_size;
7144#line 509
7145 __cil_tmp55 = (unsigned long )(& bv) + 12;
7146#line 509
7147 __cil_tmp56 = (unsigned long )bvec;
7148#line 509
7149 __cil_tmp57 = __cil_tmp56 + 12;
7150#line 509
7151 *((unsigned int *)__cil_tmp55) = *((unsigned int *)__cil_tmp57);
7152#line 511
7153 __cil_tmp58 = & index;
7154#line 511
7155 __cil_tmp59 = *__cil_tmp58;
7156#line 511
7157 __cil_tmp60 = & offset;
7158#line 511
7159 __cil_tmp61 = *__cil_tmp60;
7160#line 511
7161 tmp___7 = zram_bvec_rw(zram, & bv, __cil_tmp59, __cil_tmp61, bio, rw);
7162 }
7163#line 511
7164 if (tmp___7 < 0) {
7165#line 512
7166 goto out;
7167 } else {
7168
7169 }
7170 {
7171#line 514
7172 __cil_tmp62 = (unsigned long )(& bv) + 8;
7173#line 514
7174 __cil_tmp63 = (unsigned int )max_transfer_size;
7175#line 514
7176 __cil_tmp64 = (unsigned long )bvec;
7177#line 514
7178 __cil_tmp65 = __cil_tmp64 + 8;
7179#line 514
7180 __cil_tmp66 = *((unsigned int *)__cil_tmp65);
7181#line 514
7182 *((unsigned int *)__cil_tmp62) = __cil_tmp66 - __cil_tmp63;
7183#line 515
7184 __cil_tmp67 = (unsigned long )(& bv) + 12;
7185#line 515
7186 __cil_tmp68 = (unsigned int )max_transfer_size;
7187#line 515
7188 __cil_tmp69 = (unsigned long )(& bv) + 12;
7189#line 515
7190 __cil_tmp70 = *((unsigned int *)__cil_tmp69);
7191#line 515
7192 *((unsigned int *)__cil_tmp67) = __cil_tmp70 + __cil_tmp68;
7193#line 516
7194 __cil_tmp71 = & index;
7195#line 516
7196 __cil_tmp72 = *__cil_tmp71;
7197#line 516
7198 __cil_tmp73 = __cil_tmp72 + 1U;
7199#line 516
7200 tmp___8 = zram_bvec_rw(zram, & bv, __cil_tmp73, 0, bio, rw);
7201 }
7202#line 516
7203 if (tmp___8 < 0) {
7204#line 517
7205 goto out;
7206 } else {
7207
7208 }
7209 } else {
7210 {
7211#line 519
7212 __cil_tmp74 = & index;
7213#line 519
7214 __cil_tmp75 = *__cil_tmp74;
7215#line 519
7216 __cil_tmp76 = & offset;
7217#line 519
7218 __cil_tmp77 = *__cil_tmp76;
7219#line 519
7220 tmp___9 = zram_bvec_rw(zram, bvec, __cil_tmp75, __cil_tmp77, bio, rw);
7221 }
7222#line 519
7223 if (tmp___9 < 0) {
7224#line 521
7225 goto out;
7226 } else {
7227
7228 }
7229 }
7230 }
7231 {
7232#line 523
7233 update_position(& index, & offset, bvec);
7234#line 497
7235 bvec = bvec + 1;
7236#line 497
7237 i = i + 1;
7238 }
7239 }
7240 while_break: ;
7241 }
7242 {
7243#line 526
7244 __cil_tmp78 = (unsigned long )bio;
7245#line 526
7246 __cil_tmp79 = __cil_tmp78 + 24;
7247#line 526
7248 __cil_tmp80 = (unsigned long *)__cil_tmp79;
7249#line 526
7250 __cil_tmp81 = (unsigned long volatile *)__cil_tmp80;
7251#line 526
7252 set_bit(0U, __cil_tmp81);
7253#line 527
7254 bio_endio(bio, 0);
7255 }
7256#line 528
7257 return;
7258 out:
7259 {
7260#line 531
7261 bio_endio(bio, -5);
7262 }
7263#line 532
7264 return;
7265}
7266}
7267#line 537
7268__inline static int valid_io_request(struct zram *zram , struct bio *bio ) __attribute__((__no_instrument_function__)) ;
7269#line 537 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
7270__inline static int valid_io_request(struct zram *zram , struct bio *bio )
7271{ int tmp___7 ;
7272 long tmp___8 ;
7273 unsigned long __cil_tmp5 ;
7274 unsigned long __cil_tmp6 ;
7275 u64 __cil_tmp7 ;
7276 u64 __cil_tmp8 ;
7277 sector_t __cil_tmp9 ;
7278 u64 __cil_tmp10 ;
7279 int __cil_tmp11 ;
7280 int __cil_tmp12 ;
7281 unsigned long __cil_tmp13 ;
7282 sector_t __cil_tmp14 ;
7283 int __cil_tmp15 ;
7284 int __cil_tmp16 ;
7285 unsigned int __cil_tmp17 ;
7286 unsigned long __cil_tmp18 ;
7287 unsigned long __cil_tmp19 ;
7288 unsigned int __cil_tmp20 ;
7289 long __cil_tmp21 ;
7290
7291 {
7292 {
7293#line 539
7294 __cil_tmp5 = (unsigned long )zram;
7295#line 539
7296 __cil_tmp6 = __cil_tmp5 + 176;
7297#line 539
7298 __cil_tmp7 = *((u64 *)__cil_tmp6);
7299#line 539
7300 __cil_tmp8 = __cil_tmp7 >> 9;
7301#line 539
7302 __cil_tmp9 = *((sector_t *)bio);
7303#line 539
7304 __cil_tmp10 = (u64 )__cil_tmp9;
7305#line 539
7306 if (__cil_tmp10 >= __cil_tmp8) {
7307#line 539
7308 tmp___7 = 1;
7309 } else {
7310 {
7311#line 539
7312 __cil_tmp11 = 1 << 3;
7313#line 539
7314 __cil_tmp12 = __cil_tmp11 - 1;
7315#line 539
7316 __cil_tmp13 = (unsigned long )__cil_tmp12;
7317#line 539
7318 __cil_tmp14 = *((sector_t *)bio);
7319#line 539
7320 if (__cil_tmp14 & __cil_tmp13) {
7321#line 539
7322 tmp___7 = 1;
7323 } else {
7324 {
7325#line 539
7326 __cil_tmp15 = 1 << 12;
7327#line 539
7328 __cil_tmp16 = __cil_tmp15 - 1;
7329#line 539
7330 __cil_tmp17 = (unsigned int )__cil_tmp16;
7331#line 539
7332 __cil_tmp18 = (unsigned long )bio;
7333#line 539
7334 __cil_tmp19 = __cil_tmp18 + 48;
7335#line 539
7336 __cil_tmp20 = *((unsigned int *)__cil_tmp19);
7337#line 539
7338 if (__cil_tmp20 & __cil_tmp17) {
7339#line 539
7340 tmp___7 = 1;
7341 } else {
7342#line 539
7343 tmp___7 = 0;
7344 }
7345 }
7346 }
7347 }
7348 }
7349 }
7350 {
7351#line 539
7352 __cil_tmp21 = (long )tmp___7;
7353#line 539
7354 tmp___8 = __builtin_expect(__cil_tmp21, 0L);
7355 }
7356#line 539
7357 if (tmp___8) {
7358#line 544
7359 return (0);
7360 } else {
7361
7362 }
7363#line 548
7364 return (1);
7365}
7366}
7367#line 554 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
7368static void zram_make_request(struct request_queue *queue , struct bio *bio )
7369{ struct zram *zram ;
7370 long tmp___7 ;
7371 int tmp___8 ;
7372 long tmp___9 ;
7373 int tmp___10 ;
7374 unsigned long __cil_tmp8 ;
7375 unsigned long __cil_tmp9 ;
7376 void *__cil_tmp10 ;
7377 unsigned long __cil_tmp11 ;
7378 unsigned long __cil_tmp12 ;
7379 int __cil_tmp13 ;
7380 int __cil_tmp14 ;
7381 int __cil_tmp15 ;
7382 int __cil_tmp16 ;
7383 long __cil_tmp17 ;
7384 unsigned long __cil_tmp18 ;
7385 unsigned long __cil_tmp19 ;
7386 struct rw_semaphore *__cil_tmp20 ;
7387 unsigned long __cil_tmp21 ;
7388 unsigned long __cil_tmp22 ;
7389 int __cil_tmp23 ;
7390 int __cil_tmp24 ;
7391 int __cil_tmp25 ;
7392 int __cil_tmp26 ;
7393 long __cil_tmp27 ;
7394 unsigned long __cil_tmp28 ;
7395 unsigned long __cil_tmp29 ;
7396 unsigned long __cil_tmp30 ;
7397 u64 *__cil_tmp31 ;
7398 unsigned long __cil_tmp32 ;
7399 unsigned long __cil_tmp33 ;
7400 unsigned long __cil_tmp34 ;
7401 unsigned long __cil_tmp35 ;
7402 int __cil_tmp36 ;
7403 unsigned long __cil_tmp37 ;
7404 unsigned long __cil_tmp38 ;
7405 struct rw_semaphore *__cil_tmp39 ;
7406 unsigned long __cil_tmp40 ;
7407 unsigned long __cil_tmp41 ;
7408 struct rw_semaphore *__cil_tmp42 ;
7409
7410 {
7411 {
7412#line 556
7413 __cil_tmp8 = (unsigned long )queue;
7414#line 556
7415 __cil_tmp9 = __cil_tmp8 + 1136;
7416#line 556
7417 __cil_tmp10 = *((void **)__cil_tmp9);
7418#line 556
7419 zram = (struct zram *)__cil_tmp10;
7420#line 558
7421 __cil_tmp11 = (unsigned long )zram;
7422#line 558
7423 __cil_tmp12 = __cil_tmp11 + 120;
7424#line 558
7425 __cil_tmp13 = *((int *)__cil_tmp12);
7426#line 558
7427 __cil_tmp14 = ! __cil_tmp13;
7428#line 558
7429 __cil_tmp15 = ! __cil_tmp14;
7430#line 558
7431 __cil_tmp16 = ! __cil_tmp15;
7432#line 558
7433 __cil_tmp17 = (long )__cil_tmp16;
7434#line 558
7435 tmp___7 = __builtin_expect(__cil_tmp17, 0L);
7436 }
7437#line 558
7438 if (tmp___7) {
7439 {
7440#line 558
7441 tmp___8 = zram_init_device(zram);
7442 }
7443#line 558
7444 if (tmp___8) {
7445#line 559
7446 goto error;
7447 } else {
7448
7449 }
7450 } else {
7451
7452 }
7453 {
7454#line 561
7455 __cil_tmp18 = (unsigned long )zram;
7456#line 561
7457 __cil_tmp19 = __cil_tmp18 + 128;
7458#line 561
7459 __cil_tmp20 = (struct rw_semaphore *)__cil_tmp19;
7460#line 561
7461 down_read(__cil_tmp20);
7462#line 562
7463 __cil_tmp21 = (unsigned long )zram;
7464#line 562
7465 __cil_tmp22 = __cil_tmp21 + 120;
7466#line 562
7467 __cil_tmp23 = *((int *)__cil_tmp22);
7468#line 562
7469 __cil_tmp24 = ! __cil_tmp23;
7470#line 562
7471 __cil_tmp25 = ! __cil_tmp24;
7472#line 562
7473 __cil_tmp26 = ! __cil_tmp25;
7474#line 562
7475 __cil_tmp27 = (long )__cil_tmp26;
7476#line 562
7477 tmp___9 = __builtin_expect(__cil_tmp27, 0L);
7478 }
7479#line 562
7480 if (tmp___9) {
7481#line 563
7482 goto error_unlock;
7483 } else {
7484
7485 }
7486 {
7487#line 565
7488 tmp___10 = valid_io_request(zram, bio);
7489 }
7490#line 565
7491 if (tmp___10) {
7492
7493 } else {
7494 {
7495#line 566
7496 __cil_tmp28 = 184 + 40;
7497#line 566
7498 __cil_tmp29 = (unsigned long )zram;
7499#line 566
7500 __cil_tmp30 = __cil_tmp29 + __cil_tmp28;
7501#line 566
7502 __cil_tmp31 = (u64 *)__cil_tmp30;
7503#line 566
7504 zram_stat64_inc(zram, __cil_tmp31);
7505 }
7506#line 567
7507 goto error_unlock;
7508 }
7509 {
7510#line 570
7511 __cil_tmp32 = (unsigned long )bio;
7512#line 570
7513 __cil_tmp33 = __cil_tmp32 + 32;
7514#line 570
7515 __cil_tmp34 = *((unsigned long *)__cil_tmp33);
7516#line 570
7517 __cil_tmp35 = __cil_tmp34 & 1UL;
7518#line 570
7519 __cil_tmp36 = (int )__cil_tmp35;
7520#line 570
7521 __zram_make_request(zram, bio, __cil_tmp36);
7522#line 571
7523 __cil_tmp37 = (unsigned long )zram;
7524#line 571
7525 __cil_tmp38 = __cil_tmp37 + 128;
7526#line 571
7527 __cil_tmp39 = (struct rw_semaphore *)__cil_tmp38;
7528#line 571
7529 up_read(__cil_tmp39);
7530 }
7531#line 573
7532 return;
7533 error_unlock:
7534 {
7535#line 576
7536 __cil_tmp40 = (unsigned long )zram;
7537#line 576
7538 __cil_tmp41 = __cil_tmp40 + 128;
7539#line 576
7540 __cil_tmp42 = (struct rw_semaphore *)__cil_tmp41;
7541#line 576
7542 up_read(__cil_tmp42);
7543 }
7544 error:
7545 {
7546#line 578
7547 bio_endio(bio, -5);
7548 }
7549#line 579
7550 return;
7551}
7552}
7553#line 581 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
7554void __zram_reset_device(struct zram *zram )
7555{ size_t index ;
7556 void *handle ;
7557 int tmp___7 ;
7558 int tmp___8 ;
7559 long tmp___9 ;
7560 unsigned long __cil_tmp7 ;
7561 unsigned long __cil_tmp8 ;
7562 unsigned long __cil_tmp9 ;
7563 unsigned long __cil_tmp10 ;
7564 void *__cil_tmp11 ;
7565 void const *__cil_tmp12 ;
7566 unsigned long __cil_tmp13 ;
7567 unsigned long __cil_tmp14 ;
7568 void *__cil_tmp15 ;
7569 unsigned long __cil_tmp16 ;
7570 unsigned long __cil_tmp17 ;
7571 unsigned long __cil_tmp18 ;
7572 unsigned long __cil_tmp19 ;
7573 unsigned long __cil_tmp20 ;
7574 unsigned long __cil_tmp21 ;
7575 unsigned long __cil_tmp22 ;
7576 u64 __cil_tmp23 ;
7577 u64 __cil_tmp24 ;
7578 u64 __cil_tmp25 ;
7579 unsigned long __cil_tmp26 ;
7580 unsigned long __cil_tmp27 ;
7581 struct table *__cil_tmp28 ;
7582 struct table *__cil_tmp29 ;
7583 u32 __cil_tmp30 ;
7584 enum zram_pageflags __cil_tmp31 ;
7585 long __cil_tmp32 ;
7586 struct page *__cil_tmp33 ;
7587 struct zs_pool *__cil_tmp34 ;
7588 unsigned long __cil_tmp35 ;
7589 unsigned long __cil_tmp36 ;
7590 struct table *__cil_tmp37 ;
7591 void const *__cil_tmp38 ;
7592 unsigned long __cil_tmp39 ;
7593 unsigned long __cil_tmp40 ;
7594 void *__cil_tmp41 ;
7595 struct zs_pool *__cil_tmp42 ;
7596 void *__cil_tmp43 ;
7597 unsigned long __cil_tmp44 ;
7598 unsigned long __cil_tmp45 ;
7599 struct zram_stats *__cil_tmp46 ;
7600 void *__cil_tmp47 ;
7601 unsigned long __cil_tmp48 ;
7602 unsigned long __cil_tmp49 ;
7603
7604 {
7605 {
7606#line 585
7607 __cil_tmp7 = (unsigned long )zram;
7608#line 585
7609 __cil_tmp8 = __cil_tmp7 + 120;
7610#line 585
7611 *((int *)__cil_tmp8) = 0;
7612#line 588
7613 __cil_tmp9 = (unsigned long )zram;
7614#line 588
7615 __cil_tmp10 = __cil_tmp9 + 8;
7616#line 588
7617 __cil_tmp11 = *((void **)__cil_tmp10);
7618#line 588
7619 __cil_tmp12 = (void const *)__cil_tmp11;
7620#line 588
7621 kfree(__cil_tmp12);
7622#line 589
7623 __cil_tmp13 = (unsigned long )zram;
7624#line 589
7625 __cil_tmp14 = __cil_tmp13 + 16;
7626#line 589
7627 __cil_tmp15 = *((void **)__cil_tmp14);
7628#line 589
7629 __cil_tmp16 = (unsigned long )__cil_tmp15;
7630#line 589
7631 free_pages(__cil_tmp16, 1U);
7632#line 591
7633 __cil_tmp17 = (unsigned long )zram;
7634#line 591
7635 __cil_tmp18 = __cil_tmp17 + 8;
7636#line 591
7637 *((void **)__cil_tmp18) = (void *)0;
7638#line 592
7639 __cil_tmp19 = (unsigned long )zram;
7640#line 592
7641 __cil_tmp20 = __cil_tmp19 + 16;
7642#line 592
7643 *((void **)__cil_tmp20) = (void *)0;
7644#line 595
7645 index = (size_t )0;
7646 }
7647 {
7648#line 595
7649 while (1) {
7650 while_continue: ;
7651 {
7652#line 595
7653 __cil_tmp21 = (unsigned long )zram;
7654#line 595
7655 __cil_tmp22 = __cil_tmp21 + 176;
7656#line 595
7657 __cil_tmp23 = *((u64 *)__cil_tmp22);
7658#line 595
7659 __cil_tmp24 = __cil_tmp23 >> 12;
7660#line 595
7661 __cil_tmp25 = (u64 )index;
7662#line 595
7663 if (__cil_tmp25 < __cil_tmp24) {
7664
7665 } else {
7666#line 595
7667 goto while_break;
7668 }
7669 }
7670#line 596
7671 __cil_tmp26 = (unsigned long )zram;
7672#line 596
7673 __cil_tmp27 = __cil_tmp26 + 24;
7674#line 596
7675 __cil_tmp28 = *((struct table **)__cil_tmp27);
7676#line 596
7677 __cil_tmp29 = __cil_tmp28 + index;
7678#line 596
7679 handle = *((void **)__cil_tmp29);
7680#line 597
7681 if (! handle) {
7682#line 598
7683 goto __Cont;
7684 } else {
7685
7686 }
7687 {
7688#line 600
7689 __cil_tmp30 = (u32 )index;
7690#line 600
7691 __cil_tmp31 = (enum zram_pageflags )0;
7692#line 600
7693 tmp___7 = zram_test_flag(zram, __cil_tmp30, __cil_tmp31);
7694 }
7695#line 600
7696 if (tmp___7) {
7697#line 600
7698 tmp___8 = 1;
7699 } else {
7700#line 600
7701 tmp___8 = 0;
7702 }
7703 {
7704#line 600
7705 __cil_tmp32 = (long )tmp___8;
7706#line 600
7707 tmp___9 = __builtin_expect(__cil_tmp32, 0L);
7708 }
7709#line 600
7710 if (tmp___9) {
7711 {
7712#line 601
7713 __cil_tmp33 = (struct page *)handle;
7714#line 601
7715 __free_pages(__cil_tmp33, 0U);
7716 }
7717 } else {
7718 {
7719#line 603
7720 __cil_tmp34 = *((struct zs_pool **)zram);
7721#line 603
7722 zs_free(__cil_tmp34, handle);
7723 }
7724 }
7725 __Cont:
7726#line 595
7727 index = index + 1UL;
7728 }
7729 while_break: ;
7730 }
7731 {
7732#line 606
7733 __cil_tmp35 = (unsigned long )zram;
7734#line 606
7735 __cil_tmp36 = __cil_tmp35 + 24;
7736#line 606
7737 __cil_tmp37 = *((struct table **)__cil_tmp36);
7738#line 606
7739 __cil_tmp38 = (void const *)__cil_tmp37;
7740#line 606
7741 vfree(__cil_tmp38);
7742#line 607
7743 __cil_tmp39 = (unsigned long )zram;
7744#line 607
7745 __cil_tmp40 = __cil_tmp39 + 24;
7746#line 607
7747 __cil_tmp41 = (void *)0;
7748#line 607
7749 *((struct table **)__cil_tmp40) = (struct table *)__cil_tmp41;
7750#line 609
7751 __cil_tmp42 = *((struct zs_pool **)zram);
7752#line 609
7753 zs_destroy_pool(__cil_tmp42);
7754#line 610
7755 __cil_tmp43 = (void *)0;
7756#line 610
7757 *((struct zs_pool **)zram) = (struct zs_pool *)__cil_tmp43;
7758#line 613
7759 __cil_tmp44 = (unsigned long )zram;
7760#line 613
7761 __cil_tmp45 = __cil_tmp44 + 184;
7762#line 613
7763 __cil_tmp46 = (struct zram_stats *)__cil_tmp45;
7764#line 613
7765 __cil_tmp47 = (void *)__cil_tmp46;
7766#line 613
7767 memset(__cil_tmp47, 0, 72UL);
7768#line 615
7769 __cil_tmp48 = (unsigned long )zram;
7770#line 615
7771 __cil_tmp49 = __cil_tmp48 + 176;
7772#line 615
7773 *((u64 *)__cil_tmp49) = (u64 )0;
7774 }
7775#line 616
7776 return;
7777}
7778}
7779#line 618 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
7780void zram_reset_device(struct zram *zram )
7781{ unsigned long __cil_tmp2 ;
7782 unsigned long __cil_tmp3 ;
7783 struct rw_semaphore *__cil_tmp4 ;
7784 unsigned long __cil_tmp5 ;
7785 unsigned long __cil_tmp6 ;
7786 struct rw_semaphore *__cil_tmp7 ;
7787
7788 {
7789 {
7790#line 620
7791 __cil_tmp2 = (unsigned long )zram;
7792#line 620
7793 __cil_tmp3 = __cil_tmp2 + 128;
7794#line 620
7795 __cil_tmp4 = (struct rw_semaphore *)__cil_tmp3;
7796#line 620
7797 down_write(__cil_tmp4);
7798#line 621
7799 __zram_reset_device(zram);
7800#line 622
7801 __cil_tmp5 = (unsigned long )zram;
7802#line 622
7803 __cil_tmp6 = __cil_tmp5 + 128;
7804#line 622
7805 __cil_tmp7 = (struct rw_semaphore *)__cil_tmp6;
7806#line 622
7807 up_write(__cil_tmp7);
7808 }
7809#line 623
7810 return;
7811}
7812}
7813#line 677 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
7814static struct _ddebug __attribute__((__aligned__(8))) descriptor___0 __attribute__((__used__,
7815__section__("__verbose"))) = {"zram", "zram_init_device", "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c",
7816 "Initialization done!\n", 677U, 1U};
7817#line 625 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
7818int zram_init_device(struct zram *zram )
7819{ int ret ;
7820 size_t num_pages ;
7821 unsigned long tmp___7 ;
7822 void *tmp___8 ;
7823 long tmp___9 ;
7824 unsigned long __cil_tmp7 ;
7825 unsigned long __cil_tmp8 ;
7826 struct rw_semaphore *__cil_tmp9 ;
7827 unsigned long __cil_tmp10 ;
7828 unsigned long __cil_tmp11 ;
7829 unsigned long __cil_tmp12 ;
7830 unsigned long __cil_tmp13 ;
7831 struct rw_semaphore *__cil_tmp14 ;
7832 unsigned long __cil_tmp15 ;
7833 unsigned long __cil_tmp16 ;
7834 unsigned long __cil_tmp17 ;
7835 unsigned long __cil_tmp18 ;
7836 unsigned long __cil_tmp19 ;
7837 unsigned long __cil_tmp20 ;
7838 void *__cil_tmp21 ;
7839 unsigned long __cil_tmp22 ;
7840 unsigned long __cil_tmp23 ;
7841 unsigned long __cil_tmp24 ;
7842 unsigned long __cil_tmp25 ;
7843 void *__cil_tmp26 ;
7844 unsigned long __cil_tmp27 ;
7845 unsigned long __cil_tmp28 ;
7846 u64 __cil_tmp29 ;
7847 u64 __cil_tmp30 ;
7848 size_t __cil_tmp31 ;
7849 unsigned long __cil_tmp32 ;
7850 unsigned long __cil_tmp33 ;
7851 unsigned long __cil_tmp34 ;
7852 unsigned long __cil_tmp35 ;
7853 struct table *__cil_tmp36 ;
7854 unsigned long __cil_tmp37 ;
7855 unsigned long __cil_tmp38 ;
7856 struct gendisk *__cil_tmp39 ;
7857 unsigned long __cil_tmp40 ;
7858 unsigned long __cil_tmp41 ;
7859 u64 __cil_tmp42 ;
7860 u64 __cil_tmp43 ;
7861 sector_t __cil_tmp44 ;
7862 unsigned long __cil_tmp45 ;
7863 unsigned long __cil_tmp46 ;
7864 struct gendisk *__cil_tmp47 ;
7865 unsigned long __cil_tmp48 ;
7866 unsigned long __cil_tmp49 ;
7867 struct request_queue *__cil_tmp50 ;
7868 struct zs_pool *__cil_tmp51 ;
7869 unsigned long __cil_tmp52 ;
7870 unsigned long __cil_tmp53 ;
7871 unsigned long __cil_tmp54 ;
7872 unsigned long __cil_tmp55 ;
7873 struct rw_semaphore *__cil_tmp56 ;
7874 struct _ddebug __attribute__((__aligned__(8))) *__cil_tmp57 ;
7875 unsigned int __cil_tmp58 ;
7876 unsigned int __cil_tmp59 ;
7877 int __cil_tmp60 ;
7878 int __cil_tmp61 ;
7879 long __cil_tmp62 ;
7880 unsigned long __cil_tmp63 ;
7881 unsigned long __cil_tmp64 ;
7882 unsigned long __cil_tmp65 ;
7883 unsigned long __cil_tmp66 ;
7884 struct rw_semaphore *__cil_tmp67 ;
7885
7886 {
7887 {
7888#line 630
7889 __cil_tmp7 = (unsigned long )zram;
7890#line 630
7891 __cil_tmp8 = __cil_tmp7 + 128;
7892#line 630
7893 __cil_tmp9 = (struct rw_semaphore *)__cil_tmp8;
7894#line 630
7895 down_write(__cil_tmp9);
7896 }
7897 {
7898#line 632
7899 __cil_tmp10 = (unsigned long )zram;
7900#line 632
7901 __cil_tmp11 = __cil_tmp10 + 120;
7902#line 632
7903 if (*((int *)__cil_tmp11)) {
7904 {
7905#line 633
7906 __cil_tmp12 = (unsigned long )zram;
7907#line 633
7908 __cil_tmp13 = __cil_tmp12 + 128;
7909#line 633
7910 __cil_tmp14 = (struct rw_semaphore *)__cil_tmp13;
7911#line 633
7912 up_write(__cil_tmp14);
7913 }
7914#line 634
7915 return (0);
7916 } else {
7917
7918 }
7919 }
7920 {
7921#line 637
7922 __cil_tmp15 = totalram_pages << 12;
7923#line 637
7924 zram_set_disksize(zram, __cil_tmp15);
7925#line 639
7926 __cil_tmp16 = (unsigned long )zram;
7927#line 639
7928 __cil_tmp17 = __cil_tmp16 + 8;
7929#line 639
7930 __cil_tmp18 = 16384UL * 8UL;
7931#line 639
7932 *((void **)__cil_tmp17) = kzalloc(__cil_tmp18, 208U);
7933 }
7934 {
7935#line 640
7936 __cil_tmp19 = (unsigned long )zram;
7937#line 640
7938 __cil_tmp20 = __cil_tmp19 + 8;
7939#line 640
7940 __cil_tmp21 = *((void **)__cil_tmp20);
7941#line 640
7942 if (! __cil_tmp21) {
7943 {
7944#line 641
7945 printk("<3>zram: Error allocating compressor working memory!\n");
7946#line 642
7947 ret = -12;
7948 }
7949#line 643
7950 goto fail_no_table;
7951 } else {
7952
7953 }
7954 }
7955 {
7956#line 646
7957 tmp___7 = __get_free_pages(32976U, 1U);
7958#line 646
7959 __cil_tmp22 = (unsigned long )zram;
7960#line 646
7961 __cil_tmp23 = __cil_tmp22 + 16;
7962#line 646
7963 *((void **)__cil_tmp23) = (void *)tmp___7;
7964 }
7965 {
7966#line 648
7967 __cil_tmp24 = (unsigned long )zram;
7968#line 648
7969 __cil_tmp25 = __cil_tmp24 + 16;
7970#line 648
7971 __cil_tmp26 = *((void **)__cil_tmp25);
7972#line 648
7973 if (! __cil_tmp26) {
7974 {
7975#line 649
7976 printk("<3>zram: Error allocating compressor buffer space\n");
7977#line 650
7978 ret = -12;
7979 }
7980#line 651
7981 goto fail_no_table;
7982 } else {
7983
7984 }
7985 }
7986 {
7987#line 654
7988 __cil_tmp27 = (unsigned long )zram;
7989#line 654
7990 __cil_tmp28 = __cil_tmp27 + 176;
7991#line 654
7992 __cil_tmp29 = *((u64 *)__cil_tmp28);
7993#line 654
7994 __cil_tmp30 = __cil_tmp29 >> 12;
7995#line 654
7996 num_pages = (size_t )__cil_tmp30;
7997#line 655
7998 __cil_tmp31 = num_pages * 12UL;
7999#line 655
8000 tmp___8 = vzalloc(__cil_tmp31);
8001#line 655
8002 __cil_tmp32 = (unsigned long )zram;
8003#line 655
8004 __cil_tmp33 = __cil_tmp32 + 24;
8005#line 655
8006 *((struct table **)__cil_tmp33) = (struct table *)tmp___8;
8007 }
8008 {
8009#line 656
8010 __cil_tmp34 = (unsigned long )zram;
8011#line 656
8012 __cil_tmp35 = __cil_tmp34 + 24;
8013#line 656
8014 __cil_tmp36 = *((struct table **)__cil_tmp35);
8015#line 656
8016 if (! __cil_tmp36) {
8017 {
8018#line 657
8019 printk("<3>zram: Error allocating zram address table\n");
8020#line 658
8021 ret = -12;
8022 }
8023#line 659
8024 goto fail_no_table;
8025 } else {
8026
8027 }
8028 }
8029 {
8030#line 662
8031 __cil_tmp37 = (unsigned long )zram;
8032#line 662
8033 __cil_tmp38 = __cil_tmp37 + 112;
8034#line 662
8035 __cil_tmp39 = *((struct gendisk **)__cil_tmp38);
8036#line 662
8037 __cil_tmp40 = (unsigned long )zram;
8038#line 662
8039 __cil_tmp41 = __cil_tmp40 + 176;
8040#line 662
8041 __cil_tmp42 = *((u64 *)__cil_tmp41);
8042#line 662
8043 __cil_tmp43 = __cil_tmp42 >> 9;
8044#line 662
8045 __cil_tmp44 = (sector_t )__cil_tmp43;
8046#line 662
8047 set_capacity(__cil_tmp39, __cil_tmp44);
8048#line 665
8049 __cil_tmp45 = (unsigned long )zram;
8050#line 665
8051 __cil_tmp46 = __cil_tmp45 + 112;
8052#line 665
8053 __cil_tmp47 = *((struct gendisk **)__cil_tmp46);
8054#line 665
8055 __cil_tmp48 = (unsigned long )__cil_tmp47;
8056#line 665
8057 __cil_tmp49 = __cil_tmp48 + 960;
8058#line 665
8059 __cil_tmp50 = *((struct request_queue **)__cil_tmp49);
8060#line 665
8061 queue_flag_set_unlocked(12U, __cil_tmp50);
8062#line 667
8063 *((struct zs_pool **)zram) = zs_create_pool("zram", 18U);
8064 }
8065 {
8066#line 668
8067 __cil_tmp51 = *((struct zs_pool **)zram);
8068#line 668
8069 if (! __cil_tmp51) {
8070 {
8071#line 669
8072 printk("<3>zram: Error creating memory pool\n");
8073#line 670
8074 ret = -12;
8075 }
8076#line 671
8077 goto fail;
8078 } else {
8079
8080 }
8081 }
8082 {
8083#line 674
8084 __cil_tmp52 = (unsigned long )zram;
8085#line 674
8086 __cil_tmp53 = __cil_tmp52 + 120;
8087#line 674
8088 *((int *)__cil_tmp53) = 1;
8089#line 675
8090 __cil_tmp54 = (unsigned long )zram;
8091#line 675
8092 __cil_tmp55 = __cil_tmp54 + 128;
8093#line 675
8094 __cil_tmp56 = (struct rw_semaphore *)__cil_tmp55;
8095#line 675
8096 up_write(__cil_tmp56);
8097 }
8098 {
8099#line 677
8100 while (1) {
8101 while_continue: ;
8102 {
8103#line 677
8104 __cil_tmp57 = & descriptor___0;
8105#line 677
8106 __cil_tmp58 = __cil_tmp57->flags;
8107#line 677
8108 __cil_tmp59 = __cil_tmp58 & 1U;
8109#line 677
8110 __cil_tmp60 = ! __cil_tmp59;
8111#line 677
8112 __cil_tmp61 = ! __cil_tmp60;
8113#line 677
8114 __cil_tmp62 = (long )__cil_tmp61;
8115#line 677
8116 tmp___9 = __builtin_expect(__cil_tmp62, 0L);
8117 }
8118#line 677
8119 if (tmp___9) {
8120 {
8121#line 677
8122 __dynamic_pr_debug(& descriptor___0, "zram: Initialization done!\n");
8123 }
8124 } else {
8125
8126 }
8127#line 677
8128 goto while_break;
8129 }
8130 while_break: ;
8131 }
8132#line 678
8133 return (0);
8134 fail_no_table:
8135#line 682
8136 __cil_tmp63 = (unsigned long )zram;
8137#line 682
8138 __cil_tmp64 = __cil_tmp63 + 176;
8139#line 682
8140 *((u64 *)__cil_tmp64) = (u64 )0;
8141 fail:
8142 {
8143#line 684
8144 __zram_reset_device(zram);
8145#line 685
8146 __cil_tmp65 = (unsigned long )zram;
8147#line 685
8148 __cil_tmp66 = __cil_tmp65 + 128;
8149#line 685
8150 __cil_tmp67 = (struct rw_semaphore *)__cil_tmp66;
8151#line 685
8152 up_write(__cil_tmp67);
8153#line 686
8154 printk("<3>zram: Initialization failed: err=%d\n", ret);
8155 }
8156#line 687
8157 return (ret);
8158}
8159}
8160#line 690 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
8161static void zram_slot_free_notify(struct block_device *bdev , unsigned long index )
8162{ struct zram *zram ;
8163 unsigned long __cil_tmp4 ;
8164 unsigned long __cil_tmp5 ;
8165 struct gendisk *__cil_tmp6 ;
8166 unsigned long __cil_tmp7 ;
8167 unsigned long __cil_tmp8 ;
8168 void *__cil_tmp9 ;
8169 unsigned long __cil_tmp10 ;
8170 unsigned long __cil_tmp11 ;
8171 unsigned long __cil_tmp12 ;
8172 u64 *__cil_tmp13 ;
8173
8174 {
8175 {
8176#line 695
8177 __cil_tmp4 = (unsigned long )bdev;
8178#line 695
8179 __cil_tmp5 = __cil_tmp4 + 184;
8180#line 695
8181 __cil_tmp6 = *((struct gendisk **)__cil_tmp5);
8182#line 695
8183 __cil_tmp7 = (unsigned long )__cil_tmp6;
8184#line 695
8185 __cil_tmp8 = __cil_tmp7 + 968;
8186#line 695
8187 __cil_tmp9 = *((void **)__cil_tmp8);
8188#line 695
8189 zram = (struct zram *)__cil_tmp9;
8190#line 696
8191 zram_free_page(zram, index);
8192#line 697
8193 __cil_tmp10 = 184 + 48;
8194#line 697
8195 __cil_tmp11 = (unsigned long )zram;
8196#line 697
8197 __cil_tmp12 = __cil_tmp11 + __cil_tmp10;
8198#line 697
8199 __cil_tmp13 = (u64 *)__cil_tmp12;
8200#line 697
8201 zram_stat64_inc(zram, __cil_tmp13);
8202 }
8203#line 698
8204 return;
8205}
8206}
8207#line 700 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
8208static struct block_device_operations const zram_devops =
8209#line 700
8210 {(int (*)(struct block_device * , fmode_t ))0, (int (*)(struct gendisk * , fmode_t ))0,
8211 (int (*)(struct block_device * , fmode_t , unsigned int , unsigned long ))0,
8212 (int (*)(struct block_device * , fmode_t , unsigned int , unsigned long ))0,
8213 (int (*)(struct block_device * , sector_t , void ** , unsigned long * ))0, (unsigned int (*)(struct gendisk *disk ,
8214 unsigned int clearing ))0,
8215 (int (*)(struct gendisk * ))0, (void (*)(struct gendisk * ))0, (int (*)(struct gendisk * ))0,
8216 (int (*)(struct block_device * , struct hd_geometry * ))0, & zram_slot_free_notify,
8217 & __this_module};
8218#line 709 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
8219static struct lock_class_key __key___4 ;
8220#line 710 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
8221static struct lock_class_key __key___5 ;
8222#line 711 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
8223static struct lock_class_key __key___6 ;
8224#line 705 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
8225static int create_device(struct zram *zram , int device_id )
8226{ int ret ;
8227 unsigned long __cil_tmp4 ;
8228 unsigned long __cil_tmp5 ;
8229 struct rw_semaphore *__cil_tmp6 ;
8230 unsigned long __cil_tmp7 ;
8231 unsigned long __cil_tmp8 ;
8232 struct rw_semaphore *__cil_tmp9 ;
8233 unsigned long __cil_tmp10 ;
8234 unsigned long __cil_tmp11 ;
8235 spinlock_t *__cil_tmp12 ;
8236 unsigned long __cil_tmp13 ;
8237 unsigned long __cil_tmp14 ;
8238 struct raw_spinlock *__cil_tmp15 ;
8239 unsigned long __cil_tmp16 ;
8240 unsigned long __cil_tmp17 ;
8241 unsigned long __cil_tmp18 ;
8242 unsigned long __cil_tmp19 ;
8243 struct request_queue *__cil_tmp20 ;
8244 unsigned long __cil_tmp21 ;
8245 unsigned long __cil_tmp22 ;
8246 struct request_queue *__cil_tmp23 ;
8247 unsigned long __cil_tmp24 ;
8248 unsigned long __cil_tmp25 ;
8249 struct request_queue *__cil_tmp26 ;
8250 unsigned long __cil_tmp27 ;
8251 unsigned long __cil_tmp28 ;
8252 unsigned long __cil_tmp29 ;
8253 unsigned long __cil_tmp30 ;
8254 unsigned long __cil_tmp31 ;
8255 unsigned long __cil_tmp32 ;
8256 struct gendisk *__cil_tmp33 ;
8257 unsigned long __cil_tmp34 ;
8258 unsigned long __cil_tmp35 ;
8259 struct request_queue *__cil_tmp36 ;
8260 unsigned long __cil_tmp37 ;
8261 unsigned long __cil_tmp38 ;
8262 struct gendisk *__cil_tmp39 ;
8263 unsigned long __cil_tmp40 ;
8264 unsigned long __cil_tmp41 ;
8265 struct gendisk *__cil_tmp42 ;
8266 unsigned long __cil_tmp43 ;
8267 unsigned long __cil_tmp44 ;
8268 unsigned long __cil_tmp45 ;
8269 unsigned long __cil_tmp46 ;
8270 struct gendisk *__cil_tmp47 ;
8271 unsigned long __cil_tmp48 ;
8272 unsigned long __cil_tmp49 ;
8273 unsigned long __cil_tmp50 ;
8274 unsigned long __cil_tmp51 ;
8275 struct gendisk *__cil_tmp52 ;
8276 unsigned long __cil_tmp53 ;
8277 unsigned long __cil_tmp54 ;
8278 unsigned long __cil_tmp55 ;
8279 unsigned long __cil_tmp56 ;
8280 unsigned long __cil_tmp57 ;
8281 unsigned long __cil_tmp58 ;
8282 struct gendisk *__cil_tmp59 ;
8283 unsigned long __cil_tmp60 ;
8284 unsigned long __cil_tmp61 ;
8285 unsigned long __cil_tmp62 ;
8286 unsigned long __cil_tmp63 ;
8287 unsigned long __cil_tmp64 ;
8288 unsigned long __cil_tmp65 ;
8289 struct gendisk *__cil_tmp66 ;
8290 unsigned long __cil_tmp67 ;
8291 unsigned long __cil_tmp68 ;
8292 char *__cil_tmp69 ;
8293 size_t __cil_tmp70 ;
8294 unsigned long __cil_tmp71 ;
8295 unsigned long __cil_tmp72 ;
8296 struct gendisk *__cil_tmp73 ;
8297 sector_t __cil_tmp74 ;
8298 unsigned long __cil_tmp75 ;
8299 unsigned long __cil_tmp76 ;
8300 struct gendisk *__cil_tmp77 ;
8301 unsigned long __cil_tmp78 ;
8302 unsigned long __cil_tmp79 ;
8303 struct request_queue *__cil_tmp80 ;
8304 unsigned long __cil_tmp81 ;
8305 unsigned int __cil_tmp82 ;
8306 unsigned long __cil_tmp83 ;
8307 unsigned long __cil_tmp84 ;
8308 struct gendisk *__cil_tmp85 ;
8309 unsigned long __cil_tmp86 ;
8310 unsigned long __cil_tmp87 ;
8311 struct request_queue *__cil_tmp88 ;
8312 int __cil_tmp89 ;
8313 unsigned short __cil_tmp90 ;
8314 unsigned long __cil_tmp91 ;
8315 unsigned long __cil_tmp92 ;
8316 struct gendisk *__cil_tmp93 ;
8317 unsigned long __cil_tmp94 ;
8318 unsigned long __cil_tmp95 ;
8319 struct request_queue *__cil_tmp96 ;
8320 unsigned long __cil_tmp97 ;
8321 unsigned int __cil_tmp98 ;
8322 unsigned long __cil_tmp99 ;
8323 unsigned long __cil_tmp100 ;
8324 struct gendisk *__cil_tmp101 ;
8325 unsigned long __cil_tmp102 ;
8326 unsigned long __cil_tmp103 ;
8327 struct request_queue *__cil_tmp104 ;
8328 unsigned long __cil_tmp105 ;
8329 unsigned int __cil_tmp106 ;
8330 unsigned long __cil_tmp107 ;
8331 unsigned long __cil_tmp108 ;
8332 struct gendisk *__cil_tmp109 ;
8333 unsigned long __cil_tmp110 ;
8334 unsigned long __cil_tmp111 ;
8335 unsigned long __cil_tmp112 ;
8336 unsigned long __cil_tmp113 ;
8337 struct gendisk *__cil_tmp114 ;
8338 unsigned long __cil_tmp115 ;
8339 unsigned long __cil_tmp116 ;
8340 struct kobject *__cil_tmp117 ;
8341 struct attribute_group const *__cil_tmp118 ;
8342 unsigned long __cil_tmp119 ;
8343 unsigned long __cil_tmp120 ;
8344
8345 {
8346#line 707
8347 ret = 0;
8348 {
8349#line 709
8350 while (1) {
8351 while_continue: ;
8352 {
8353#line 709
8354 __cil_tmp4 = (unsigned long )zram;
8355#line 709
8356 __cil_tmp5 = __cil_tmp4 + 56;
8357#line 709
8358 __cil_tmp6 = (struct rw_semaphore *)__cil_tmp5;
8359#line 709
8360 __init_rwsem(__cil_tmp6, "&zram->lock", & __key___4);
8361 }
8362#line 709
8363 goto while_break;
8364 }
8365 while_break: ;
8366 }
8367 {
8368#line 710
8369 while (1) {
8370 while_continue___0: ;
8371 {
8372#line 710
8373 __cil_tmp7 = (unsigned long )zram;
8374#line 710
8375 __cil_tmp8 = __cil_tmp7 + 128;
8376#line 710
8377 __cil_tmp9 = (struct rw_semaphore *)__cil_tmp8;
8378#line 710
8379 __init_rwsem(__cil_tmp9, "&zram->init_lock", & __key___5);
8380 }
8381#line 710
8382 goto while_break___0;
8383 }
8384 while_break___0: ;
8385 }
8386 {
8387#line 711
8388 while (1) {
8389 while_continue___1: ;
8390 {
8391#line 711
8392 __cil_tmp10 = (unsigned long )zram;
8393#line 711
8394 __cil_tmp11 = __cil_tmp10 + 32;
8395#line 711
8396 __cil_tmp12 = (spinlock_t *)__cil_tmp11;
8397#line 711
8398 spinlock_check(__cil_tmp12);
8399 }
8400 {
8401#line 711
8402 while (1) {
8403 while_continue___2: ;
8404 {
8405#line 711
8406 __cil_tmp13 = (unsigned long )zram;
8407#line 711
8408 __cil_tmp14 = __cil_tmp13 + 32;
8409#line 711
8410 __cil_tmp15 = (struct raw_spinlock *)__cil_tmp14;
8411#line 711
8412 __raw_spin_lock_init(__cil_tmp15, "&(&zram->stat64_lock)->rlock", & __key___6);
8413 }
8414#line 711
8415 goto while_break___2;
8416 }
8417 while_break___2: ;
8418 }
8419#line 711
8420 goto while_break___1;
8421 }
8422 while_break___1: ;
8423 }
8424 {
8425#line 713
8426 __cil_tmp16 = (unsigned long )zram;
8427#line 713
8428 __cil_tmp17 = __cil_tmp16 + 104;
8429#line 713
8430 *((struct request_queue **)__cil_tmp17) = blk_alloc_queue(208U);
8431 }
8432 {
8433#line 714
8434 __cil_tmp18 = (unsigned long )zram;
8435#line 714
8436 __cil_tmp19 = __cil_tmp18 + 104;
8437#line 714
8438 __cil_tmp20 = *((struct request_queue **)__cil_tmp19);
8439#line 714
8440 if (! __cil_tmp20) {
8441 {
8442#line 715
8443 printk("<3>zram: Error allocating disk queue for device %d\n", device_id);
8444#line 717
8445 ret = -12;
8446 }
8447#line 718
8448 goto out;
8449 } else {
8450
8451 }
8452 }
8453 {
8454#line 721
8455 __cil_tmp21 = (unsigned long )zram;
8456#line 721
8457 __cil_tmp22 = __cil_tmp21 + 104;
8458#line 721
8459 __cil_tmp23 = *((struct request_queue **)__cil_tmp22);
8460#line 721
8461 blk_queue_make_request(__cil_tmp23, & zram_make_request);
8462#line 722
8463 __cil_tmp24 = (unsigned long )zram;
8464#line 722
8465 __cil_tmp25 = __cil_tmp24 + 104;
8466#line 722
8467 __cil_tmp26 = *((struct request_queue **)__cil_tmp25);
8468#line 722
8469 __cil_tmp27 = (unsigned long )__cil_tmp26;
8470#line 722
8471 __cil_tmp28 = __cil_tmp27 + 1136;
8472#line 722
8473 *((void **)__cil_tmp28) = (void *)zram;
8474#line 725
8475 __cil_tmp29 = (unsigned long )zram;
8476#line 725
8477 __cil_tmp30 = __cil_tmp29 + 112;
8478#line 725
8479 *((struct gendisk **)__cil_tmp30) = alloc_disk(1);
8480 }
8481 {
8482#line 726
8483 __cil_tmp31 = (unsigned long )zram;
8484#line 726
8485 __cil_tmp32 = __cil_tmp31 + 112;
8486#line 726
8487 __cil_tmp33 = *((struct gendisk **)__cil_tmp32);
8488#line 726
8489 if (! __cil_tmp33) {
8490 {
8491#line 727
8492 __cil_tmp34 = (unsigned long )zram;
8493#line 727
8494 __cil_tmp35 = __cil_tmp34 + 104;
8495#line 727
8496 __cil_tmp36 = *((struct request_queue **)__cil_tmp35);
8497#line 727
8498 blk_cleanup_queue(__cil_tmp36);
8499#line 728
8500 printk("<4>zram: Error allocating disk structure for device %d\n", device_id);
8501#line 730
8502 ret = -12;
8503 }
8504#line 731
8505 goto out;
8506 } else {
8507
8508 }
8509 }
8510 {
8511#line 734
8512 __cil_tmp37 = (unsigned long )zram;
8513#line 734
8514 __cil_tmp38 = __cil_tmp37 + 112;
8515#line 734
8516 __cil_tmp39 = *((struct gendisk **)__cil_tmp38);
8517#line 734
8518 *((int *)__cil_tmp39) = zram_major;
8519#line 735
8520 __cil_tmp40 = (unsigned long )zram;
8521#line 735
8522 __cil_tmp41 = __cil_tmp40 + 112;
8523#line 735
8524 __cil_tmp42 = *((struct gendisk **)__cil_tmp41);
8525#line 735
8526 __cil_tmp43 = (unsigned long )__cil_tmp42;
8527#line 735
8528 __cil_tmp44 = __cil_tmp43 + 4;
8529#line 735
8530 *((int *)__cil_tmp44) = device_id;
8531#line 736
8532 __cil_tmp45 = (unsigned long )zram;
8533#line 736
8534 __cil_tmp46 = __cil_tmp45 + 112;
8535#line 736
8536 __cil_tmp47 = *((struct gendisk **)__cil_tmp46);
8537#line 736
8538 __cil_tmp48 = (unsigned long )__cil_tmp47;
8539#line 736
8540 __cil_tmp49 = __cil_tmp48 + 952;
8541#line 736
8542 *((struct block_device_operations const **)__cil_tmp49) = & zram_devops;
8543#line 737
8544 __cil_tmp50 = (unsigned long )zram;
8545#line 737
8546 __cil_tmp51 = __cil_tmp50 + 112;
8547#line 737
8548 __cil_tmp52 = *((struct gendisk **)__cil_tmp51);
8549#line 737
8550 __cil_tmp53 = (unsigned long )__cil_tmp52;
8551#line 737
8552 __cil_tmp54 = __cil_tmp53 + 960;
8553#line 737
8554 __cil_tmp55 = (unsigned long )zram;
8555#line 737
8556 __cil_tmp56 = __cil_tmp55 + 104;
8557#line 737
8558 *((struct request_queue **)__cil_tmp54) = *((struct request_queue **)__cil_tmp56);
8559#line 738
8560 __cil_tmp57 = (unsigned long )zram;
8561#line 738
8562 __cil_tmp58 = __cil_tmp57 + 112;
8563#line 738
8564 __cil_tmp59 = *((struct gendisk **)__cil_tmp58);
8565#line 738
8566 __cil_tmp60 = (unsigned long )__cil_tmp59;
8567#line 738
8568 __cil_tmp61 = __cil_tmp60 + 968;
8569#line 738
8570 *((void **)__cil_tmp61) = (void *)zram;
8571#line 739
8572 __cil_tmp62 = 0 * 1UL;
8573#line 739
8574 __cil_tmp63 = 12 + __cil_tmp62;
8575#line 739
8576 __cil_tmp64 = (unsigned long )zram;
8577#line 739
8578 __cil_tmp65 = __cil_tmp64 + 112;
8579#line 739
8580 __cil_tmp66 = *((struct gendisk **)__cil_tmp65);
8581#line 739
8582 __cil_tmp67 = (unsigned long )__cil_tmp66;
8583#line 739
8584 __cil_tmp68 = __cil_tmp67 + __cil_tmp63;
8585#line 739
8586 __cil_tmp69 = (char *)__cil_tmp68;
8587#line 739
8588 __cil_tmp70 = (size_t )16;
8589#line 739
8590 snprintf(__cil_tmp69, __cil_tmp70, "zram%d", device_id);
8591#line 742
8592 __cil_tmp71 = (unsigned long )zram;
8593#line 742
8594 __cil_tmp72 = __cil_tmp71 + 112;
8595#line 742
8596 __cil_tmp73 = *((struct gendisk **)__cil_tmp72);
8597#line 742
8598 __cil_tmp74 = (sector_t )0;
8599#line 742
8600 set_capacity(__cil_tmp73, __cil_tmp74);
8601#line 748
8602 __cil_tmp75 = (unsigned long )zram;
8603#line 748
8604 __cil_tmp76 = __cil_tmp75 + 112;
8605#line 748
8606 __cil_tmp77 = *((struct gendisk **)__cil_tmp76);
8607#line 748
8608 __cil_tmp78 = (unsigned long )__cil_tmp77;
8609#line 748
8610 __cil_tmp79 = __cil_tmp78 + 960;
8611#line 748
8612 __cil_tmp80 = *((struct request_queue **)__cil_tmp79);
8613#line 748
8614 __cil_tmp81 = 1UL << 12;
8615#line 748
8616 __cil_tmp82 = (unsigned int )__cil_tmp81;
8617#line 748
8618 blk_queue_physical_block_size(__cil_tmp80, __cil_tmp82);
8619#line 749
8620 __cil_tmp83 = (unsigned long )zram;
8621#line 749
8622 __cil_tmp84 = __cil_tmp83 + 112;
8623#line 749
8624 __cil_tmp85 = *((struct gendisk **)__cil_tmp84);
8625#line 749
8626 __cil_tmp86 = (unsigned long )__cil_tmp85;
8627#line 749
8628 __cil_tmp87 = __cil_tmp86 + 960;
8629#line 749
8630 __cil_tmp88 = *((struct request_queue **)__cil_tmp87);
8631#line 749
8632 __cil_tmp89 = 1 << 12;
8633#line 749
8634 __cil_tmp90 = (unsigned short )__cil_tmp89;
8635#line 749
8636 blk_queue_logical_block_size(__cil_tmp88, __cil_tmp90);
8637#line 751
8638 __cil_tmp91 = (unsigned long )zram;
8639#line 751
8640 __cil_tmp92 = __cil_tmp91 + 112;
8641#line 751
8642 __cil_tmp93 = *((struct gendisk **)__cil_tmp92);
8643#line 751
8644 __cil_tmp94 = (unsigned long )__cil_tmp93;
8645#line 751
8646 __cil_tmp95 = __cil_tmp94 + 960;
8647#line 751
8648 __cil_tmp96 = *((struct request_queue **)__cil_tmp95);
8649#line 751
8650 __cil_tmp97 = 1UL << 12;
8651#line 751
8652 __cil_tmp98 = (unsigned int )__cil_tmp97;
8653#line 751
8654 blk_queue_io_min(__cil_tmp96, __cil_tmp98);
8655#line 752
8656 __cil_tmp99 = (unsigned long )zram;
8657#line 752
8658 __cil_tmp100 = __cil_tmp99 + 112;
8659#line 752
8660 __cil_tmp101 = *((struct gendisk **)__cil_tmp100);
8661#line 752
8662 __cil_tmp102 = (unsigned long )__cil_tmp101;
8663#line 752
8664 __cil_tmp103 = __cil_tmp102 + 960;
8665#line 752
8666 __cil_tmp104 = *((struct request_queue **)__cil_tmp103);
8667#line 752
8668 __cil_tmp105 = 1UL << 12;
8669#line 752
8670 __cil_tmp106 = (unsigned int )__cil_tmp105;
8671#line 752
8672 blk_queue_io_opt(__cil_tmp104, __cil_tmp106);
8673#line 754
8674 __cil_tmp107 = (unsigned long )zram;
8675#line 754
8676 __cil_tmp108 = __cil_tmp107 + 112;
8677#line 754
8678 __cil_tmp109 = *((struct gendisk **)__cil_tmp108);
8679#line 754
8680 add_disk(__cil_tmp109);
8681#line 756
8682 __cil_tmp110 = 32 + 16;
8683#line 756
8684 __cil_tmp111 = 72 + __cil_tmp110;
8685#line 756
8686 __cil_tmp112 = (unsigned long )zram;
8687#line 756
8688 __cil_tmp113 = __cil_tmp112 + 112;
8689#line 756
8690 __cil_tmp114 = *((struct gendisk **)__cil_tmp113);
8691#line 756
8692 __cil_tmp115 = (unsigned long )__cil_tmp114;
8693#line 756
8694 __cil_tmp116 = __cil_tmp115 + __cil_tmp111;
8695#line 756
8696 __cil_tmp117 = (struct kobject *)__cil_tmp116;
8697#line 756
8698 __cil_tmp118 = (struct attribute_group const *)(& zram_disk_attr_group);
8699#line 756
8700 ret = (int )sysfs_create_group(__cil_tmp117, __cil_tmp118);
8701 }
8702#line 758
8703 if (ret < 0) {
8704 {
8705#line 759
8706 printk("<4>zram: Error creating sysfs group");
8707 }
8708#line 760
8709 goto out;
8710 } else {
8711
8712 }
8713#line 763
8714 __cil_tmp119 = (unsigned long )zram;
8715#line 763
8716 __cil_tmp120 = __cil_tmp119 + 120;
8717#line 763
8718 *((int *)__cil_tmp120) = 0;
8719 out:
8720#line 766
8721 return (ret);
8722}
8723}
8724#line 769 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
8725static void destroy_device(struct zram *zram )
8726{ unsigned long __cil_tmp2 ;
8727 unsigned long __cil_tmp3 ;
8728 unsigned long __cil_tmp4 ;
8729 unsigned long __cil_tmp5 ;
8730 struct gendisk *__cil_tmp6 ;
8731 unsigned long __cil_tmp7 ;
8732 unsigned long __cil_tmp8 ;
8733 struct kobject *__cil_tmp9 ;
8734 struct attribute_group const *__cil_tmp10 ;
8735 unsigned long __cil_tmp11 ;
8736 unsigned long __cil_tmp12 ;
8737 unsigned long __cil_tmp13 ;
8738 unsigned long __cil_tmp14 ;
8739 struct gendisk *__cil_tmp15 ;
8740 unsigned long __cil_tmp16 ;
8741 unsigned long __cil_tmp17 ;
8742 struct gendisk *__cil_tmp18 ;
8743 unsigned long __cil_tmp19 ;
8744 unsigned long __cil_tmp20 ;
8745 unsigned long __cil_tmp21 ;
8746 unsigned long __cil_tmp22 ;
8747 struct request_queue *__cil_tmp23 ;
8748
8749 {
8750 {
8751#line 771
8752 __cil_tmp2 = 32 + 16;
8753#line 771
8754 __cil_tmp3 = 72 + __cil_tmp2;
8755#line 771
8756 __cil_tmp4 = (unsigned long )zram;
8757#line 771
8758 __cil_tmp5 = __cil_tmp4 + 112;
8759#line 771
8760 __cil_tmp6 = *((struct gendisk **)__cil_tmp5);
8761#line 771
8762 __cil_tmp7 = (unsigned long )__cil_tmp6;
8763#line 771
8764 __cil_tmp8 = __cil_tmp7 + __cil_tmp3;
8765#line 771
8766 __cil_tmp9 = (struct kobject *)__cil_tmp8;
8767#line 771
8768 __cil_tmp10 = (struct attribute_group const *)(& zram_disk_attr_group);
8769#line 771
8770 sysfs_remove_group(__cil_tmp9, __cil_tmp10);
8771 }
8772 {
8773#line 774
8774 __cil_tmp11 = (unsigned long )zram;
8775#line 774
8776 __cil_tmp12 = __cil_tmp11 + 112;
8777#line 774
8778 if (*((struct gendisk **)__cil_tmp12)) {
8779 {
8780#line 775
8781 __cil_tmp13 = (unsigned long )zram;
8782#line 775
8783 __cil_tmp14 = __cil_tmp13 + 112;
8784#line 775
8785 __cil_tmp15 = *((struct gendisk **)__cil_tmp14);
8786#line 775
8787 del_gendisk(__cil_tmp15);
8788#line 776
8789 __cil_tmp16 = (unsigned long )zram;
8790#line 776
8791 __cil_tmp17 = __cil_tmp16 + 112;
8792#line 776
8793 __cil_tmp18 = *((struct gendisk **)__cil_tmp17);
8794#line 776
8795 put_disk(__cil_tmp18);
8796 }
8797 } else {
8798
8799 }
8800 }
8801 {
8802#line 779
8803 __cil_tmp19 = (unsigned long )zram;
8804#line 779
8805 __cil_tmp20 = __cil_tmp19 + 104;
8806#line 779
8807 if (*((struct request_queue **)__cil_tmp20)) {
8808 {
8809#line 780
8810 __cil_tmp21 = (unsigned long )zram;
8811#line 780
8812 __cil_tmp22 = __cil_tmp21 + 104;
8813#line 780
8814 __cil_tmp23 = *((struct request_queue **)__cil_tmp22);
8815#line 780
8816 blk_cleanup_queue(__cil_tmp23);
8817 }
8818 } else {
8819
8820 }
8821 }
8822#line 781
8823 return;
8824}
8825}
8826#line 783 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
8827unsigned int zram_get_num_devices(void)
8828{ unsigned int *__cil_tmp1 ;
8829
8830 {
8831 {
8832#line 785
8833 __cil_tmp1 = & num_devices;
8834#line 785
8835 return (*__cil_tmp1);
8836 }
8837}
8838}
8839#line 788
8840static int zram_init(void) __attribute__((__section__(".init.text"), __no_instrument_function__)) ;
8841#line 788 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
8842static int zram_init(void)
8843{ int ret ;
8844 int dev_id ;
8845 void *tmp___7 ;
8846 unsigned int __cil_tmp4 ;
8847 unsigned int *__cil_tmp5 ;
8848 unsigned int __cil_tmp6 ;
8849 unsigned int *__cil_tmp7 ;
8850 unsigned int __cil_tmp8 ;
8851 unsigned int *__cil_tmp9 ;
8852 unsigned int __cil_tmp10 ;
8853 unsigned int *__cil_tmp11 ;
8854 unsigned int *__cil_tmp12 ;
8855 unsigned int __cil_tmp13 ;
8856 unsigned int *__cil_tmp14 ;
8857 unsigned int __cil_tmp15 ;
8858 unsigned long __cil_tmp16 ;
8859 unsigned long __cil_tmp17 ;
8860 unsigned int *__cil_tmp18 ;
8861 unsigned int __cil_tmp19 ;
8862 unsigned int __cil_tmp20 ;
8863 struct zram *__cil_tmp21 ;
8864 struct zram *__cil_tmp22 ;
8865 void const *__cil_tmp23 ;
8866 unsigned int __cil_tmp24 ;
8867
8868 {
8869 {
8870#line 792
8871 __cil_tmp4 = (unsigned int )max_num_devices;
8872#line 792
8873 __cil_tmp5 = & num_devices;
8874#line 792
8875 __cil_tmp6 = *__cil_tmp5;
8876#line 792
8877 if (__cil_tmp6 > __cil_tmp4) {
8878 {
8879#line 793
8880 __cil_tmp7 = & num_devices;
8881#line 793
8882 __cil_tmp8 = *__cil_tmp7;
8883#line 793
8884 printk("<4>zram: Invalid value for num_devices: %u\n", __cil_tmp8);
8885#line 795
8886 ret = -22;
8887 }
8888#line 796
8889 goto out;
8890 } else {
8891
8892 }
8893 }
8894 {
8895#line 799
8896 zram_major = register_blkdev(0U, "zram");
8897 }
8898#line 800
8899 if (zram_major <= 0) {
8900 {
8901#line 801
8902 printk("<4>zram: Unable to get major number\n");
8903#line 802
8904 ret = -16;
8905 }
8906#line 803
8907 goto out;
8908 } else {
8909
8910 }
8911 {
8912#line 806
8913 __cil_tmp9 = & num_devices;
8914#line 806
8915 __cil_tmp10 = *__cil_tmp9;
8916#line 806
8917 if (! __cil_tmp10) {
8918 {
8919#line 807
8920 printk("<6>zram: num_devices not specified. Using default: 1\n");
8921#line 808
8922 __cil_tmp11 = & num_devices;
8923#line 808
8924 *__cil_tmp11 = 1U;
8925 }
8926 } else {
8927
8928 }
8929 }
8930 {
8931#line 812
8932 __cil_tmp12 = & num_devices;
8933#line 812
8934 __cil_tmp13 = *__cil_tmp12;
8935#line 812
8936 printk("<6>zram: Creating %u devices ...\n", __cil_tmp13);
8937#line 813
8938 __cil_tmp14 = & num_devices;
8939#line 813
8940 __cil_tmp15 = *__cil_tmp14;
8941#line 813
8942 __cil_tmp16 = (unsigned long )__cil_tmp15;
8943#line 813
8944 __cil_tmp17 = __cil_tmp16 * 256UL;
8945#line 813
8946 tmp___7 = kzalloc(__cil_tmp17, 208U);
8947#line 813
8948 zram_devices = (struct zram *)tmp___7;
8949 }
8950#line 814
8951 if (! zram_devices) {
8952#line 815
8953 ret = -12;
8954#line 816
8955 goto unregister;
8956 } else {
8957
8958 }
8959#line 819
8960 dev_id = 0;
8961 {
8962#line 819
8963 while (1) {
8964 while_continue: ;
8965 {
8966#line 819
8967 __cil_tmp18 = & num_devices;
8968#line 819
8969 __cil_tmp19 = *__cil_tmp18;
8970#line 819
8971 __cil_tmp20 = (unsigned int )dev_id;
8972#line 819
8973 if (__cil_tmp20 < __cil_tmp19) {
8974
8975 } else {
8976#line 819
8977 goto while_break;
8978 }
8979 }
8980 {
8981#line 820
8982 __cil_tmp21 = zram_devices + dev_id;
8983#line 820
8984 ret = create_device(__cil_tmp21, dev_id);
8985 }
8986#line 821
8987 if (ret) {
8988#line 822
8989 goto free_devices;
8990 } else {
8991
8992 }
8993#line 819
8994 dev_id = dev_id + 1;
8995 }
8996 while_break: ;
8997 }
8998#line 825
8999 return (0);
9000 free_devices:
9001 {
9002#line 828
9003 while (1) {
9004 while_continue___0: ;
9005#line 828
9006 if (dev_id) {
9007
9008 } else {
9009#line 828
9010 goto while_break___0;
9011 }
9012 {
9013#line 829
9014 dev_id = dev_id - 1;
9015#line 829
9016 __cil_tmp22 = zram_devices + dev_id;
9017#line 829
9018 destroy_device(__cil_tmp22);
9019 }
9020 }
9021 while_break___0: ;
9022 }
9023 {
9024#line 830
9025 __cil_tmp23 = (void const *)zram_devices;
9026#line 830
9027 kfree(__cil_tmp23);
9028 }
9029 unregister:
9030 {
9031#line 832
9032 __cil_tmp24 = (unsigned int )zram_major;
9033#line 832
9034 unregister_blkdev(__cil_tmp24, "zram");
9035 }
9036 out:
9037#line 834
9038 return (ret);
9039}
9040}
9041#line 853
9042static void zram_exit(void) __attribute__((__section__(".exit.text"), __no_instrument_function__)) ;
9043#line 853 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9044static struct _ddebug __attribute__((__aligned__(8))) descriptor___1 __attribute__((__used__,
9045__section__("__verbose"))) = {"zram", "zram_exit", "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c",
9046 "Cleanup done!\n", 853U, 1U};
9047#line 837
9048static void zram_exit(void) __attribute__((__section__(".exit.text"), __no_instrument_function__)) ;
9049#line 837 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9050static void zram_exit(void)
9051{ int i ;
9052 struct zram *zram ;
9053 long tmp___7 ;
9054 unsigned int *__cil_tmp4 ;
9055 unsigned int __cil_tmp5 ;
9056 unsigned int __cil_tmp6 ;
9057 unsigned long __cil_tmp7 ;
9058 unsigned long __cil_tmp8 ;
9059 unsigned int __cil_tmp9 ;
9060 void const *__cil_tmp10 ;
9061 struct _ddebug __attribute__((__aligned__(8))) *__cil_tmp11 ;
9062 unsigned int __cil_tmp12 ;
9063 unsigned int __cil_tmp13 ;
9064 int __cil_tmp14 ;
9065 int __cil_tmp15 ;
9066 long __cil_tmp16 ;
9067
9068 {
9069#line 842
9070 i = 0;
9071 {
9072#line 842
9073 while (1) {
9074 while_continue: ;
9075 {
9076#line 842
9077 __cil_tmp4 = & num_devices;
9078#line 842
9079 __cil_tmp5 = *__cil_tmp4;
9080#line 842
9081 __cil_tmp6 = (unsigned int )i;
9082#line 842
9083 if (__cil_tmp6 < __cil_tmp5) {
9084
9085 } else {
9086#line 842
9087 goto while_break;
9088 }
9089 }
9090 {
9091#line 843
9092 zram = zram_devices + i;
9093#line 845
9094 destroy_device(zram);
9095 }
9096 {
9097#line 846
9098 __cil_tmp7 = (unsigned long )zram;
9099#line 846
9100 __cil_tmp8 = __cil_tmp7 + 120;
9101#line 846
9102 if (*((int *)__cil_tmp8)) {
9103 {
9104#line 847
9105 zram_reset_device(zram);
9106 }
9107 } else {
9108
9109 }
9110 }
9111#line 842
9112 i = i + 1;
9113 }
9114 while_break: ;
9115 }
9116 {
9117#line 850
9118 __cil_tmp9 = (unsigned int )zram_major;
9119#line 850
9120 unregister_blkdev(__cil_tmp9, "zram");
9121#line 852
9122 __cil_tmp10 = (void const *)zram_devices;
9123#line 852
9124 kfree(__cil_tmp10);
9125 }
9126 {
9127#line 853
9128 while (1) {
9129 while_continue___0: ;
9130 {
9131#line 853
9132 __cil_tmp11 = & descriptor___1;
9133#line 853
9134 __cil_tmp12 = __cil_tmp11->flags;
9135#line 853
9136 __cil_tmp13 = __cil_tmp12 & 1U;
9137#line 853
9138 __cil_tmp14 = ! __cil_tmp13;
9139#line 853
9140 __cil_tmp15 = ! __cil_tmp14;
9141#line 853
9142 __cil_tmp16 = (long )__cil_tmp15;
9143#line 853
9144 tmp___7 = __builtin_expect(__cil_tmp16, 0L);
9145 }
9146#line 853
9147 if (tmp___7) {
9148 {
9149#line 853
9150 __dynamic_pr_debug(& descriptor___1, "zram: Cleanup done!\n");
9151 }
9152 } else {
9153
9154 }
9155#line 853
9156 goto while_break___0;
9157 }
9158 while_break___0: ;
9159 }
9160#line 854
9161 return;
9162}
9163}
9164#line 856 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9165static char const __param_str_num_devices[12] =
9166#line 856
9167 { (char const )'n', (char const )'u', (char const )'m', (char const )'_',
9168 (char const )'d', (char const )'e', (char const )'v', (char const )'i',
9169 (char const )'c', (char const )'e', (char const )'s', (char const )'\000'};
9170#line 856 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9171static struct kernel_param const __param_num_devices __attribute__((__used__, __unused__,
9172__section__("__param"), __aligned__(sizeof(void *)))) = {__param_str_num_devices, (struct kernel_param_ops const *)(& param_ops_uint),
9173 (u16 )0, (s16 )0, {(void *)(& num_devices)}};
9174#line 856 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9175static char const __mod_num_devicestype856[26] __attribute__((__used__, __unused__,
9176__section__(".modinfo"), __aligned__(1))) =
9177#line 856
9178 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
9179 (char const )'t', (char const )'y', (char const )'p', (char const )'e',
9180 (char const )'=', (char const )'n', (char const )'u', (char const )'m',
9181 (char const )'_', (char const )'d', (char const )'e', (char const )'v',
9182 (char const )'i', (char const )'c', (char const )'e', (char const )'s',
9183 (char const )':', (char const )'u', (char const )'i', (char const )'n',
9184 (char const )'t', (char const )'\000'};
9185#line 857 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9186static char const __mod_num_devices857[40] __attribute__((__used__, __unused__,
9187__section__(".modinfo"), __aligned__(1))) =
9188#line 857
9189 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
9190 (char const )'=', (char const )'n', (char const )'u', (char const )'m',
9191 (char const )'_', (char const )'d', (char const )'e', (char const )'v',
9192 (char const )'i', (char const )'c', (char const )'e', (char const )'s',
9193 (char const )':', (char const )'N', (char const )'u', (char const )'m',
9194 (char const )'b', (char const )'e', (char const )'r', (char const )' ',
9195 (char const )'o', (char const )'f', (char const )' ', (char const )'z',
9196 (char const )'r', (char const )'a', (char const )'m', (char const )' ',
9197 (char const )'d', (char const )'e', (char const )'v', (char const )'i',
9198 (char const )'c', (char const )'e', (char const )'s', (char const )'\000'};
9199#line 859 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9200int init_module(void)
9201{ int tmp___7 ;
9202
9203 {
9204 {
9205#line 859
9206 tmp___7 = zram_init();
9207 }
9208#line 859
9209 return (tmp___7);
9210}
9211}
9212#line 860 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9213void cleanup_module(void)
9214{
9215
9216 {
9217 {
9218#line 860
9219 zram_exit();
9220 }
9221#line 860
9222 return;
9223}
9224}
9225#line 862 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9226static char const __mod_license862[21] __attribute__((__used__, __unused__, __section__(".modinfo"),
9227__aligned__(1))) =
9228#line 862
9229 { (char const )'l', (char const )'i', (char const )'c', (char const )'e',
9230 (char const )'n', (char const )'s', (char const )'e', (char const )'=',
9231 (char const )'D', (char const )'u', (char const )'a', (char const )'l',
9232 (char const )' ', (char const )'B', (char const )'S', (char const )'D',
9233 (char const )'/', (char const )'G', (char const )'P', (char const )'L',
9234 (char const )'\000'};
9235#line 863 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9236static char const __mod_author863[39] __attribute__((__used__, __unused__, __section__(".modinfo"),
9237__aligned__(1))) =
9238#line 863
9239 { (char const )'a', (char const )'u', (char const )'t', (char const )'h',
9240 (char const )'o', (char const )'r', (char const )'=', (char const )'N',
9241 (char const )'i', (char const )'t', (char const )'i', (char const )'n',
9242 (char const )' ', (char const )'G', (char const )'u', (char const )'p',
9243 (char const )'t', (char const )'a', (char const )' ', (char const )'<',
9244 (char const )'n', (char const )'g', (char const )'u', (char const )'p',
9245 (char const )'t', (char const )'a', (char const )'@', (char const )'v',
9246 (char const )'f', (char const )'l', (char const )'a', (char const )'r',
9247 (char const )'e', (char const )'.', (char const )'o', (char const )'r',
9248 (char const )'g', (char const )'>', (char const )'\000'};
9249#line 864 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9250static char const __mod_description864[40] __attribute__((__used__, __unused__,
9251__section__(".modinfo"), __aligned__(1))) =
9252#line 864
9253 { (char const )'d', (char const )'e', (char const )'s', (char const )'c',
9254 (char const )'r', (char const )'i', (char const )'p', (char const )'t',
9255 (char const )'i', (char const )'o', (char const )'n', (char const )'=',
9256 (char const )'C', (char const )'o', (char const )'m', (char const )'p',
9257 (char const )'r', (char const )'e', (char const )'s', (char const )'s',
9258 (char const )'e', (char const )'d', (char const )' ', (char const )'R',
9259 (char const )'A', (char const )'M', (char const )' ', (char const )'B',
9260 (char const )'l', (char const )'o', (char const )'c', (char const )'k',
9261 (char const )' ', (char const )'D', (char const )'e', (char const )'v',
9262 (char const )'i', (char const )'c', (char const )'e', (char const )'\000'};
9263#line 882
9264void ldv_check_final_state(void) ;
9265#line 888
9266extern void ldv_initialize(void) ;
9267#line 891
9268extern int __VERIFIER_nondet_int(void) ;
9269#line 894 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9270int LDV_IN_INTERRUPT ;
9271#line 897 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9272void ldv_main0_sequence_infinite_withcheck_stateful(void)
9273{ struct block_device *var_group1 ;
9274 unsigned long var_zram_slot_free_notify_25_p1 ;
9275 int tmp___7 ;
9276 int tmp___8 ;
9277 int tmp___9 ;
9278
9279 {
9280 {
9281#line 925
9282 LDV_IN_INTERRUPT = 1;
9283#line 934
9284 ldv_initialize();
9285#line 948
9286 tmp___7 = zram_init();
9287 }
9288#line 948
9289 if (tmp___7) {
9290#line 949
9291 goto ldv_final;
9292 } else {
9293
9294 }
9295 {
9296#line 953
9297 while (1) {
9298 while_continue: ;
9299 {
9300#line 953
9301 tmp___9 = __VERIFIER_nondet_int();
9302 }
9303#line 953
9304 if (tmp___9) {
9305
9306 } else {
9307#line 953
9308 goto while_break;
9309 }
9310 {
9311#line 956
9312 tmp___8 = __VERIFIER_nondet_int();
9313 }
9314#line 958
9315 if (tmp___8 == 0) {
9316#line 958
9317 goto case_0;
9318 } else {
9319 {
9320#line 982
9321 goto switch_default;
9322#line 956
9323 if (0) {
9324 case_0:
9325 {
9326#line 974
9327 zram_slot_free_notify(var_group1, var_zram_slot_free_notify_25_p1);
9328 }
9329#line 981
9330 goto switch_break;
9331 switch_default:
9332#line 982
9333 goto switch_break;
9334 } else {
9335 switch_break: ;
9336 }
9337 }
9338 }
9339 }
9340 while_break: ;
9341 }
9342 {
9343#line 1002
9344 zram_exit();
9345 }
9346 ldv_final:
9347 {
9348#line 1005
9349 ldv_check_final_state();
9350 }
9351#line 1008
9352 return;
9353}
9354}
9355#line 5 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/engine-blast-assert.h"
9356void ldv_blast_assert(void)
9357{
9358
9359 {
9360 ERROR:
9361#line 6
9362 goto ERROR;
9363}
9364}
9365#line 6 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/engine-blast.h"
9366extern int __VERIFIER_nondet_int(void) ;
9367#line 19 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
9368int ldv_mutex = 1;
9369#line 22 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
9370int __attribute__((__warn_unused_result__)) mutex_lock_interruptible(struct mutex *lock )
9371{ int nondetermined ;
9372
9373 {
9374#line 29
9375 if (ldv_mutex == 1) {
9376
9377 } else {
9378 {
9379#line 29
9380 ldv_blast_assert();
9381 }
9382 }
9383 {
9384#line 32
9385 nondetermined = __VERIFIER_nondet_int();
9386 }
9387#line 35
9388 if (nondetermined) {
9389#line 38
9390 ldv_mutex = 2;
9391#line 40
9392 return (0);
9393 } else {
9394#line 45
9395 return (-4);
9396 }
9397}
9398}
9399#line 50 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
9400int __attribute__((__warn_unused_result__)) mutex_lock_killable(struct mutex *lock )
9401{ int nondetermined ;
9402
9403 {
9404#line 57
9405 if (ldv_mutex == 1) {
9406
9407 } else {
9408 {
9409#line 57
9410 ldv_blast_assert();
9411 }
9412 }
9413 {
9414#line 60
9415 nondetermined = __VERIFIER_nondet_int();
9416 }
9417#line 63
9418 if (nondetermined) {
9419#line 66
9420 ldv_mutex = 2;
9421#line 68
9422 return (0);
9423 } else {
9424#line 73
9425 return (-4);
9426 }
9427}
9428}
9429#line 78 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
9430int atomic_dec_and_mutex_lock(atomic_t *cnt , struct mutex *lock )
9431{ int atomic_value_after_dec ;
9432
9433 {
9434#line 83
9435 if (ldv_mutex == 1) {
9436
9437 } else {
9438 {
9439#line 83
9440 ldv_blast_assert();
9441 }
9442 }
9443 {
9444#line 86
9445 atomic_value_after_dec = __VERIFIER_nondet_int();
9446 }
9447#line 89
9448 if (atomic_value_after_dec == 0) {
9449#line 92
9450 ldv_mutex = 2;
9451#line 94
9452 return (1);
9453 } else {
9454
9455 }
9456#line 98
9457 return (0);
9458}
9459}
9460#line 103 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
9461void mutex_lock(struct mutex *lock )
9462{
9463
9464 {
9465#line 108
9466 if (ldv_mutex == 1) {
9467
9468 } else {
9469 {
9470#line 108
9471 ldv_blast_assert();
9472 }
9473 }
9474#line 110
9475 ldv_mutex = 2;
9476#line 111
9477 return;
9478}
9479}
9480#line 114 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
9481int mutex_trylock(struct mutex *lock )
9482{ int nondetermined ;
9483
9484 {
9485#line 121
9486 if (ldv_mutex == 1) {
9487
9488 } else {
9489 {
9490#line 121
9491 ldv_blast_assert();
9492 }
9493 }
9494 {
9495#line 124
9496 nondetermined = __VERIFIER_nondet_int();
9497 }
9498#line 127
9499 if (nondetermined) {
9500#line 130
9501 ldv_mutex = 2;
9502#line 132
9503 return (1);
9504 } else {
9505#line 137
9506 return (0);
9507 }
9508}
9509}
9510#line 142 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
9511void mutex_unlock(struct mutex *lock )
9512{
9513
9514 {
9515#line 147
9516 if (ldv_mutex == 2) {
9517
9518 } else {
9519 {
9520#line 147
9521 ldv_blast_assert();
9522 }
9523 }
9524#line 149
9525 ldv_mutex = 1;
9526#line 150
9527 return;
9528}
9529}
9530#line 153 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
9531void ldv_check_final_state(void)
9532{
9533
9534 {
9535#line 156
9536 if (ldv_mutex == 1) {
9537
9538 } else {
9539 {
9540#line 156
9541 ldv_blast_assert();
9542 }
9543 }
9544#line 157
9545 return;
9546}
9547}
9548#line 1017 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_drv.c.common.c"
9549long s__builtin_expect(long val , long res )
9550{
9551
9552 {
9553#line 1018
9554 return (val);
9555}
9556}
9557#line 218 "include/linux/kernel.h"
9558extern int __attribute__((__warn_unused_result__)) kstrtoull(char const *s , unsigned int base ,
9559 unsigned long long *res ) ;
9560#line 269
9561extern int __attribute__((__warn_unused_result__)) kstrtou16(char const *s , unsigned int base ,
9562 u16 *res ) ;
9563#line 320
9564extern int ( sprintf)(char *buf , char const *fmt , ...) ;
9565#line 2063 "include/linux/fs.h"
9566extern int fsync_bdev(struct block_device * ) ;
9567#line 407 "include/linux/genhd.h"
9568extern struct block_device *bdget_disk(struct gendisk *disk , int partno ) ;
9569#line 29 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/staging/zram/../zsmalloc/zsmalloc.h"
9570extern u64 zs_get_total_size_bytes(struct zs_pool *pool ) ;
9571#line 22 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
9572static u64 zram_stat64_read(struct zram *zram , u64 *v )
9573{ u64 val ;
9574 unsigned long __cil_tmp4 ;
9575 unsigned long __cil_tmp5 ;
9576 spinlock_t *__cil_tmp6 ;
9577 unsigned long __cil_tmp7 ;
9578 unsigned long __cil_tmp8 ;
9579 spinlock_t *__cil_tmp9 ;
9580
9581 {
9582 {
9583#line 26
9584 __cil_tmp4 = (unsigned long )zram;
9585#line 26
9586 __cil_tmp5 = __cil_tmp4 + 32;
9587#line 26
9588 __cil_tmp6 = (spinlock_t *)__cil_tmp5;
9589#line 26
9590 spin_lock(__cil_tmp6);
9591#line 27
9592 val = *v;
9593#line 28
9594 __cil_tmp7 = (unsigned long )zram;
9595#line 28
9596 __cil_tmp8 = __cil_tmp7 + 32;
9597#line 28
9598 __cil_tmp9 = (spinlock_t *)__cil_tmp8;
9599#line 28
9600 spin_unlock(__cil_tmp9);
9601 }
9602#line 30
9603 return (val);
9604}
9605}
9606#line 33 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
9607static struct zram *dev_to_zram(struct device *dev )
9608{ int i ;
9609 struct zram *zram ;
9610 unsigned int tmp ;
9611 void *__cil_tmp5 ;
9612 unsigned int __cil_tmp6 ;
9613 unsigned long __cil_tmp7 ;
9614 unsigned long __cil_tmp8 ;
9615 unsigned long __cil_tmp9 ;
9616 unsigned long __cil_tmp10 ;
9617 struct gendisk *__cil_tmp11 ;
9618 unsigned long __cil_tmp12 ;
9619 unsigned long __cil_tmp13 ;
9620 struct device *__cil_tmp14 ;
9621 unsigned long __cil_tmp15 ;
9622
9623 {
9624#line 36
9625 __cil_tmp5 = (void *)0;
9626#line 36
9627 zram = (struct zram *)__cil_tmp5;
9628#line 38
9629 i = 0;
9630 {
9631#line 38
9632 while (1) {
9633 while_continue: ;
9634 {
9635#line 38
9636 tmp = zram_get_num_devices();
9637 }
9638 {
9639#line 38
9640 __cil_tmp6 = (unsigned int )i;
9641#line 38
9642 if (__cil_tmp6 < tmp) {
9643
9644 } else {
9645#line 38
9646 goto while_break;
9647 }
9648 }
9649#line 39
9650 zram = zram_devices + i;
9651 {
9652#line 40
9653 __cil_tmp7 = (unsigned long )dev;
9654#line 40
9655 __cil_tmp8 = 72 + 32;
9656#line 40
9657 __cil_tmp9 = (unsigned long )zram;
9658#line 40
9659 __cil_tmp10 = __cil_tmp9 + 112;
9660#line 40
9661 __cil_tmp11 = *((struct gendisk **)__cil_tmp10);
9662#line 40
9663 __cil_tmp12 = (unsigned long )__cil_tmp11;
9664#line 40
9665 __cil_tmp13 = __cil_tmp12 + __cil_tmp8;
9666#line 40
9667 __cil_tmp14 = (struct device *)__cil_tmp13;
9668#line 40
9669 __cil_tmp15 = (unsigned long )__cil_tmp14;
9670#line 40
9671 if (__cil_tmp15 == __cil_tmp7) {
9672#line 41
9673 goto while_break;
9674 } else {
9675
9676 }
9677 }
9678#line 38
9679 i = i + 1;
9680 }
9681 while_break: ;
9682 }
9683#line 44
9684 return (zram);
9685}
9686}
9687#line 47 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
9688static ssize_t disksize_show(struct device *dev , struct device_attribute *attr ,
9689 char *buf )
9690{ struct zram *zram ;
9691 struct zram *tmp ;
9692 int tmp___0 ;
9693 unsigned long __cil_tmp7 ;
9694 unsigned long __cil_tmp8 ;
9695 u64 __cil_tmp9 ;
9696
9697 {
9698 {
9699#line 50
9700 tmp = dev_to_zram(dev);
9701#line 50
9702 zram = tmp;
9703#line 52
9704 __cil_tmp7 = (unsigned long )zram;
9705#line 52
9706 __cil_tmp8 = __cil_tmp7 + 176;
9707#line 52
9708 __cil_tmp9 = *((u64 *)__cil_tmp8);
9709#line 52
9710 tmp___0 = sprintf(buf, "%llu\n", __cil_tmp9);
9711 }
9712#line 52
9713 return ((ssize_t )tmp___0);
9714}
9715}
9716#line 55 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
9717static ssize_t disksize_store(struct device *dev , struct device_attribute *attr ,
9718 char const *buf , size_t len )
9719{ int ret ;
9720 u64 disksize ;
9721 struct zram *zram ;
9722 struct zram *tmp ;
9723 unsigned long __cil_tmp9 ;
9724 unsigned long __cil_tmp10 ;
9725 struct rw_semaphore *__cil_tmp11 ;
9726 unsigned long __cil_tmp12 ;
9727 unsigned long __cil_tmp13 ;
9728 unsigned long __cil_tmp14 ;
9729 unsigned long __cil_tmp15 ;
9730 struct rw_semaphore *__cil_tmp16 ;
9731 unsigned long __cil_tmp17 ;
9732 unsigned long __cil_tmp18 ;
9733 unsigned long __cil_tmp19 ;
9734 u64 __cil_tmp20 ;
9735 u64 __cil_tmp21 ;
9736 u64 __cil_tmp22 ;
9737 unsigned long __cil_tmp23 ;
9738 u64 __cil_tmp24 ;
9739 u64 __cil_tmp25 ;
9740 u64 *__cil_tmp26 ;
9741 u64 __cil_tmp27 ;
9742 u64 __cil_tmp28 ;
9743 unsigned long __cil_tmp29 ;
9744 unsigned long __cil_tmp30 ;
9745 struct gendisk *__cil_tmp31 ;
9746 unsigned long __cil_tmp32 ;
9747 unsigned long __cil_tmp33 ;
9748 u64 __cil_tmp34 ;
9749 u64 __cil_tmp35 ;
9750 sector_t __cil_tmp36 ;
9751 unsigned long __cil_tmp37 ;
9752 unsigned long __cil_tmp38 ;
9753 struct rw_semaphore *__cil_tmp39 ;
9754
9755 {
9756 {
9757#line 60
9758 tmp = dev_to_zram(dev);
9759#line 60
9760 zram = tmp;
9761#line 62
9762 ret = (int )kstrtoull(buf, 10U, & disksize);
9763 }
9764#line 63
9765 if (ret) {
9766#line 64
9767 return ((ssize_t )ret);
9768 } else {
9769
9770 }
9771 {
9772#line 66
9773 __cil_tmp9 = (unsigned long )zram;
9774#line 66
9775 __cil_tmp10 = __cil_tmp9 + 128;
9776#line 66
9777 __cil_tmp11 = (struct rw_semaphore *)__cil_tmp10;
9778#line 66
9779 down_write(__cil_tmp11);
9780 }
9781 {
9782#line 67
9783 __cil_tmp12 = (unsigned long )zram;
9784#line 67
9785 __cil_tmp13 = __cil_tmp12 + 120;
9786#line 67
9787 if (*((int *)__cil_tmp13)) {
9788 {
9789#line 68
9790 __cil_tmp14 = (unsigned long )zram;
9791#line 68
9792 __cil_tmp15 = __cil_tmp14 + 128;
9793#line 68
9794 __cil_tmp16 = (struct rw_semaphore *)__cil_tmp15;
9795#line 68
9796 up_write(__cil_tmp16);
9797#line 69
9798 printk("<6>Cannot change disksize for initialized device\n");
9799 }
9800#line 70
9801 return ((ssize_t )-16);
9802 } else {
9803
9804 }
9805 }
9806 {
9807#line 73
9808 __cil_tmp17 = (unsigned long )zram;
9809#line 73
9810 __cil_tmp18 = __cil_tmp17 + 176;
9811#line 73
9812 __cil_tmp19 = 1UL << 12;
9813#line 73
9814 __cil_tmp20 = (u64 )__cil_tmp19;
9815#line 73
9816 __cil_tmp21 = __cil_tmp20 - 1ULL;
9817#line 73
9818 __cil_tmp22 = ~ __cil_tmp21;
9819#line 73
9820 __cil_tmp23 = 1UL << 12;
9821#line 73
9822 __cil_tmp24 = (u64 )__cil_tmp23;
9823#line 73
9824 __cil_tmp25 = __cil_tmp24 - 1ULL;
9825#line 73
9826 __cil_tmp26 = & disksize;
9827#line 73
9828 __cil_tmp27 = *__cil_tmp26;
9829#line 73
9830 __cil_tmp28 = __cil_tmp27 + __cil_tmp25;
9831#line 73
9832 *((u64 *)__cil_tmp18) = __cil_tmp28 & __cil_tmp22;
9833#line 74
9834 __cil_tmp29 = (unsigned long )zram;
9835#line 74
9836 __cil_tmp30 = __cil_tmp29 + 112;
9837#line 74
9838 __cil_tmp31 = *((struct gendisk **)__cil_tmp30);
9839#line 74
9840 __cil_tmp32 = (unsigned long )zram;
9841#line 74
9842 __cil_tmp33 = __cil_tmp32 + 176;
9843#line 74
9844 __cil_tmp34 = *((u64 *)__cil_tmp33);
9845#line 74
9846 __cil_tmp35 = __cil_tmp34 >> 9;
9847#line 74
9848 __cil_tmp36 = (sector_t )__cil_tmp35;
9849#line 74
9850 set_capacity(__cil_tmp31, __cil_tmp36);
9851#line 75
9852 __cil_tmp37 = (unsigned long )zram;
9853#line 75
9854 __cil_tmp38 = __cil_tmp37 + 128;
9855#line 75
9856 __cil_tmp39 = (struct rw_semaphore *)__cil_tmp38;
9857#line 75
9858 up_write(__cil_tmp39);
9859 }
9860#line 77
9861 return ((ssize_t )len);
9862}
9863}
9864#line 80 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
9865static ssize_t initstate_show(struct device *dev , struct device_attribute *attr ,
9866 char *buf )
9867{ struct zram *zram ;
9868 struct zram *tmp ;
9869 int tmp___0 ;
9870 unsigned long __cil_tmp7 ;
9871 unsigned long __cil_tmp8 ;
9872 int __cil_tmp9 ;
9873
9874 {
9875 {
9876#line 83
9877 tmp = dev_to_zram(dev);
9878#line 83
9879 zram = tmp;
9880#line 85
9881 __cil_tmp7 = (unsigned long )zram;
9882#line 85
9883 __cil_tmp8 = __cil_tmp7 + 120;
9884#line 85
9885 __cil_tmp9 = *((int *)__cil_tmp8);
9886#line 85
9887 tmp___0 = sprintf(buf, "%u\n", __cil_tmp9);
9888 }
9889#line 85
9890 return ((ssize_t )tmp___0);
9891}
9892}
9893#line 88 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
9894static ssize_t reset_store(struct device *dev , struct device_attribute *attr , char const *buf ,
9895 size_t len )
9896{ int ret ;
9897 unsigned short do_reset ;
9898 struct zram *zram ;
9899 struct block_device *bdev ;
9900 unsigned long __cil_tmp9 ;
9901 unsigned long __cil_tmp10 ;
9902 struct gendisk *__cil_tmp11 ;
9903 unsigned long __cil_tmp12 ;
9904 unsigned long __cil_tmp13 ;
9905 unsigned short *__cil_tmp14 ;
9906 unsigned short __cil_tmp15 ;
9907 unsigned long __cil_tmp16 ;
9908 unsigned long __cil_tmp17 ;
9909 struct rw_semaphore *__cil_tmp18 ;
9910 unsigned long __cil_tmp19 ;
9911 unsigned long __cil_tmp20 ;
9912 unsigned long __cil_tmp21 ;
9913 unsigned long __cil_tmp22 ;
9914 struct rw_semaphore *__cil_tmp23 ;
9915
9916 {
9917 {
9918#line 96
9919 zram = dev_to_zram(dev);
9920#line 97
9921 __cil_tmp9 = (unsigned long )zram;
9922#line 97
9923 __cil_tmp10 = __cil_tmp9 + 112;
9924#line 97
9925 __cil_tmp11 = *((struct gendisk **)__cil_tmp10);
9926#line 97
9927 bdev = bdget_disk(__cil_tmp11, 0);
9928 }
9929 {
9930#line 100
9931 __cil_tmp12 = (unsigned long )bdev;
9932#line 100
9933 __cil_tmp13 = __cil_tmp12 + 128;
9934#line 100
9935 if (*((int *)__cil_tmp13)) {
9936#line 101
9937 return ((ssize_t )-16);
9938 } else {
9939
9940 }
9941 }
9942 {
9943#line 103
9944 ret = (int )kstrtou16(buf, 10U, & do_reset);
9945 }
9946#line 104
9947 if (ret) {
9948#line 105
9949 return ((ssize_t )ret);
9950 } else {
9951
9952 }
9953 {
9954#line 107
9955 __cil_tmp14 = & do_reset;
9956#line 107
9957 __cil_tmp15 = *__cil_tmp14;
9958#line 107
9959 if (! __cil_tmp15) {
9960#line 108
9961 return ((ssize_t )-22);
9962 } else {
9963
9964 }
9965 }
9966#line 111
9967 if (bdev) {
9968 {
9969#line 112
9970 fsync_bdev(bdev);
9971 }
9972 } else {
9973
9974 }
9975 {
9976#line 114
9977 __cil_tmp16 = (unsigned long )zram;
9978#line 114
9979 __cil_tmp17 = __cil_tmp16 + 128;
9980#line 114
9981 __cil_tmp18 = (struct rw_semaphore *)__cil_tmp17;
9982#line 114
9983 down_write(__cil_tmp18);
9984 }
9985 {
9986#line 115
9987 __cil_tmp19 = (unsigned long )zram;
9988#line 115
9989 __cil_tmp20 = __cil_tmp19 + 120;
9990#line 115
9991 if (*((int *)__cil_tmp20)) {
9992 {
9993#line 116
9994 __zram_reset_device(zram);
9995 }
9996 } else {
9997
9998 }
9999 }
10000 {
10001#line 117
10002 __cil_tmp21 = (unsigned long )zram;
10003#line 117
10004 __cil_tmp22 = __cil_tmp21 + 128;
10005#line 117
10006 __cil_tmp23 = (struct rw_semaphore *)__cil_tmp22;
10007#line 117
10008 up_write(__cil_tmp23);
10009 }
10010#line 119
10011 return ((ssize_t )len);
10012}
10013}
10014#line 122 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10015static ssize_t num_reads_show(struct device *dev , struct device_attribute *attr ,
10016 char *buf )
10017{ struct zram *zram ;
10018 struct zram *tmp ;
10019 u64 tmp___0 ;
10020 int tmp___1 ;
10021 unsigned long __cil_tmp8 ;
10022 unsigned long __cil_tmp9 ;
10023 unsigned long __cil_tmp10 ;
10024 u64 *__cil_tmp11 ;
10025
10026 {
10027 {
10028#line 125
10029 tmp = dev_to_zram(dev);
10030#line 125
10031 zram = tmp;
10032#line 127
10033 __cil_tmp8 = 184 + 8;
10034#line 127
10035 __cil_tmp9 = (unsigned long )zram;
10036#line 127
10037 __cil_tmp10 = __cil_tmp9 + __cil_tmp8;
10038#line 127
10039 __cil_tmp11 = (u64 *)__cil_tmp10;
10040#line 127
10041 tmp___0 = zram_stat64_read(zram, __cil_tmp11);
10042#line 127
10043 tmp___1 = sprintf(buf, "%llu\n", tmp___0);
10044 }
10045#line 127
10046 return ((ssize_t )tmp___1);
10047}
10048}
10049#line 131 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10050static ssize_t num_writes_show(struct device *dev , struct device_attribute *attr ,
10051 char *buf )
10052{ struct zram *zram ;
10053 struct zram *tmp ;
10054 u64 tmp___0 ;
10055 int tmp___1 ;
10056 unsigned long __cil_tmp8 ;
10057 unsigned long __cil_tmp9 ;
10058 unsigned long __cil_tmp10 ;
10059 u64 *__cil_tmp11 ;
10060
10061 {
10062 {
10063#line 134
10064 tmp = dev_to_zram(dev);
10065#line 134
10066 zram = tmp;
10067#line 136
10068 __cil_tmp8 = 184 + 16;
10069#line 136
10070 __cil_tmp9 = (unsigned long )zram;
10071#line 136
10072 __cil_tmp10 = __cil_tmp9 + __cil_tmp8;
10073#line 136
10074 __cil_tmp11 = (u64 *)__cil_tmp10;
10075#line 136
10076 tmp___0 = zram_stat64_read(zram, __cil_tmp11);
10077#line 136
10078 tmp___1 = sprintf(buf, "%llu\n", tmp___0);
10079 }
10080#line 136
10081 return ((ssize_t )tmp___1);
10082}
10083}
10084#line 140 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10085static ssize_t invalid_io_show(struct device *dev , struct device_attribute *attr ,
10086 char *buf )
10087{ struct zram *zram ;
10088 struct zram *tmp ;
10089 u64 tmp___0 ;
10090 int tmp___1 ;
10091 unsigned long __cil_tmp8 ;
10092 unsigned long __cil_tmp9 ;
10093 unsigned long __cil_tmp10 ;
10094 u64 *__cil_tmp11 ;
10095
10096 {
10097 {
10098#line 143
10099 tmp = dev_to_zram(dev);
10100#line 143
10101 zram = tmp;
10102#line 145
10103 __cil_tmp8 = 184 + 40;
10104#line 145
10105 __cil_tmp9 = (unsigned long )zram;
10106#line 145
10107 __cil_tmp10 = __cil_tmp9 + __cil_tmp8;
10108#line 145
10109 __cil_tmp11 = (u64 *)__cil_tmp10;
10110#line 145
10111 tmp___0 = zram_stat64_read(zram, __cil_tmp11);
10112#line 145
10113 tmp___1 = sprintf(buf, "%llu\n", tmp___0);
10114 }
10115#line 145
10116 return ((ssize_t )tmp___1);
10117}
10118}
10119#line 149 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10120static ssize_t notify_free_show(struct device *dev , struct device_attribute *attr ,
10121 char *buf )
10122{ struct zram *zram ;
10123 struct zram *tmp ;
10124 u64 tmp___0 ;
10125 int tmp___1 ;
10126 unsigned long __cil_tmp8 ;
10127 unsigned long __cil_tmp9 ;
10128 unsigned long __cil_tmp10 ;
10129 u64 *__cil_tmp11 ;
10130
10131 {
10132 {
10133#line 152
10134 tmp = dev_to_zram(dev);
10135#line 152
10136 zram = tmp;
10137#line 154
10138 __cil_tmp8 = 184 + 48;
10139#line 154
10140 __cil_tmp9 = (unsigned long )zram;
10141#line 154
10142 __cil_tmp10 = __cil_tmp9 + __cil_tmp8;
10143#line 154
10144 __cil_tmp11 = (u64 *)__cil_tmp10;
10145#line 154
10146 tmp___0 = zram_stat64_read(zram, __cil_tmp11);
10147#line 154
10148 tmp___1 = sprintf(buf, "%llu\n", tmp___0);
10149 }
10150#line 154
10151 return ((ssize_t )tmp___1);
10152}
10153}
10154#line 158 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10155static ssize_t zero_pages_show(struct device *dev , struct device_attribute *attr ,
10156 char *buf )
10157{ struct zram *zram ;
10158 struct zram *tmp ;
10159 int tmp___0 ;
10160 unsigned long __cil_tmp7 ;
10161 unsigned long __cil_tmp8 ;
10162 unsigned long __cil_tmp9 ;
10163 u32 __cil_tmp10 ;
10164
10165 {
10166 {
10167#line 161
10168 tmp = dev_to_zram(dev);
10169#line 161
10170 zram = tmp;
10171#line 163
10172 __cil_tmp7 = 184 + 56;
10173#line 163
10174 __cil_tmp8 = (unsigned long )zram;
10175#line 163
10176 __cil_tmp9 = __cil_tmp8 + __cil_tmp7;
10177#line 163
10178 __cil_tmp10 = *((u32 *)__cil_tmp9);
10179#line 163
10180 tmp___0 = sprintf(buf, "%u\n", __cil_tmp10);
10181 }
10182#line 163
10183 return ((ssize_t )tmp___0);
10184}
10185}
10186#line 166 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10187static ssize_t orig_data_size_show(struct device *dev , struct device_attribute *attr ,
10188 char *buf )
10189{ struct zram *zram ;
10190 struct zram *tmp ;
10191 int tmp___0 ;
10192 unsigned long __cil_tmp7 ;
10193 unsigned long __cil_tmp8 ;
10194 unsigned long __cil_tmp9 ;
10195 u32 __cil_tmp10 ;
10196 u64 __cil_tmp11 ;
10197 u64 __cil_tmp12 ;
10198
10199 {
10200 {
10201#line 169
10202 tmp = dev_to_zram(dev);
10203#line 169
10204 zram = tmp;
10205#line 171
10206 __cil_tmp7 = 184 + 60;
10207#line 171
10208 __cil_tmp8 = (unsigned long )zram;
10209#line 171
10210 __cil_tmp9 = __cil_tmp8 + __cil_tmp7;
10211#line 171
10212 __cil_tmp10 = *((u32 *)__cil_tmp9);
10213#line 171
10214 __cil_tmp11 = (u64 )__cil_tmp10;
10215#line 171
10216 __cil_tmp12 = __cil_tmp11 << 12;
10217#line 171
10218 tmp___0 = sprintf(buf, "%llu\n", __cil_tmp12);
10219 }
10220#line 171
10221 return ((ssize_t )tmp___0);
10222}
10223}
10224#line 175 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10225static ssize_t compr_data_size_show(struct device *dev , struct device_attribute *attr ,
10226 char *buf )
10227{ struct zram *zram ;
10228 struct zram *tmp ;
10229 u64 tmp___0 ;
10230 int tmp___1 ;
10231 unsigned long __cil_tmp8 ;
10232 unsigned long __cil_tmp9 ;
10233 u64 *__cil_tmp10 ;
10234
10235 {
10236 {
10237#line 178
10238 tmp = dev_to_zram(dev);
10239#line 178
10240 zram = tmp;
10241#line 180
10242 __cil_tmp8 = (unsigned long )zram;
10243#line 180
10244 __cil_tmp9 = __cil_tmp8 + 184;
10245#line 180
10246 __cil_tmp10 = (u64 *)__cil_tmp9;
10247#line 180
10248 tmp___0 = zram_stat64_read(zram, __cil_tmp10);
10249#line 180
10250 tmp___1 = sprintf(buf, "%llu\n", tmp___0);
10251 }
10252#line 180
10253 return ((ssize_t )tmp___1);
10254}
10255}
10256#line 184 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10257static ssize_t mem_used_total_show(struct device *dev , struct device_attribute *attr ,
10258 char *buf )
10259{ u64 val ;
10260 struct zram *zram ;
10261 struct zram *tmp ;
10262 u64 tmp___0 ;
10263 int tmp___1 ;
10264 unsigned long __cil_tmp9 ;
10265 unsigned long __cil_tmp10 ;
10266 struct zs_pool *__cil_tmp11 ;
10267 unsigned long __cil_tmp12 ;
10268 unsigned long __cil_tmp13 ;
10269 unsigned long __cil_tmp14 ;
10270 u32 __cil_tmp15 ;
10271 u64 __cil_tmp16 ;
10272 u64 __cil_tmp17 ;
10273
10274 {
10275 {
10276#line 187
10277 val = (u64 )0;
10278#line 188
10279 tmp = dev_to_zram(dev);
10280#line 188
10281 zram = tmp;
10282 }
10283 {
10284#line 190
10285 __cil_tmp9 = (unsigned long )zram;
10286#line 190
10287 __cil_tmp10 = __cil_tmp9 + 120;
10288#line 190
10289 if (*((int *)__cil_tmp10)) {
10290 {
10291#line 191
10292 __cil_tmp11 = *((struct zs_pool **)zram);
10293#line 191
10294 tmp___0 = zs_get_total_size_bytes(__cil_tmp11);
10295#line 191
10296 __cil_tmp12 = 184 + 68;
10297#line 191
10298 __cil_tmp13 = (unsigned long )zram;
10299#line 191
10300 __cil_tmp14 = __cil_tmp13 + __cil_tmp12;
10301#line 191
10302 __cil_tmp15 = *((u32 *)__cil_tmp14);
10303#line 191
10304 __cil_tmp16 = (u64 )__cil_tmp15;
10305#line 191
10306 __cil_tmp17 = __cil_tmp16 << 12;
10307#line 191
10308 val = tmp___0 + __cil_tmp17;
10309 }
10310 } else {
10311
10312 }
10313 }
10314 {
10315#line 195
10316 tmp___1 = sprintf(buf, "%llu\n", val);
10317 }
10318#line 195
10319 return ((ssize_t )tmp___1);
10320}
10321}
10322#line 198 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10323static struct device_attribute dev_attr_disksize = {{"disksize", (umode_t )420}, & disksize_show, & disksize_store};
10324#line 200 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10325static struct device_attribute dev_attr_initstate = {{"initstate", (umode_t )292}, & initstate_show, (ssize_t (*)(struct device *dev ,
10326 struct device_attribute *attr ,
10327 char const *buf ,
10328 size_t count ))((void *)0)};
10329#line 201 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10330static struct device_attribute dev_attr_reset = {{"reset", (umode_t )128}, (ssize_t (*)(struct device *dev , struct device_attribute *attr ,
10331 char *buf ))((void *)0), & reset_store};
10332#line 202 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10333static struct device_attribute dev_attr_num_reads = {{"num_reads", (umode_t )292}, & num_reads_show, (ssize_t (*)(struct device *dev ,
10334 struct device_attribute *attr ,
10335 char const *buf ,
10336 size_t count ))((void *)0)};
10337#line 203 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10338static struct device_attribute dev_attr_num_writes = {{"num_writes", (umode_t )292}, & num_writes_show, (ssize_t (*)(struct device *dev ,
10339 struct device_attribute *attr ,
10340 char const *buf ,
10341 size_t count ))((void *)0)};
10342#line 204 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10343static struct device_attribute dev_attr_invalid_io = {{"invalid_io", (umode_t )292}, & invalid_io_show, (ssize_t (*)(struct device *dev ,
10344 struct device_attribute *attr ,
10345 char const *buf ,
10346 size_t count ))((void *)0)};
10347#line 205 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10348static struct device_attribute dev_attr_notify_free = {{"notify_free", (umode_t )292}, & notify_free_show, (ssize_t (*)(struct device *dev ,
10349 struct device_attribute *attr ,
10350 char const *buf ,
10351 size_t count ))((void *)0)};
10352#line 206 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10353static struct device_attribute dev_attr_zero_pages = {{"zero_pages", (umode_t )292}, & zero_pages_show, (ssize_t (*)(struct device *dev ,
10354 struct device_attribute *attr ,
10355 char const *buf ,
10356 size_t count ))((void *)0)};
10357#line 207 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10358static struct device_attribute dev_attr_orig_data_size = {{"orig_data_size", (umode_t )292}, & orig_data_size_show, (ssize_t (*)(struct device *dev ,
10359 struct device_attribute *attr ,
10360 char const *buf ,
10361 size_t count ))((void *)0)};
10362#line 208 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10363static struct device_attribute dev_attr_compr_data_size = {{"compr_data_size", (umode_t )292}, & compr_data_size_show, (ssize_t (*)(struct device *dev ,
10364 struct device_attribute *attr ,
10365 char const *buf ,
10366 size_t count ))((void *)0)};
10367#line 209 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10368static struct device_attribute dev_attr_mem_used_total = {{"mem_used_total", (umode_t )292}, & mem_used_total_show, (ssize_t (*)(struct device *dev ,
10369 struct device_attribute *attr ,
10370 char const *buf ,
10371 size_t count ))((void *)0)};
10372#line 211 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10373static struct attribute *zram_disk_attrs[12] =
10374#line 211
10375 { & dev_attr_disksize.attr, & dev_attr_initstate.attr, & dev_attr_reset.attr, & dev_attr_num_reads.attr,
10376 & dev_attr_num_writes.attr, & dev_attr_invalid_io.attr, & dev_attr_notify_free.attr, & dev_attr_zero_pages.attr,
10377 & dev_attr_orig_data_size.attr, & dev_attr_compr_data_size.attr, & dev_attr_mem_used_total.attr, (struct attribute *)((void *)0)};
10378#line 226 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10379struct attribute_group zram_disk_attr_group = {(char const *)0, (umode_t (*)(struct kobject * , struct attribute * , int ))0,
10380 zram_disk_attrs};
10381#line 261 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/1136/dscv_tempdir/dscv/ri/32_1/drivers/staging/zram/zram_sysfs.c"
10382void main(void)
10383{ int tmp ;
10384 int tmp___0 ;
10385
10386 {
10387 {
10388#line 273
10389 LDV_IN_INTERRUPT = 1;
10390#line 282
10391 ldv_initialize();
10392 }
10393 {
10394#line 284
10395 while (1) {
10396 while_continue: ;
10397 {
10398#line 284
10399 tmp___0 = __VERIFIER_nondet_int();
10400 }
10401#line 284
10402 if (tmp___0) {
10403
10404 } else {
10405#line 284
10406 goto while_break;
10407 }
10408 {
10409#line 287
10410 tmp = __VERIFIER_nondet_int();
10411 }
10412 {
10413#line 289
10414 goto switch_default;
10415#line 287
10416 if (0) {
10417 switch_default:
10418#line 289
10419 goto switch_break;
10420 } else {
10421 switch_break: ;
10422 }
10423 }
10424 }
10425 while_break: ;
10426 }
10427 {
10428#line 298
10429 ldv_check_final_state();
10430 }
10431#line 301
10432 return;
10433}
10434}