This repository has been archived by the owner on Oct 3, 2021. It is now read-only.
/
32_1_cilled_true-unreach-call_ok_nondet_linux-3.4-32_1-drivers--char--ramoops.ko-ldv_main0_sequence_infinite_withcheck_stateful.cil.out.c
2052 lines (1996 loc) · 65.8 KB
/
32_1_cilled_true-unreach-call_ok_nondet_linux-3.4-32_1-drivers--char--ramoops.ko-ldv_main0_sequence_infinite_withcheck_stateful.cil.out.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
extern void __VERIFIER_error() __attribute__ ((__noreturn__));
/* Generated by CIL v. 1.3.7 */
/* print_CIL_Input is true */
typedef unsigned short __u16;
typedef unsigned int __u32;
typedef unsigned long long __u64;
typedef short s16;
typedef unsigned short u16;
typedef unsigned int u32;
typedef long long s64;
typedef unsigned long long u64;
typedef long __kernel_long_t;
typedef unsigned long __kernel_ulong_t;
typedef __kernel_long_t __kernel_suseconds_t;
typedef __kernel_ulong_t __kernel_size_t;
typedef __kernel_long_t __kernel_ssize_t;
typedef long long __kernel_loff_t;
typedef __kernel_long_t __kernel_time_t;
typedef __u32 __kernel_dev_t;
typedef __kernel_dev_t dev_t;
typedef unsigned short umode_t;
typedef _Bool bool;
typedef __kernel_loff_t loff_t;
typedef __kernel_size_t size_t;
typedef __kernel_ssize_t ssize_t;
typedef unsigned long ulong;
typedef unsigned int gfp_t;
typedef u64 phys_addr_t;
typedef phys_addr_t resource_size_t;
struct __anonstruct_atomic_t_7 {
int counter ;
};
typedef struct __anonstruct_atomic_t_7 atomic_t;
struct __anonstruct_atomic64_t_8 {
long counter ;
};
typedef struct __anonstruct_atomic64_t_8 atomic64_t;
struct list_head {
struct list_head *next ;
struct list_head *prev ;
};
struct module;
struct module;
typedef void (*ctor_fn_t)(void);
struct device;
struct device;
struct completion;
struct completion;
struct page;
struct page;
struct task_struct;
struct task_struct;
struct task_struct;
struct file;
struct file;
struct page;
struct task_struct;
struct arch_spinlock;
struct arch_spinlock;
struct task_struct;
struct task_struct;
struct bug_entry {
int bug_addr_disp ;
int file_disp ;
unsigned short line ;
unsigned short flags ;
};
struct static_key;
struct static_key;
struct kmem_cache;
typedef atomic64_t atomic_long_t;
typedef u16 __ticket_t;
typedef u32 __ticketpair_t;
struct __raw_tickets {
__ticket_t head ;
__ticket_t tail ;
};
union __anonunion____missing_field_name_36 {
__ticketpair_t head_tail ;
struct __raw_tickets tickets ;
};
struct arch_spinlock {
union __anonunion____missing_field_name_36 __annonCompField17 ;
};
typedef struct arch_spinlock arch_spinlock_t;
struct task_struct;
struct raw_spinlock {
arch_spinlock_t raw_lock ;
unsigned int magic ;
unsigned int owner_cpu ;
void *owner ;
};
union __anonunion____missing_field_name_39 {
struct raw_spinlock rlock ;
};
struct spinlock {
union __anonunion____missing_field_name_39 __annonCompField19 ;
};
typedef struct spinlock spinlock_t;
struct timeval {
__kernel_time_t tv_sec ;
__kernel_suseconds_t tv_usec ;
};
struct __wait_queue_head {
spinlock_t lock ;
struct list_head task_list ;
};
typedef struct __wait_queue_head wait_queue_head_t;
struct task_struct;
struct page;
struct mutex {
atomic_t count ;
spinlock_t wait_lock ;
struct list_head wait_list ;
struct task_struct *owner ;
char const *name ;
void *magic ;
};
struct completion {
unsigned int done ;
wait_queue_head_t wait ;
};
struct page;
struct resource {
resource_size_t start ;
resource_size_t end ;
char const *name ;
unsigned long flags ;
struct resource *parent ;
struct resource *sibling ;
struct resource *child ;
};
struct device;
struct device;
union ktime {
s64 tv64 ;
};
typedef union ktime ktime_t;
struct tvec_base;
struct tvec_base;
struct timer_list {
struct list_head entry ;
unsigned long expires ;
struct tvec_base *base ;
void (*function)(unsigned long ) ;
unsigned long data ;
int slack ;
int start_pid ;
void *start_site ;
char start_comm[16] ;
};
struct work_struct;
struct work_struct;
struct work_struct {
atomic_long_t data ;
struct list_head entry ;
void (*func)(struct work_struct *work ) ;
};
struct device;
struct pm_message {
int event ;
};
typedef struct pm_message pm_message_t;
struct dev_pm_ops {
int (*prepare)(struct device *dev ) ;
void (*complete)(struct device *dev ) ;
int (*suspend)(struct device *dev ) ;
int (*resume)(struct device *dev ) ;
int (*freeze)(struct device *dev ) ;
int (*thaw)(struct device *dev ) ;
int (*poweroff)(struct device *dev ) ;
int (*restore)(struct device *dev ) ;
int (*suspend_late)(struct device *dev ) ;
int (*resume_early)(struct device *dev ) ;
int (*freeze_late)(struct device *dev ) ;
int (*thaw_early)(struct device *dev ) ;
int (*poweroff_late)(struct device *dev ) ;
int (*restore_early)(struct device *dev ) ;
int (*suspend_noirq)(struct device *dev ) ;
int (*resume_noirq)(struct device *dev ) ;
int (*freeze_noirq)(struct device *dev ) ;
int (*thaw_noirq)(struct device *dev ) ;
int (*poweroff_noirq)(struct device *dev ) ;
int (*restore_noirq)(struct device *dev ) ;
int (*runtime_suspend)(struct device *dev ) ;
int (*runtime_resume)(struct device *dev ) ;
int (*runtime_idle)(struct device *dev ) ;
};
enum rpm_status {
RPM_ACTIVE = 0,
RPM_RESUMING = 1,
RPM_SUSPENDED = 2,
RPM_SUSPENDING = 3
} ;
enum rpm_request {
RPM_REQ_NONE = 0,
RPM_REQ_IDLE = 1,
RPM_REQ_SUSPEND = 2,
RPM_REQ_AUTOSUSPEND = 3,
RPM_REQ_RESUME = 4
} ;
struct wakeup_source;
struct wakeup_source;
struct pm_subsys_data {
spinlock_t lock ;
unsigned int refcount ;
};
struct dev_pm_qos_request;
struct pm_qos_constraints;
struct dev_pm_info {
pm_message_t power_state ;
unsigned int can_wakeup : 1 ;
unsigned int async_suspend : 1 ;
bool is_prepared : 1 ;
bool is_suspended : 1 ;
bool ignore_children : 1 ;
spinlock_t lock ;
struct list_head entry ;
struct completion completion ;
struct wakeup_source *wakeup ;
bool wakeup_path : 1 ;
struct timer_list suspend_timer ;
unsigned long timer_expires ;
struct work_struct work ;
wait_queue_head_t wait_queue ;
atomic_t usage_count ;
atomic_t child_count ;
unsigned int disable_depth : 3 ;
unsigned int idle_notification : 1 ;
unsigned int request_pending : 1 ;
unsigned int deferred_resume : 1 ;
unsigned int run_wake : 1 ;
unsigned int runtime_auto : 1 ;
unsigned int no_callbacks : 1 ;
unsigned int irq_safe : 1 ;
unsigned int use_autosuspend : 1 ;
unsigned int timer_autosuspends : 1 ;
enum rpm_request request ;
enum rpm_status runtime_status ;
int runtime_error ;
int autosuspend_delay ;
unsigned long last_busy ;
unsigned long active_jiffies ;
unsigned long suspended_jiffies ;
unsigned long accounting_timestamp ;
ktime_t suspend_time ;
s64 max_time_suspended_ns ;
struct dev_pm_qos_request *pq_req ;
struct pm_subsys_data *subsys_data ;
struct pm_qos_constraints *constraints ;
};
struct dev_pm_domain {
struct dev_pm_ops ops ;
};
struct vm_area_struct;
struct vm_area_struct;
struct page;
struct vm_area_struct;
struct completion;
struct file;
struct task_struct;
typedef __u64 Elf64_Addr;
typedef __u16 Elf64_Half;
typedef __u32 Elf64_Word;
typedef __u64 Elf64_Xword;
struct elf64_sym {
Elf64_Word st_name ;
unsigned char st_info ;
unsigned char st_other ;
Elf64_Half st_shndx ;
Elf64_Addr st_value ;
Elf64_Xword st_size ;
};
typedef struct elf64_sym Elf64_Sym;
struct file;
struct sock;
struct sock;
struct kobject;
struct kobject;
enum kobj_ns_type {
KOBJ_NS_TYPE_NONE = 0,
KOBJ_NS_TYPE_NET = 1,
KOBJ_NS_TYPES = 2
} ;
struct kobj_ns_type_operations {
enum kobj_ns_type type ;
void *(*grab_current_ns)(void) ;
void const *(*netlink_ns)(struct sock *sk ) ;
void const *(*initial_ns)(void) ;
void (*drop_ns)(void * ) ;
};
struct kobject;
struct module;
enum kobj_ns_type;
struct attribute {
char const *name ;
umode_t mode ;
};
struct attribute_group {
char const *name ;
umode_t (*is_visible)(struct kobject * , struct attribute * , int ) ;
struct attribute **attrs ;
};
struct file;
struct vm_area_struct;
struct bin_attribute {
struct attribute attr ;
size_t size ;
void *private ;
ssize_t (*read)(struct file * , struct kobject * , struct bin_attribute * , char * ,
loff_t , size_t ) ;
ssize_t (*write)(struct file * , struct kobject * , struct bin_attribute * , char * ,
loff_t , size_t ) ;
int (*mmap)(struct file * , struct kobject * , struct bin_attribute *attr , struct vm_area_struct *vma ) ;
};
struct sysfs_ops {
ssize_t (*show)(struct kobject * , struct attribute * , char * ) ;
ssize_t (*store)(struct kobject * , struct attribute * , char const * , size_t ) ;
void const *(*namespace)(struct kobject * , struct attribute const * ) ;
};
struct sysfs_dirent;
struct sysfs_dirent;
struct kref {
atomic_t refcount ;
};
struct kset;
struct kobj_type;
struct kobject {
char const *name ;
struct list_head entry ;
struct kobject *parent ;
struct kset *kset ;
struct kobj_type *ktype ;
struct sysfs_dirent *sd ;
struct kref kref ;
unsigned int state_initialized : 1 ;
unsigned int state_in_sysfs : 1 ;
unsigned int state_add_uevent_sent : 1 ;
unsigned int state_remove_uevent_sent : 1 ;
unsigned int uevent_suppress : 1 ;
};
struct kobj_type {
void (*release)(struct kobject *kobj ) ;
struct sysfs_ops const *sysfs_ops ;
struct attribute **default_attrs ;
struct kobj_ns_type_operations const *(*child_ns_type)(struct kobject *kobj ) ;
void const *(*namespace)(struct kobject *kobj ) ;
};
struct kobj_uevent_env {
char *envp[32] ;
int envp_idx ;
char buf[2048] ;
int buflen ;
};
struct kset_uevent_ops {
int (* const filter)(struct kset *kset , struct kobject *kobj ) ;
char const *(* const name)(struct kset *kset , struct kobject *kobj ) ;
int (* const uevent)(struct kset *kset , struct kobject *kobj , struct kobj_uevent_env *env ) ;
};
struct sock;
struct kset {
struct list_head list ;
spinlock_t list_lock ;
struct kobject kobj ;
struct kset_uevent_ops const *uevent_ops ;
};
struct kernel_param;
struct kernel_param;
struct kernel_param_ops {
int (*set)(char const *val , struct kernel_param const *kp ) ;
int (*get)(char *buffer , struct kernel_param const *kp ) ;
void (*free)(void *arg ) ;
};
struct kparam_string;
struct kparam_array;
union __anonunion____missing_field_name_199 {
void *arg ;
struct kparam_string const *str ;
struct kparam_array const *arr ;
};
struct kernel_param {
char const *name ;
struct kernel_param_ops const *ops ;
u16 perm ;
s16 level ;
union __anonunion____missing_field_name_199 __annonCompField32 ;
};
struct kparam_string {
unsigned int maxlen ;
char *string ;
};
struct kparam_array {
unsigned int max ;
unsigned int elemsize ;
unsigned int *num ;
struct kernel_param_ops const *ops ;
void *elem ;
};
struct module;
struct module;
struct static_key {
atomic_t enabled ;
};
struct module;
struct tracepoint;
struct tracepoint;
struct tracepoint_func {
void *func ;
void *data ;
};
struct tracepoint {
char const *name ;
struct static_key key ;
void (*regfunc)(void) ;
void (*unregfunc)(void) ;
struct tracepoint_func *funcs ;
};
struct kernel_symbol {
unsigned long value ;
char const *name ;
};
struct mod_arch_specific {
};
struct module;
struct module_param_attrs;
struct module_kobject {
struct kobject kobj ;
struct module *mod ;
struct kobject *drivers_dir ;
struct module_param_attrs *mp ;
};
struct module_attribute {
struct attribute attr ;
ssize_t (*show)(struct module_attribute * , struct module_kobject * , char * ) ;
ssize_t (*store)(struct module_attribute * , struct module_kobject * , char const * ,
size_t count ) ;
void (*setup)(struct module * , char const * ) ;
int (*test)(struct module * ) ;
void (*free)(struct module * ) ;
};
struct exception_table_entry;
struct exception_table_entry;
enum module_state {
MODULE_STATE_LIVE = 0,
MODULE_STATE_COMING = 1,
MODULE_STATE_GOING = 2
} ;
struct module_ref {
unsigned long incs ;
unsigned long decs ;
} __attribute__((__aligned__((2) * (sizeof(unsigned long )) ))) ;
struct module_sect_attrs;
struct module_notes_attrs;
struct ftrace_event_call;
struct module {
enum module_state state ;
struct list_head list ;
char name[64UL - sizeof(unsigned long )] ;
struct module_kobject mkobj ;
struct module_attribute *modinfo_attrs ;
char const *version ;
char const *srcversion ;
struct kobject *holders_dir ;
struct kernel_symbol const *syms ;
unsigned long const *crcs ;
unsigned int num_syms ;
struct kernel_param *kp ;
unsigned int num_kp ;
unsigned int num_gpl_syms ;
struct kernel_symbol const *gpl_syms ;
unsigned long const *gpl_crcs ;
struct kernel_symbol const *unused_syms ;
unsigned long const *unused_crcs ;
unsigned int num_unused_syms ;
unsigned int num_unused_gpl_syms ;
struct kernel_symbol const *unused_gpl_syms ;
unsigned long const *unused_gpl_crcs ;
struct kernel_symbol const *gpl_future_syms ;
unsigned long const *gpl_future_crcs ;
unsigned int num_gpl_future_syms ;
unsigned int num_exentries ;
struct exception_table_entry *extable ;
int (*init)(void) ;
void *module_init ;
void *module_core ;
unsigned int init_size ;
unsigned int core_size ;
unsigned int init_text_size ;
unsigned int core_text_size ;
unsigned int init_ro_size ;
unsigned int core_ro_size ;
struct mod_arch_specific arch ;
unsigned int taints ;
unsigned int num_bugs ;
struct list_head bug_list ;
struct bug_entry *bug_table ;
Elf64_Sym *symtab ;
Elf64_Sym *core_symtab ;
unsigned int num_symtab ;
unsigned int core_num_syms ;
char *strtab ;
char *core_strtab ;
struct module_sect_attrs *sect_attrs ;
struct module_notes_attrs *notes_attrs ;
char *args ;
void *percpu ;
unsigned int percpu_size ;
unsigned int num_tracepoints ;
struct tracepoint * const *tracepoints_ptrs ;
unsigned int num_trace_bprintk_fmt ;
char const **trace_bprintk_fmt_start ;
struct ftrace_event_call **trace_events ;
unsigned int num_trace_events ;
struct list_head source_list ;
struct list_head target_list ;
struct task_struct *waiter ;
void (*exit)(void) ;
struct module_ref *refptr ;
ctor_fn_t *ctors ;
unsigned int num_ctors ;
};
enum kmsg_dump_reason {
KMSG_DUMP_PANIC = 0,
KMSG_DUMP_OOPS = 1,
KMSG_DUMP_EMERG = 2,
KMSG_DUMP_RESTART = 3,
KMSG_DUMP_HALT = 4,
KMSG_DUMP_POWEROFF = 5
} ;
struct kmsg_dumper {
void (*dump)(struct kmsg_dumper *dumper , enum kmsg_dump_reason reason , char const *s1 ,
unsigned long l1 , char const *s2 , unsigned long l2 ) ;
struct list_head list ;
int registered ;
};
struct device;
struct klist_node;
struct klist_node;
struct klist_node {
void *n_klist ;
struct list_head n_node ;
struct kref n_ref ;
};
struct dma_map_ops;
struct dev_archdata {
void *acpi_handle ;
struct dma_map_ops *dma_ops ;
void *iommu ;
};
struct pdev_archdata {
};
struct device;
struct device_private;
struct device_private;
struct device_driver;
struct device_driver;
struct driver_private;
struct driver_private;
struct module;
struct class;
struct class;
struct subsys_private;
struct subsys_private;
struct bus_type;
struct bus_type;
struct device_node;
struct device_node;
struct iommu_ops;
struct iommu_ops;
struct bus_attribute {
struct attribute attr ;
ssize_t (*show)(struct bus_type *bus , char *buf ) ;
ssize_t (*store)(struct bus_type *bus , char const *buf , size_t count ) ;
};
struct device_attribute;
struct driver_attribute;
struct bus_type {
char const *name ;
char const *dev_name ;
struct device *dev_root ;
struct bus_attribute *bus_attrs ;
struct device_attribute *dev_attrs ;
struct driver_attribute *drv_attrs ;
int (*match)(struct device *dev , struct device_driver *drv ) ;
int (*uevent)(struct device *dev , struct kobj_uevent_env *env ) ;
int (*probe)(struct device *dev ) ;
int (*remove)(struct device *dev ) ;
void (*shutdown)(struct device *dev ) ;
int (*suspend)(struct device *dev , pm_message_t state ) ;
int (*resume)(struct device *dev ) ;
struct dev_pm_ops const *pm ;
struct iommu_ops *iommu_ops ;
struct subsys_private *p ;
};
struct device_type;
struct of_device_id;
struct device_driver {
char const *name ;
struct bus_type *bus ;
struct module *owner ;
char const *mod_name ;
bool suppress_bind_attrs ;
struct of_device_id const *of_match_table ;
int (*probe)(struct device *dev ) ;
int (*remove)(struct device *dev ) ;
void (*shutdown)(struct device *dev ) ;
int (*suspend)(struct device *dev , pm_message_t state ) ;
int (*resume)(struct device *dev ) ;
struct attribute_group const **groups ;
struct dev_pm_ops const *pm ;
struct driver_private *p ;
};
struct driver_attribute {
struct attribute attr ;
ssize_t (*show)(struct device_driver *driver , char *buf ) ;
ssize_t (*store)(struct device_driver *driver , char const *buf , size_t count ) ;
};
struct class_attribute;
struct class {
char const *name ;
struct module *owner ;
struct class_attribute *class_attrs ;
struct device_attribute *dev_attrs ;
struct bin_attribute *dev_bin_attrs ;
struct kobject *dev_kobj ;
int (*dev_uevent)(struct device *dev , struct kobj_uevent_env *env ) ;
char *(*devnode)(struct device *dev , umode_t *mode ) ;
void (*class_release)(struct class *class ) ;
void (*dev_release)(struct device *dev ) ;
int (*suspend)(struct device *dev , pm_message_t state ) ;
int (*resume)(struct device *dev ) ;
struct kobj_ns_type_operations const *ns_type ;
void const *(*namespace)(struct device *dev ) ;
struct dev_pm_ops const *pm ;
struct subsys_private *p ;
};
struct class_attribute {
struct attribute attr ;
ssize_t (*show)(struct class *class , struct class_attribute *attr , char *buf ) ;
ssize_t (*store)(struct class *class , struct class_attribute *attr , char const *buf ,
size_t count ) ;
void const *(*namespace)(struct class *class , struct class_attribute const *attr ) ;
};
struct device_type {
char const *name ;
struct attribute_group const **groups ;
int (*uevent)(struct device *dev , struct kobj_uevent_env *env ) ;
char *(*devnode)(struct device *dev , umode_t *mode ) ;
void (*release)(struct device *dev ) ;
struct dev_pm_ops const *pm ;
};
struct device_attribute {
struct attribute attr ;
ssize_t (*show)(struct device *dev , struct device_attribute *attr , char *buf ) ;
ssize_t (*store)(struct device *dev , struct device_attribute *attr , char const *buf ,
size_t count ) ;
};
struct device_dma_parameters {
unsigned int max_segment_size ;
unsigned long segment_boundary_mask ;
};
struct dma_coherent_mem;
struct device {
struct device *parent ;
struct device_private *p ;
struct kobject kobj ;
char const *init_name ;
struct device_type const *type ;
struct mutex mutex ;
struct bus_type *bus ;
struct device_driver *driver ;
void *platform_data ;
struct dev_pm_info power ;
struct dev_pm_domain *pm_domain ;
int numa_node ;
u64 *dma_mask ;
u64 coherent_dma_mask ;
struct device_dma_parameters *dma_parms ;
struct list_head dma_pools ;
struct dma_coherent_mem *dma_mem ;
struct dev_archdata archdata ;
struct device_node *of_node ;
dev_t devt ;
u32 id ;
spinlock_t devres_lock ;
struct list_head devres_head ;
struct klist_node knode_class ;
struct class *class ;
struct attribute_group const **groups ;
void (*release)(struct device *dev ) ;
};
struct wakeup_source {
char const *name ;
struct list_head entry ;
spinlock_t lock ;
struct timer_list timer ;
unsigned long timer_expires ;
ktime_t total_time ;
ktime_t max_time ;
ktime_t last_time ;
unsigned long event_count ;
unsigned long active_count ;
unsigned long relax_count ;
unsigned long hit_count ;
unsigned int active : 1 ;
};
typedef unsigned long kernel_ulong_t;
struct of_device_id {
char name[32] ;
char type[32] ;
char compatible[128] ;
void *data ;
};
struct platform_device_id {
char name[20] ;
kernel_ulong_t driver_data __attribute__((__aligned__(sizeof(kernel_ulong_t )))) ;
};
struct mfd_cell;
struct mfd_cell;
struct platform_device {
char const *name ;
int id ;
struct device dev ;
u32 num_resources ;
struct resource *resource ;
struct platform_device_id const *id_entry ;
struct mfd_cell *mfd_cell ;
struct pdev_archdata archdata ;
};
struct platform_driver {
int (*probe)(struct platform_device * ) ;
int (*remove)(struct platform_device * ) ;
void (*shutdown)(struct platform_device * ) ;
int (*suspend)(struct platform_device * , pm_message_t state ) ;
int (*resume)(struct platform_device * ) ;
struct device_driver driver ;
struct platform_device_id const *id_table ;
};
struct kmem_cache_cpu {
void **freelist ;
unsigned long tid ;
struct page *page ;
struct page *partial ;
int node ;
unsigned int stat[26] ;
};
struct kmem_cache_node {
spinlock_t list_lock ;
unsigned long nr_partial ;
struct list_head partial ;
atomic_long_t nr_slabs ;
atomic_long_t total_objects ;
struct list_head full ;
};
struct kmem_cache_order_objects {
unsigned long x ;
};
struct kmem_cache {
struct kmem_cache_cpu *cpu_slab ;
unsigned long flags ;
unsigned long min_partial ;
int size ;
int objsize ;
int offset ;
int cpu_partial ;
struct kmem_cache_order_objects oo ;
struct kmem_cache_order_objects max ;
struct kmem_cache_order_objects min ;
gfp_t allocflags ;
int refcount ;
void (*ctor)(void * ) ;
int inuse ;
int align ;
int reserved ;
char const *name ;
struct list_head list ;
struct kobject kobj ;
int remote_node_defrag_ratio ;
struct kmem_cache_node *node[1 << 10] ;
};
struct ramoops_platform_data {
unsigned long mem_size ;
unsigned long mem_address ;
unsigned long record_size ;
int dump_oops ;
};
struct ramoops_context {
struct kmsg_dumper dump ;
void *virt_addr ;
phys_addr_t phys_addr ;
unsigned long size ;
unsigned long record_size ;
int dump_oops ;
int count ;
int max_count ;
};
long ldv__builtin_expect(long val , long res ) ;
__inline static int fls(int x ) __attribute__((__no_instrument_function__)) ;
__inline static int fls(int x )
{ long r ;
long tmp ;
{
tmp = -1L;
/* __asm__ ("bsrl %1,%0": "=r" (r): "rm" (x), "0" (tmp)); */
return (r + 1);
}
}
__inline static int ( __attribute__((__always_inline__)) fls64)(__u64 x ) __attribute__((__no_instrument_function__)) ;
__inline static int ( __attribute__((__always_inline__)) fls64)(__u64 x )
{ long bitpos ;
long __cil_tmp3 ;
{
bitpos = -1L;
__asm__ ("bsrq %1,%0": "+r" (bitpos): "rm" (x));
{
__cil_tmp3 = bitpos + 1L;
return ((int )__cil_tmp3);
}
}
}
__inline static unsigned int fls_long(unsigned long l ) __attribute__((__no_instrument_function__)) ;
__inline static unsigned int fls_long(unsigned long l )
{ int tmp ;
int tmp___0 ;
int __cil_tmp4 ;
__u64 __cil_tmp5 ;
{
if (8UL == 4UL) {
{
__cil_tmp4 = (int )l;
tmp = fls(__cil_tmp4);
}
return ((unsigned int )tmp);
} else {
}
{
__cil_tmp5 = (__u64 )l;
tmp___0 = fls64(__cil_tmp5);
}
return ((unsigned int )tmp___0);
}
}
__inline static unsigned long __rounddown_pow_of_two(unsigned long n ) __attribute__((__no_instrument_function__,
__const__)) ;
__inline static unsigned long __rounddown_pow_of_two(unsigned long n )
{ unsigned int tmp ;
unsigned int __cil_tmp3 ;
{
{
tmp = fls_long(n);
}
{
__cil_tmp3 = tmp - 1U;
return (1UL << __cil_tmp3);
}
}
}
extern int ( /* format attribute */ printk)(char const *fmt , ...) ;
extern int ( /* format attribute */ sprintf)(char *buf , char const *fmt , ...) ;
__inline static long __attribute__((__warn_unused_result__)) PTR_ERR(void const *ptr ) __attribute__((__no_instrument_function__)) ;
__inline static long __attribute__((__warn_unused_result__)) PTR_ERR(void const *ptr )
{
{
return ((long )ptr);
}
}
__inline static long __attribute__((__warn_unused_result__)) IS_ERR(void const *ptr ) __attribute__((__no_instrument_function__)) ;
__inline static long __attribute__((__warn_unused_result__)) IS_ERR(void const *ptr )
{ long tmp ;
unsigned long __cil_tmp3 ;
int __cil_tmp4 ;
int __cil_tmp5 ;
int __cil_tmp6 ;
long __cil_tmp7 ;
{
{
__cil_tmp3 = (unsigned long )ptr;
__cil_tmp4 = __cil_tmp3 >= 0xfffffffffffff001UL;
__cil_tmp5 = ! __cil_tmp4;
__cil_tmp6 = ! __cil_tmp5;
__cil_tmp7 = (long )__cil_tmp6;
tmp = ldv__builtin_expect(__cil_tmp7, 0L);
}
return (tmp);
}
}
extern void *memset(void *s , int c , size_t n ) ;
extern void do_gettimeofday(struct timeval *tv ) ;
void mutex_lock(struct mutex *lock ) ;
int __attribute__((__warn_unused_result__)) mutex_lock_interruptible(struct mutex *lock ) ;
int __attribute__((__warn_unused_result__)) mutex_lock_killable(struct mutex *lock ) ;
int mutex_trylock(struct mutex *lock ) ;
void mutex_unlock(struct mutex *lock ) ;
int atomic_dec_and_mutex_lock(atomic_t *cnt , struct mutex *lock ) ;
extern struct resource iomem_resource ;
extern struct resource *__request_region(struct resource * , resource_size_t start ,
resource_size_t n , char const *name ,
int flags ) ;
extern void __release_region(struct resource * , resource_size_t , resource_size_t ) ;
extern void *ioremap_nocache(resource_size_t offset , unsigned long size ) ;
__inline static void *ioremap(resource_size_t offset , unsigned long size ) __attribute__((__no_instrument_function__)) ;
__inline static void *ioremap(resource_size_t offset , unsigned long size )
{ void *tmp ;
{
{
tmp = ioremap_nocache(offset, size);
}
return (tmp);
}
}
extern void iounmap(void volatile *addr ) ;
extern struct kernel_param_ops param_ops_int ;
extern struct kernel_param_ops param_ops_ulong ;
extern struct module __this_module ;
int init_module(void) ;
void cleanup_module(void) ;
extern int kmsg_dump_register(struct kmsg_dumper *dumper ) ;
extern int kmsg_dump_unregister(struct kmsg_dumper *dumper ) ;
extern void platform_driver_unregister(struct platform_driver * ) ;
extern int platform_driver_probe(struct platform_driver *driver , int (*probe)(struct platform_device * ) ) ;
extern struct platform_device *platform_create_bundle(struct platform_driver *driver ,
int (*probe)(struct platform_device * ) ,
struct resource *res , unsigned int n_res ,
void const *data , size_t size ) ;
extern void kfree(void const * ) ;
extern void *__kmalloc(size_t size , gfp_t flags ) ;
__inline static void *( __attribute__((__always_inline__)) kmalloc)(size_t size ,
gfp_t flags ) __attribute__((__no_instrument_function__)) ;
__inline static void *( __attribute__((__always_inline__)) kmalloc)(size_t size ,
gfp_t flags )
{ void *tmp___2 ;
{
{
tmp___2 = __kmalloc(size, flags);
}
return (tmp___2);
}
}
__inline static void *kzalloc(size_t size , gfp_t flags ) __attribute__((__no_instrument_function__)) ;
__inline static void *kzalloc(size_t size , gfp_t flags )
{ void *tmp ;
unsigned int __cil_tmp4 ;
{
{
__cil_tmp4 = flags | 32768U;
tmp = kmalloc(size, __cil_tmp4);
}
return (tmp);
}
}
static ulong record_size = 4096UL;
static char const __param_str_record_size[12] =
{ (char const )'r', (char const )'e', (char const )'c', (char const )'o',
(char const )'r', (char const )'d', (char const )'_', (char const )'s',
(char const )'i', (char const )'z', (char const )'e', (char const )'\000'};
static struct kernel_param const __param_record_size __attribute__((__used__, __unused__,
__section__("__param"), __aligned__(sizeof(void *)))) = {__param_str_record_size, (struct kernel_param_ops const *)(& param_ops_ulong),
(u16 )256, (s16 )0, {(void *)(& record_size)}};
static char const __mod_record_sizetype40[27] __attribute__((__used__, __unused__,
__section__(".modinfo"), __aligned__(1))) =
{ (char const )'p', (char const )'a', (char const )'r', (char const )'m',
(char const )'t', (char const )'y', (char const )'p', (char const )'e',
(char const )'=', (char const )'r', (char const )'e', (char const )'c',
(char const )'o', (char const )'r', (char const )'d', (char const )'_',
(char const )'s', (char const )'i', (char const )'z', (char const )'e',
(char const )':', (char const )'u', (char const )'l', (char const )'o',
(char const )'n', (char const )'g', (char const )'\000'};
static char const __mod_record_size42[54] __attribute__((__used__, __unused__,
__section__(".modinfo"), __aligned__(1))) =
{ (char const )'p', (char const )'a', (char const )'r', (char const )'m',
(char const )'=', (char const )'r', (char const )'e', (char const )'c',
(char const )'o', (char const )'r', (char const )'d', (char const )'_',
(char const )'s', (char const )'i', (char const )'z', (char const )'e',
(char const )':', (char const )'s', (char const )'i', (char const )'z',
(char const )'e', (char const )' ', (char const )'o', (char const )'f',
(char const )' ', (char const )'e', (char const )'a', (char const )'c',
(char const )'h', (char const )' ', (char const )'d', (char const )'u',
(char const )'m', (char const )'p', (char const )' ', (char const )'d',
(char const )'o', (char const )'n', (char const )'e', (char const )' ',
(char const )'o', (char const )'n', (char const )' ', (char const )'o',
(char const )'o', (char const )'p', (char const )'s', (char const )'/',
(char const )'p', (char const )'a', (char const )'n', (char const )'i',
(char const )'c', (char const )'\000'};
static ulong mem_address ;
static char const __param_str_mem_address[12] =