Line data Source code
1 :
2 : struct device;
3 :
4 : void *ldv_dev_get_drvdata(const struct device *dev);
5 : int ldv_dev_set_drvdata(struct device *dev, void *data);
6 :
7 : struct spi_master;
8 : struct device;
9 : struct spi_master *ldv_spi_alloc_master(struct device *host, unsigned size);
10 :
11 : #include <linux/ldv/err.h>
12 :
13 : #include <linux/types.h>
14 : void *ldv_kzalloc(size_t size, gfp_t flags);
15 :
16 : struct clk;
17 :
18 : extern void ldv_clk_disable(struct clk *clk);
19 : extern int ldv_clk_enable(void);
20 :
21 : #include <linux/ldv/common.h>
22 : #include <linux/ldv/irq.h>
23 : #include <verifier/common.h>
24 : #include <verifier/nondet.h>
25 : #include <verifier/memory.h>
26 : #include <verifier/thread.h>
27 :
28 : #include <linux/cdev.h>
29 : #include <linux/miscdevice.h>
30 : #include <linux/seq_file.h>
31 : #include <linux/fs.h>
32 : #include <linux/pagemap.h>
33 :
34 :
35 : struct ldv_struct_insmod_10 {
36 : int signal_pending;
37 : };
38 :
39 : struct ldv_struct_random_containerless_scenario_5 {
40 : struct file_system_type *arg0;
41 : int signal_pending;
42 : };
43 :
44 : /* EMG Function declarations */
45 : void ldv_random_containerless_scenario_callback_3_10(ssize_t (*)(int, struct kiocb *, struct iovec *, loff_t , long unsigned int), int, struct kiocb *, struct iovec *, long long int, long unsigned int);
46 : void ldv_random_containerless_scenario_callback_3_13(int (*)(struct address_space *, struct page *), struct address_space *, struct page *);
47 : void ldv_random_containerless_scenario_callback_3_14(int (*)(struct page *, read_descriptor_t *, long unsigned int), struct page *, read_descriptor_t *, long unsigned int);
48 : void ldv_random_containerless_scenario_callback_3_17(int (*)(struct file *, struct page *), struct file *, struct page *);
49 : void ldv_random_containerless_scenario_callback_3_18(int (*)(struct file *, struct address_space *, struct list_head *, unsigned int), struct file *, struct address_space *, struct list_head *, unsigned int);
50 : void ldv_random_containerless_scenario_callback_3_21(void (*)(struct page *), struct page *);
51 : void ldv_random_containerless_scenario_callback_3_22(int (*)(struct file *, struct address_space *, loff_t , unsigned int, unsigned int, struct page **, void **), struct file *, struct address_space *, long long int, unsigned int, unsigned int, struct page **, void **);
52 : void ldv_random_containerless_scenario_callback_3_25(int (*)(struct file *, struct address_space *, loff_t , unsigned int, unsigned int, struct page *, void *), struct file *, struct address_space *, long long int, unsigned int, unsigned int, struct page *, void *);
53 : void ldv_random_containerless_scenario_callback_3_28(int (*)(struct page *, struct writeback_control *), struct page *, struct writeback_control *);
54 : void ldv_random_containerless_scenario_callback_3_29(int (*)(struct address_space *, struct writeback_control *), struct address_space *, struct writeback_control *);
55 : void ldv_random_containerless_scenario_callback_3_4(long unsigned int (*)(struct address_space *, long unsigned int), struct address_space *, long unsigned int);
56 :
57 : /* EMG variable declarations */
58 :
59 : /* EMG variable initialization */
60 :
61 : /* EMG function definitions */
62 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_10 */
63 : void ldv_random_containerless_scenario_callback_3_10(ssize_t (*arg0)(int, struct kiocb *, struct iovec *, loff_t , long unsigned int), int arg1, struct kiocb *arg2, struct iovec *arg3, long long int arg4, long unsigned int arg5) {
64 2 : ((& ext2_direct_IO))(arg1, arg2, arg3, arg4, arg5);
65 1 : }
66 :
67 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_13 */
68 : void ldv_random_containerless_scenario_callback_3_13(int (*arg0)(struct address_space *, struct page *), struct address_space *arg1, struct page *arg2) {
69 1 : ((& generic_error_remove_page))(arg1, arg2);
70 1 : }
71 :
72 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_14 */
73 : void ldv_random_containerless_scenario_callback_3_14(int (*arg0)(struct page *, read_descriptor_t *, long unsigned int), struct page *arg1, read_descriptor_t *arg2, long unsigned int arg3) {
74 1 : ((& block_is_partially_uptodate))(arg1, arg2, arg3);
75 1 : }
76 :
77 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_17 */
78 : void ldv_random_containerless_scenario_callback_3_17(int (*arg0)(struct file *, struct page *), struct file *arg1, struct page *arg2) {
79 2 : ((& ext2_readpage))(arg1, arg2);
80 1 : }
81 :
82 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_18 */
83 : void ldv_random_containerless_scenario_callback_3_18(int (*arg0)(struct file *, struct address_space *, struct list_head *, unsigned int), struct file *arg1, struct address_space *arg2, struct list_head *arg3, unsigned int arg4) {
84 2 : ((& ext2_readpages))(arg1, arg2, arg3, arg4);
85 1 : }
86 :
87 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_21 */
88 : void ldv_random_containerless_scenario_callback_3_21(void (*arg0)(struct page *), struct page *arg1) {
89 1 : ((& block_sync_page))(arg1);
90 1 : }
91 :
92 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_22 */
93 : void ldv_random_containerless_scenario_callback_3_22(int (*arg0)(struct file *, struct address_space *, loff_t , unsigned int, unsigned int, struct page **, void **), struct file *arg1, struct address_space *arg2, long long int arg3, unsigned int arg4, unsigned int arg5, struct page **arg6, void **arg7) {
94 2 : ((& ext2_write_begin))(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
95 1 : }
96 :
97 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_25 */
98 : void ldv_random_containerless_scenario_callback_3_25(int (*arg0)(struct file *, struct address_space *, loff_t , unsigned int, unsigned int, struct page *, void *), struct file *arg1, struct address_space *arg2, long long int arg3, unsigned int arg4, unsigned int arg5, struct page *arg6, void *arg7) {
99 1 : ((& nobh_write_end))(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
100 1 : }
101 :
102 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_28 */
103 : void ldv_random_containerless_scenario_callback_3_28(int (*arg0)(struct page *, struct writeback_control *), struct page *arg1, struct writeback_control *arg2) {
104 2 : ((& ext2_writepage))(arg1, arg2);
105 1 : }
106 :
107 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_29 */
108 : void ldv_random_containerless_scenario_callback_3_29(int (*arg0)(struct address_space *, struct writeback_control *), struct address_space *arg1, struct writeback_control *arg2) {
109 2 : ((& ext2_writepages))(arg1, arg2);
110 1 : }
111 :
112 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_4 */
113 : void ldv_random_containerless_scenario_callback_3_4(long unsigned int (*arg0)(struct address_space *, long unsigned int), struct address_space *arg1, long unsigned int arg2) {
114 2 : ((& ext2_bmap))(arg1, arg2);
115 1 : }
116 :
117 :
118 : /* AUX_FUNC ERR_PTR */
119 : static inline void *ERR_PTR (long int error)
120 : {
121 :
122 : return ldv_err_ptr(error);
123 : }
124 :
125 : /* AUX_FUNC PTR_ERR */
126 : static inline long int PTR_ERR (void const *ptr)
127 : {
128 :
129 : return ldv_ptr_err(ptr);
130 : }
131 :
132 : /* AUX_FUNC IS_ERR */
133 : static inline long int IS_ERR (void const *ptr)
134 : {
135 :
136 : return ldv_is_err(ptr);
137 : }
138 :
139 : /* AUX_FUNC IS_ERR_OR_NULL */
140 : static inline long int IS_ERR_OR_NULL (void const *ptr)
141 : {
142 :
143 : return ldv_is_err_or_null(ptr);
144 : }
145 :
146 : /* AUX_FUNC kzalloc */
147 : static inline void *kzalloc (size_t size, gfp_t flags)
148 : {
149 :
150 : return ldv_kzalloc(size, flags);
151 : }
|