forked from sosy-lab/sv-benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
usb_urb-drivers-media-video-msp3400.ko_true-unreach-call.cil.out.i.pp.i
9874 lines (9582 loc) · 266 KB
/
usb_urb-drivers-media-video-msp3400.ko_true-unreach-call.cil.out.i.pp.i
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__));
typedef signed char __s8;
typedef unsigned char __u8;
typedef short __s16;
typedef unsigned short __u16;
typedef int __s32;
typedef unsigned int __u32;
typedef long long __s64;
typedef unsigned long long __u64;
typedef unsigned char u8;
typedef unsigned short u16;
typedef int s32;
typedef unsigned int u32;
typedef long long s64;
typedef unsigned long long u64;
typedef unsigned short umode_t;
typedef unsigned int __kernel_mode_t;
typedef int __kernel_pid_t;
typedef unsigned int __kernel_uid_t;
typedef unsigned int __kernel_gid_t;
typedef unsigned long __kernel_size_t;
typedef long __kernel_ssize_t;
typedef long __kernel_time_t;
typedef long __kernel_suseconds_t;
typedef long __kernel_clock_t;
typedef int __kernel_timer_t;
typedef int __kernel_clockid_t;
typedef long long __kernel_loff_t;
typedef __kernel_uid_t __kernel_uid32_t;
typedef __kernel_gid_t __kernel_gid32_t;
typedef __u32 __kernel_dev_t;
typedef __kernel_dev_t dev_t;
typedef __kernel_mode_t mode_t;
typedef __kernel_pid_t pid_t;
typedef __kernel_clockid_t clockid_t;
typedef _Bool bool;
typedef __kernel_uid32_t uid_t;
typedef __kernel_gid32_t gid_t;
typedef __kernel_loff_t loff_t;
typedef __kernel_size_t size_t;
typedef __kernel_ssize_t ssize_t;
typedef __kernel_time_t time_t;
typedef __s32 int32_t;
typedef __u32 uint32_t;
typedef unsigned long sector_t;
typedef unsigned long blkcnt_t;
typedef u64 dma_addr_t;
typedef __u16 __le16;
typedef unsigned int gfp_t;
typedef unsigned int fmode_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 hlist_node;
struct hlist_head {
struct hlist_node *first ;
};
struct hlist_node {
struct hlist_node *next ;
struct hlist_node **pprev ;
};
struct module;
typedef void (*ctor_fn_t)(void);
struct bug_entry {
int bug_addr_disp ;
int file_disp ;
unsigned short line ;
unsigned short flags ;
};
struct completion;
struct pt_regs;
struct pid;
struct timespec;
struct compat_timespec;
struct __anonstruct_futex_11 {
u32 *uaddr ;
u32 val ;
u32 flags ;
u32 bitset ;
u64 time ;
u32 *uaddr2 ;
};
struct __anonstruct_nanosleep_12 {
clockid_t clockid ;
struct timespec *rmtp ;
struct compat_timespec *compat_rmtp ;
u64 expires ;
};
struct pollfd;
struct __anonstruct_poll_13 {
struct pollfd *ufds ;
int nfds ;
int has_timeout ;
unsigned long tv_sec ;
unsigned long tv_nsec ;
};
union __anonunion____missing_field_name_10 {
struct __anonstruct_futex_11 futex ;
struct __anonstruct_nanosleep_12 nanosleep ;
struct __anonstruct_poll_13 poll ;
};
struct restart_block {
long (*fn)(struct restart_block * ) ;
union __anonunion____missing_field_name_10 __annonCompField4 ;
};
struct page;
struct task_struct;
struct exec_domain;
struct mm_struct;
struct pt_regs {
unsigned long r15 ;
unsigned long r14 ;
unsigned long r13 ;
unsigned long r12 ;
unsigned long bp ;
unsigned long bx ;
unsigned long r11 ;
unsigned long r10 ;
unsigned long r9 ;
unsigned long r8 ;
unsigned long ax ;
unsigned long cx ;
unsigned long dx ;
unsigned long si ;
unsigned long di ;
unsigned long orig_ax ;
unsigned long ip ;
unsigned long cs ;
unsigned long flags ;
unsigned long sp ;
unsigned long ss ;
};
struct kernel_vm86_regs {
struct pt_regs pt ;
unsigned short es ;
unsigned short __esh ;
unsigned short ds ;
unsigned short __dsh ;
unsigned short fs ;
unsigned short __fsh ;
unsigned short gs ;
unsigned short __gsh ;
};
union __anonunion____missing_field_name_14 {
struct pt_regs *regs ;
struct kernel_vm86_regs *vm86 ;
};
struct math_emu_info {
long ___orig_eip ;
union __anonunion____missing_field_name_14 __annonCompField5 ;
};
typedef unsigned long pgdval_t;
typedef unsigned long pgprotval_t;
struct pgprot {
pgprotval_t pgprot ;
};
typedef struct pgprot pgprot_t;
struct __anonstruct_pgd_t_17 {
pgdval_t pgd ;
};
typedef struct __anonstruct_pgd_t_17 pgd_t;
typedef struct page *pgtable_t;
struct file;
struct seq_file;
struct __anonstruct____missing_field_name_22 {
unsigned int a ;
unsigned int b ;
};
struct __anonstruct____missing_field_name_23 {
u16 limit0 ;
u16 base0 ;
unsigned int base1 : 8 ;
unsigned int type : 4 ;
unsigned int s : 1 ;
unsigned int dpl : 2 ;
unsigned int p : 1 ;
unsigned int limit : 4 ;
unsigned int avl : 1 ;
unsigned int l : 1 ;
unsigned int d : 1 ;
unsigned int g : 1 ;
unsigned int base2 : 8 ;
};
union __anonunion____missing_field_name_21 {
struct __anonstruct____missing_field_name_22 __annonCompField7 ;
struct __anonstruct____missing_field_name_23 __annonCompField8 ;
};
struct desc_struct {
union __anonunion____missing_field_name_21 __annonCompField9 ;
} __attribute__((__packed__)) ;
struct thread_struct;
struct cpumask;
struct arch_spinlock;
struct cpumask {
unsigned long bits[((4096UL + 8UL * sizeof(long )) - 1UL) / (8UL * sizeof(long ))] ;
};
typedef struct cpumask cpumask_t;
typedef struct cpumask *cpumask_var_t;
struct map_segment;
struct exec_domain {
char const *name ;
void (*handler)(int , struct pt_regs * ) ;
unsigned char pers_low ;
unsigned char pers_high ;
unsigned long *signal_map ;
unsigned long *signal_invmap ;
struct map_segment *err_map ;
struct map_segment *socktype_map ;
struct map_segment *sockopt_map ;
struct map_segment *af_map ;
struct module *module ;
struct exec_domain *next ;
};
struct i387_fsave_struct {
u32 cwd ;
u32 swd ;
u32 twd ;
u32 fip ;
u32 fcs ;
u32 foo ;
u32 fos ;
u32 st_space[20] ;
u32 status ;
};
struct __anonstruct____missing_field_name_31 {
u64 rip ;
u64 rdp ;
};
struct __anonstruct____missing_field_name_32 {
u32 fip ;
u32 fcs ;
u32 foo ;
u32 fos ;
};
union __anonunion____missing_field_name_30 {
struct __anonstruct____missing_field_name_31 __annonCompField12 ;
struct __anonstruct____missing_field_name_32 __annonCompField13 ;
};
union __anonunion____missing_field_name_33 {
u32 padding1[12] ;
u32 sw_reserved[12] ;
};
struct i387_fxsave_struct {
u16 cwd ;
u16 swd ;
u16 twd ;
u16 fop ;
union __anonunion____missing_field_name_30 __annonCompField14 ;
u32 mxcsr ;
u32 mxcsr_mask ;
u32 st_space[32] ;
u32 xmm_space[64] ;
u32 padding[12] ;
union __anonunion____missing_field_name_33 __annonCompField15 ;
} __attribute__((__aligned__(16))) ;
struct i387_soft_struct {
u32 cwd ;
u32 swd ;
u32 twd ;
u32 fip ;
u32 fcs ;
u32 foo ;
u32 fos ;
u32 st_space[20] ;
u8 ftop ;
u8 changed ;
u8 lookahead ;
u8 no_update ;
u8 rm ;
u8 alimit ;
struct math_emu_info *info ;
u32 entry_eip ;
};
struct ymmh_struct {
u32 ymmh_space[64] ;
};
struct xsave_hdr_struct {
u64 xstate_bv ;
u64 reserved1[2] ;
u64 reserved2[5] ;
} __attribute__((__packed__)) ;
struct xsave_struct {
struct i387_fxsave_struct i387 ;
struct xsave_hdr_struct xsave_hdr ;
struct ymmh_struct ymmh ;
} __attribute__((__packed__, __aligned__(64))) ;
union thread_xstate {
struct i387_fsave_struct fsave ;
struct i387_fxsave_struct fxsave ;
struct i387_soft_struct soft ;
struct xsave_struct xsave ;
};
struct fpu {
union thread_xstate *state ;
};
struct kmem_cache;
struct perf_event;
struct thread_struct {
struct desc_struct tls_array[3] ;
unsigned long sp0 ;
unsigned long sp ;
unsigned long usersp ;
unsigned short es ;
unsigned short ds ;
unsigned short fsindex ;
unsigned short gsindex ;
unsigned long fs ;
unsigned long gs ;
struct perf_event *ptrace_bps[4] ;
unsigned long debugreg6 ;
unsigned long ptrace_dr7 ;
unsigned long cr2 ;
unsigned long trap_no ;
unsigned long error_code ;
struct fpu fpu ;
unsigned long *io_bitmap_ptr ;
unsigned long iopl ;
unsigned int io_bitmap_max ;
};
struct __anonstruct_mm_segment_t_35 {
unsigned long seg ;
};
typedef struct __anonstruct_mm_segment_t_35 mm_segment_t;
typedef atomic64_t atomic_long_t;
struct thread_info {
struct task_struct *task ;
struct exec_domain *exec_domain ;
__u32 flags ;
__u32 status ;
__u32 cpu ;
int preempt_count ;
mm_segment_t addr_limit ;
struct restart_block restart_block ;
void *sysenter_return ;
int uaccess_err ;
};
struct arch_spinlock {
unsigned int slock ;
};
typedef struct arch_spinlock arch_spinlock_t;
struct __anonstruct_arch_rwlock_t_36 {
unsigned int lock ;
};
typedef struct __anonstruct_arch_rwlock_t_36 arch_rwlock_t;
struct lockdep_map;
struct stack_trace {
unsigned int nr_entries ;
unsigned int max_entries ;
unsigned long *entries ;
int skip ;
};
struct lockdep_subclass_key {
char __one_byte ;
} __attribute__((__packed__)) ;
struct lock_class_key {
struct lockdep_subclass_key subkeys[8UL] ;
};
struct lock_class {
struct list_head hash_entry ;
struct list_head lock_entry ;
struct lockdep_subclass_key *key ;
unsigned int subclass ;
unsigned int dep_gen_id ;
unsigned long usage_mask ;
struct stack_trace usage_traces[13] ;
struct list_head locks_after ;
struct list_head locks_before ;
unsigned int version ;
unsigned long ops ;
char const *name ;
int name_version ;
unsigned long contention_point[4] ;
unsigned long contending_point[4] ;
};
struct lockdep_map {
struct lock_class_key *key ;
struct lock_class *class_cache[2] ;
char const *name ;
int cpu ;
unsigned long ip ;
};
struct held_lock {
u64 prev_chain_key ;
unsigned long acquire_ip ;
struct lockdep_map *instance ;
struct lockdep_map *nest_lock ;
u64 waittime_stamp ;
u64 holdtime_stamp ;
unsigned int class_idx : 13 ;
unsigned int irq_context : 2 ;
unsigned int trylock : 1 ;
unsigned int read : 2 ;
unsigned int check : 2 ;
unsigned int hardirqs_off : 1 ;
unsigned int references : 11 ;
};
struct raw_spinlock {
arch_spinlock_t raw_lock ;
unsigned int magic ;
unsigned int owner_cpu ;
void *owner ;
struct lockdep_map dep_map ;
};
typedef struct raw_spinlock raw_spinlock_t;
struct __anonstruct____missing_field_name_38 {
u8 __padding[(unsigned int )(& ((struct raw_spinlock *)0)->dep_map)] ;
struct lockdep_map dep_map ;
};
union __anonunion____missing_field_name_37 {
struct raw_spinlock rlock ;
struct __anonstruct____missing_field_name_38 __annonCompField17 ;
};
struct spinlock {
union __anonunion____missing_field_name_37 __annonCompField18 ;
};
typedef struct spinlock spinlock_t;
struct __anonstruct_rwlock_t_39 {
arch_rwlock_t raw_lock ;
unsigned int magic ;
unsigned int owner_cpu ;
void *owner ;
struct lockdep_map dep_map ;
};
typedef struct __anonstruct_rwlock_t_39 rwlock_t;
struct seqcount {
unsigned int sequence ;
};
typedef struct seqcount seqcount_t;
struct timespec {
__kernel_time_t tv_sec ;
long tv_nsec ;
};
struct timeval {
__kernel_time_t tv_sec ;
__kernel_suseconds_t tv_usec ;
};
struct kstat {
u64 ino ;
dev_t dev ;
umode_t mode ;
unsigned int nlink ;
uid_t uid ;
gid_t gid ;
dev_t rdev ;
loff_t size ;
struct timespec atime ;
struct timespec mtime ;
struct timespec ctime ;
unsigned long blksize ;
unsigned long long blocks ;
};
struct __wait_queue;
typedef struct __wait_queue wait_queue_t;
struct __wait_queue {
unsigned int flags ;
void *private ;
int (*func)(wait_queue_t *wait , unsigned int mode , int flags , void *key ) ;
struct list_head task_list ;
};
struct __wait_queue_head {
spinlock_t lock ;
struct list_head task_list ;
};
typedef struct __wait_queue_head wait_queue_head_t;
struct __anonstruct_nodemask_t_41 {
unsigned long bits[(((unsigned long )(1 << 10) + 8UL * sizeof(long )) - 1UL) / (8UL * sizeof(long ))] ;
};
typedef struct __anonstruct_nodemask_t_41 nodemask_t;
struct mutex {
atomic_t count ;
spinlock_t wait_lock ;
struct list_head wait_list ;
struct task_struct *owner ;
char const *name ;
void *magic ;
struct lockdep_map dep_map ;
};
struct mutex_waiter {
struct list_head list ;
struct task_struct *task ;
void *magic ;
};
struct rw_semaphore;
struct rw_semaphore {
long count ;
spinlock_t wait_lock ;
struct list_head wait_list ;
struct lockdep_map dep_map ;
};
struct device;
union ktime {
s64 tv64 ;
};
typedef union ktime ktime_t;
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 lockdep_map lockdep_map ;
};
struct hrtimer;
enum hrtimer_restart;
enum hrtimer_restart;
struct work_struct;
struct work_struct {
atomic_long_t data ;
struct list_head entry ;
void (*func)(struct work_struct *work ) ;
struct lockdep_map lockdep_map ;
};
struct delayed_work {
struct work_struct work ;
struct timer_list timer ;
};
struct completion {
unsigned int done ;
wait_queue_head_t wait ;
};
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_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 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 ;
spinlock_t lock ;
struct list_head entry ;
struct completion completion ;
struct wakeup_source *wakeup ;
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 ignore_children : 1 ;
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 ;
void *subsys_data ;
};
struct dev_power_domain {
struct dev_pm_ops ops ;
};
struct __anonstruct_mm_context_t_111 {
void *ldt ;
int size ;
unsigned short ia32_compat ;
struct mutex lock ;
void *vdso ;
};
typedef struct __anonstruct_mm_context_t_111 mm_context_t;
struct vm_area_struct;
struct rcu_head {
struct rcu_head *next ;
void (*func)(struct rcu_head *head ) ;
};
struct nsproxy;
struct cred;
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 sock;
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 * ) ;
};
enum kobj_ns_type;
struct attribute {
char const *name ;
mode_t mode ;
struct lock_class_key *key ;
struct lock_class_key skey ;
};
struct attribute_group {
char const *name ;
mode_t (*is_visible)(struct kobject * , struct attribute * , int ) ;
struct attribute **attrs ;
};
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 ) ;
};
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 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_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_195 {
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 ;
u16 flags ;
union __anonunion____missing_field_name_195 __annonCompField31 ;
};
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 jump_label_key {
atomic_t enabled ;
};
struct tracepoint;
struct tracepoint_func {
void *func ;
void *data ;
};
struct tracepoint {
char const *name ;
struct jump_label_key key ;
void (*regfunc)(void) ;
void (*unregfunc)(void) ;
struct tracepoint_func *funcs ;
};
struct mod_arch_specific {
};
struct kernel_symbol {
unsigned long value ;
char const *name ;
};
struct module_attribute {
struct attribute attr ;
ssize_t (*show)(struct module_attribute * , struct module * , char * ) ;
ssize_t (*store)(struct module_attribute * , struct module * , char const * ,
size_t count ) ;
void (*setup)(struct module * , char const * ) ;
int (*test)(struct module * ) ;
void (*free)(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 exception_table_entry;
enum module_state {
MODULE_STATE_LIVE = 0,
MODULE_STATE_COMING = 1,
MODULE_STATE_GOING = 2
} ;
struct module_sect_attrs;
struct module_notes_attrs;
struct ftrace_event_call;
struct module_ref {
unsigned int incs ;
unsigned int decs ;
};
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 ;
unsigned int num_ftrace_callsites ;
unsigned long *ftrace_callsites ;
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 ;
};
struct kmem_cache_cpu {
void **freelist ;
unsigned long tid ;
struct page *page ;
int node ;
unsigned int stat[19] ;
};
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 ;
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] ;
};
typedef unsigned long kernel_ulong_t;
struct of_device_id {
char name[32] ;
char type[32] ;
char compatible[128] ;
void *data ;
};
struct i2c_device_id {
char name[20] ;
kernel_ulong_t driver_data __attribute__((__aligned__(sizeof(kernel_ulong_t )))) ;
};
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 device_private;
struct device_driver;
struct driver_private;
struct class;
struct subsys_private;
struct bus_type;
struct device_node;
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 ;
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 subsys_private *p ;
};
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 , mode_t *mode ) ;
void (*class_release)(struct class *class ) ;
void (*dev_release)(struct device *dev ) ;