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/device.h>
29 : #include <linux/cdev.h>
30 : #include <linux/miscdevice.h>
31 : #include <linux/platform_device.h>
32 : #include <linux/pm.h>
33 : #include <linux/rtc.h>
34 : #include <scsi/scsi_host.h>
35 : #include <linux/fs.h>
36 : #include <linux/seq_file.h>
37 : #include <linux/pagemap.h>
38 :
39 :
40 : struct ldv_struct_platform_instance_4 {
41 : int signal_pending;
42 : };
43 :
44 : struct ldv_struct_traverse_kernel_items_scenario_10 {
45 : struct seq_file *arg0;
46 : struct seq_operations *arg1;
47 : int signal_pending;
48 : };
49 :
50 : /* EMG Function declarations */
51 : extern void ldv_character_driver_scenario_1(void *);
52 : extern void ldv_character_driver_scenario_2(void *);
53 : void ldv_dispatch_default_deregister_2_46_4(void);
54 : void ldv_dispatch_default_deregister_4_46_5(void);
55 : void ldv_dispatch_default_deregister_5_46_6(void);
56 : void ldv_dispatch_default_deregister_6_46_7(void);
57 : void ldv_dispatch_default_deregister_7_46_8(void);
58 : void ldv_dispatch_default_deregister_8_46_9(void);
59 : void ldv_dispatch_default_register_2_46_14(void);
60 : void ldv_dispatch_default_register_4_46_13(void);
61 : void ldv_dispatch_default_register_5_46_12(void);
62 : void ldv_dispatch_default_register_7_46_11(void);
63 : void ldv_dispatch_default_register_8_46_10(void);
64 : void ldv_dispatch_insmod_deregister_48_2(void);
65 : void ldv_dispatch_insmod_register_48_3(void);
66 : void ldv_dispatch_pm_deregister_4_5(void);
67 : void ldv_dispatch_pm_register_4_6(void);
68 : extern int ldv_emg_seq_open(struct file *, struct seq_operations *);
69 : void ldv_insmod_46(void *);
70 : void ldv_insmod_exit_scsi_46_2(void (*)(void));
71 : int ldv_insmod_init_scsi_46_22(int (*)(void));
72 : extern int ldv_insmod_scsi_complete_async_scans_46_18(int (*)(void));
73 : void ldv_main_48(void *);
74 : void ldv_platform_instance_4(void *);
75 : int ldv_platform_instance_probe_4_15(int (*)(struct platform_device *), struct platform_device *);
76 : void ldv_platform_instance_release_4_3(int (*)(struct platform_device *), struct platform_device *);
77 : extern void ldv_pm_ops_scenario_3(void *);
78 : void ldv_pm_ops_scenario_freeze_3_13(int (*)(struct device *), struct device *);
79 : void ldv_pm_ops_scenario_freeze_noirq_3_11(int (*)(struct device *), struct device *);
80 : void ldv_pm_ops_scenario_poweroff_3_8(int (*)(struct device *), struct device *);
81 : void ldv_pm_ops_scenario_poweroff_noirq_3_7(int (*)(struct device *), struct device *);
82 : void ldv_pm_ops_scenario_prepare_3_19(int (*)(struct device *), struct device *);
83 : void ldv_pm_ops_scenario_restore_3_4(int (*)(struct device *), struct device *);
84 : void ldv_pm_ops_scenario_restore_noirq_3_6(int (*)(struct device *), struct device *);
85 : void ldv_pm_ops_scenario_resume_noirq_3_16(int (*)(struct device *), struct device *);
86 : void ldv_pm_ops_scenario_runtime_idle_3_24(int (*)(struct device *), struct device *);
87 : void ldv_pm_ops_scenario_runtime_resume_3_21(int (*)(struct device *), struct device *);
88 : void ldv_pm_ops_scenario_runtime_suspend_3_22(int (*)(struct device *), struct device *);
89 : void ldv_pm_ops_scenario_suspend_3_18(int (*)(struct device *), struct device *);
90 : void ldv_pm_ops_scenario_suspend_noirq_3_17(int (*)(struct device *), struct device *);
91 : void ldv_pm_ops_scenario_thaw_3_9(int (*)(struct device *), struct device *);
92 : void ldv_pm_ops_scenario_thaw_noirq_3_10(int (*)(struct device *), struct device *);
93 : extern void ldv_random_containerless_scenario_11(void *);
94 : extern void ldv_random_containerless_scenario_12(void *);
95 : extern void ldv_random_containerless_scenario_13(void *);
96 : extern void ldv_random_containerless_scenario_14(void *);
97 : extern void ldv_random_containerless_scenario_15(void *);
98 : extern void ldv_random_containerless_scenario_16(void *);
99 : extern void ldv_random_containerless_scenario_17(void *);
100 : extern void ldv_random_containerless_scenario_18(void *);
101 : extern void ldv_random_containerless_scenario_19(void *);
102 : extern void ldv_random_containerless_scenario_20(void *);
103 : extern void ldv_random_containerless_scenario_21(void *);
104 : extern void ldv_random_containerless_scenario_22(void *);
105 : extern void ldv_random_containerless_scenario_23(void *);
106 : extern void ldv_random_containerless_scenario_24(void *);
107 : extern void ldv_random_containerless_scenario_25(void *);
108 : extern void ldv_random_containerless_scenario_26(void *);
109 : extern void ldv_random_containerless_scenario_27(void *);
110 : extern void ldv_random_containerless_scenario_28(void *);
111 : extern void ldv_random_containerless_scenario_29(void *);
112 : extern void ldv_random_containerless_scenario_30(void *);
113 : extern void ldv_random_containerless_scenario_31(void *);
114 : extern void ldv_random_containerless_scenario_32(void *);
115 : extern void ldv_random_containerless_scenario_33(void *);
116 : extern void ldv_random_containerless_scenario_34(void *);
117 : extern void ldv_random_containerless_scenario_35(void *);
118 : extern void ldv_random_containerless_scenario_36(void *);
119 : extern void ldv_random_containerless_scenario_37(void *);
120 : extern void ldv_random_containerless_scenario_38(void *);
121 : extern void ldv_random_containerless_scenario_39(void *);
122 : extern void ldv_random_containerless_scenario_40(void *);
123 : extern void ldv_random_containerless_scenario_41(void *);
124 : extern void ldv_random_containerless_scenario_42(void *);
125 : extern void ldv_random_containerless_scenario_43(void *);
126 : extern void ldv_random_containerless_scenario_44(void *);
127 : extern void ldv_random_containerless_scenario_45(void *);
128 : void ldv_random_containerless_scenario_callback_11_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
129 : void ldv_random_containerless_scenario_callback_12_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
130 : void ldv_random_containerless_scenario_callback_13_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
131 : void ldv_random_containerless_scenario_callback_14_4(ssize_t (*)(struct device *, struct device_attribute *, char *), struct device *, struct device_attribute *, char *);
132 : void ldv_random_containerless_scenario_callback_15_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
133 : void ldv_random_containerless_scenario_callback_17_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
134 : void ldv_random_containerless_scenario_callback_19_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
135 : void ldv_random_containerless_scenario_callback_20_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
136 : void ldv_random_containerless_scenario_callback_21_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
137 : void ldv_random_containerless_scenario_callback_22_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
138 : void ldv_random_containerless_scenario_callback_23_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
139 : void ldv_random_containerless_scenario_callback_24_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
140 : void ldv_random_containerless_scenario_callback_25_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
141 : void ldv_random_containerless_scenario_callback_26_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
142 : void ldv_random_containerless_scenario_callback_27_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
143 : void ldv_random_containerless_scenario_callback_28_4(ssize_t (*)(struct device *, struct device_attribute *, char *), struct device *, struct device_attribute *, char *);
144 : void ldv_random_containerless_scenario_callback_29_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
145 : void ldv_random_containerless_scenario_callback_30_4(ssize_t (*)(struct device *, struct device_attribute *, char *), struct device *, struct device_attribute *, char *);
146 : void ldv_random_containerless_scenario_callback_31_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
147 : void ldv_random_containerless_scenario_callback_32_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
148 : void ldv_random_containerless_scenario_callback_34_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
149 : void ldv_random_containerless_scenario_callback_36_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
150 : void ldv_random_containerless_scenario_callback_37_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
151 : void ldv_random_containerless_scenario_callback_38_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
152 : void ldv_random_containerless_scenario_callback_39_10(ssize_t (*)(struct device *, struct device_attribute *, char *, size_t ), struct device *, struct device_attribute *, char *, long unsigned int);
153 : extern void ldv_rtc_class_scenario_5(void *);
154 : extern void ldv_rtc_class_scenario_6(void *);
155 : extern void ldv_rtc_class_scenario_7(void *);
156 : extern void ldv_rtc_class_scenario_8(void *);
157 : extern void ldv_rtc_class_scenario_9(void *);
158 : int ldv_rtc_class_scenario_probe_5_11(int (*)(struct device *), struct device *);
159 : int ldv_rtc_class_scenario_probe_6_11(int (*)(struct device *), struct device *);
160 : int ldv_rtc_class_scenario_probe_7_11(int (*)(struct device *), struct device *);
161 : int ldv_rtc_class_scenario_probe_8_11(int (*)(struct device *), struct device *);
162 : int ldv_rtc_class_scenario_probe_9_11(int (*)(struct device *), struct device *);
163 : extern void ldv_traverse_kernel_items_scenario_10(void *);
164 : int main(void);
165 :
166 : /* EMG variable declarations */
167 1 : struct ldv_thread ldv_thread_4;
168 1 : struct ldv_thread ldv_thread_46;
169 1 : struct ldv_thread ldv_thread_48;
170 :
171 : /* EMG variable initialization */
172 :
173 : /* EMG function definitions */
174 : /* AUX_FUNC ldv_dispatch_default_deregister_2_46_4 */
175 : void ldv_dispatch_default_deregister_2_46_4() {
176 : struct ldv_struct_platform_instance_4 *cf_arg_1;
177 : struct ldv_struct_platform_instance_4 *cf_arg_2;
178 : /* Skip thread join call */
179 : /* Skip thread join call */
180 1 : return;
181 : }
182 :
183 : /* AUX_FUNC ldv_dispatch_default_deregister_4_46_5 */
184 : void ldv_dispatch_default_deregister_4_46_5() {
185 : struct ldv_struct_platform_instance_4 *cf_arg_4;
186 : /* Skip thread join call */
187 1 : return;
188 : }
189 :
190 : /* AUX_FUNC ldv_dispatch_default_deregister_5_46_6 */
191 : void ldv_dispatch_default_deregister_5_46_6() {
192 : struct ldv_struct_platform_instance_4 *cf_arg_8;
193 : struct ldv_struct_platform_instance_4 *cf_arg_9;
194 : struct ldv_struct_platform_instance_4 *cf_arg_5;
195 : struct ldv_struct_platform_instance_4 *cf_arg_6;
196 : struct ldv_struct_platform_instance_4 *cf_arg_7;
197 : /* Skip thread join call */
198 : /* Skip thread join call */
199 : /* Skip thread join call */
200 : /* Skip thread join call */
201 : /* Skip thread join call */
202 1 : return;
203 : }
204 :
205 : /* AUX_FUNC ldv_dispatch_default_deregister_6_46_7 */
206 : void ldv_dispatch_default_deregister_6_46_7() {
207 : struct ldv_struct_platform_instance_4 *cf_arg_10;
208 : /* Skip thread join call */
209 1 : return;
210 : }
211 :
212 : /* AUX_FUNC ldv_dispatch_default_deregister_7_46_8 */
213 : void ldv_dispatch_default_deregister_7_46_8() {
214 : struct ldv_struct_platform_instance_4 *cf_arg_11;
215 : struct ldv_struct_platform_instance_4 *cf_arg_12;
216 : struct ldv_struct_platform_instance_4 *cf_arg_13;
217 : struct ldv_struct_platform_instance_4 *cf_arg_14;
218 : struct ldv_struct_platform_instance_4 *cf_arg_15;
219 : struct ldv_struct_platform_instance_4 *cf_arg_16;
220 : struct ldv_struct_platform_instance_4 *cf_arg_17;
221 : struct ldv_struct_platform_instance_4 *cf_arg_18;
222 : struct ldv_struct_platform_instance_4 *cf_arg_19;
223 : struct ldv_struct_platform_instance_4 *cf_arg_20;
224 : struct ldv_struct_platform_instance_4 *cf_arg_21;
225 : struct ldv_struct_platform_instance_4 *cf_arg_22;
226 : struct ldv_struct_platform_instance_4 *cf_arg_23;
227 : struct ldv_struct_platform_instance_4 *cf_arg_24;
228 : struct ldv_struct_platform_instance_4 *cf_arg_25;
229 : struct ldv_struct_platform_instance_4 *cf_arg_26;
230 : struct ldv_struct_platform_instance_4 *cf_arg_27;
231 : struct ldv_struct_platform_instance_4 *cf_arg_28;
232 : struct ldv_struct_platform_instance_4 *cf_arg_29;
233 : struct ldv_struct_platform_instance_4 *cf_arg_30;
234 : struct ldv_struct_platform_instance_4 *cf_arg_31;
235 : struct ldv_struct_platform_instance_4 *cf_arg_32;
236 : struct ldv_struct_platform_instance_4 *cf_arg_33;
237 : struct ldv_struct_platform_instance_4 *cf_arg_34;
238 : struct ldv_struct_platform_instance_4 *cf_arg_35;
239 : struct ldv_struct_platform_instance_4 *cf_arg_36;
240 : struct ldv_struct_platform_instance_4 *cf_arg_37;
241 : struct ldv_struct_platform_instance_4 *cf_arg_38;
242 : struct ldv_struct_platform_instance_4 *cf_arg_39;
243 : struct ldv_struct_platform_instance_4 *cf_arg_40;
244 : struct ldv_struct_platform_instance_4 *cf_arg_41;
245 : struct ldv_struct_platform_instance_4 *cf_arg_42;
246 : /* Skip thread join call */
247 : /* Skip thread join call */
248 : /* Skip thread join call */
249 : /* Skip thread join call */
250 : /* Skip thread join call */
251 : /* Skip thread join call */
252 : /* Skip thread join call */
253 : /* Skip thread join call */
254 : /* Skip thread join call */
255 : /* Skip thread join call */
256 : /* Skip thread join call */
257 : /* Skip thread join call */
258 : /* Skip thread join call */
259 : /* Skip thread join call */
260 : /* Skip thread join call */
261 : /* Skip thread join call */
262 : /* Skip thread join call */
263 : /* Skip thread join call */
264 : /* Skip thread join call */
265 : /* Skip thread join call */
266 : /* Skip thread join call */
267 : /* Skip thread join call */
268 : /* Skip thread join call */
269 : /* Skip thread join call */
270 : /* Skip thread join call */
271 : /* Skip thread join call */
272 : /* Skip thread join call */
273 : /* Skip thread join call */
274 : /* Skip thread join call */
275 : /* Skip thread join call */
276 : /* Skip thread join call */
277 : /* Skip thread join call */
278 1 : return;
279 : }
280 :
281 : /* AUX_FUNC ldv_dispatch_default_deregister_8_46_9 */
282 : void ldv_dispatch_default_deregister_8_46_9() {
283 : struct ldv_struct_platform_instance_4 *cf_arg_43;
284 : struct ldv_struct_platform_instance_4 *cf_arg_44;
285 : struct ldv_struct_platform_instance_4 *cf_arg_45;
286 : /* Skip thread join call */
287 : /* Skip thread join call */
288 : /* Skip thread join call */
289 1 : return;
290 : }
291 :
292 : /* AUX_FUNC ldv_dispatch_default_register_2_46_14 */
293 : void ldv_dispatch_default_register_2_46_14() {
294 : struct ldv_struct_platform_instance_4 *cf_arg_1;
295 1 : struct ldv_struct_platform_instance_4 *cf_arg_2;
296 4 : cf_arg_1 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
297 3 : ldv_character_driver_scenario_1(cf_arg_1);
298 4 : cf_arg_2 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
299 2 : ldv_character_driver_scenario_2(cf_arg_2);
300 1 : return;
301 : }
302 :
303 : /* AUX_FUNC ldv_dispatch_default_register_4_46_13 */
304 : void ldv_dispatch_default_register_4_46_13() {
305 : struct ldv_struct_platform_instance_4 *cf_arg_4;
306 4 : cf_arg_4 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
307 3 : ldv_platform_instance_4(cf_arg_4);
308 1 : return;
309 : }
310 :
311 : /* AUX_FUNC ldv_dispatch_default_register_5_46_12 */
312 : void ldv_dispatch_default_register_5_46_12() {
313 : struct ldv_struct_platform_instance_4 *cf_arg_8;
314 1 : struct ldv_struct_platform_instance_4 *cf_arg_9;
315 1 : struct ldv_struct_platform_instance_4 *cf_arg_5;
316 1 : struct ldv_struct_platform_instance_4 *cf_arg_6;
317 1 : struct ldv_struct_platform_instance_4 *cf_arg_7;
318 4 : cf_arg_8 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
319 3 : ldv_rtc_class_scenario_8(cf_arg_8);
320 4 : cf_arg_9 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
321 3 : ldv_rtc_class_scenario_9(cf_arg_9);
322 4 : cf_arg_5 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
323 3 : ldv_rtc_class_scenario_5(cf_arg_5);
324 3 : cf_arg_6 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
325 2 : ldv_rtc_class_scenario_6(cf_arg_6);
326 3 : cf_arg_7 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
327 2 : ldv_rtc_class_scenario_7(cf_arg_7);
328 1 : return;
329 : }
330 :
331 : /* AUX_FUNC ldv_dispatch_default_register_7_46_11 */
332 : void ldv_dispatch_default_register_7_46_11() {
333 : struct ldv_struct_platform_instance_4 *cf_arg_11;
334 1 : struct ldv_struct_platform_instance_4 *cf_arg_12;
335 1 : struct ldv_struct_platform_instance_4 *cf_arg_13;
336 1 : struct ldv_struct_platform_instance_4 *cf_arg_14;
337 1 : struct ldv_struct_platform_instance_4 *cf_arg_15;
338 1 : struct ldv_struct_platform_instance_4 *cf_arg_16;
339 1 : struct ldv_struct_platform_instance_4 *cf_arg_17;
340 1 : struct ldv_struct_platform_instance_4 *cf_arg_18;
341 1 : struct ldv_struct_platform_instance_4 *cf_arg_19;
342 1 : struct ldv_struct_platform_instance_4 *cf_arg_20;
343 1 : struct ldv_struct_platform_instance_4 *cf_arg_21;
344 1 : struct ldv_struct_platform_instance_4 *cf_arg_22;
345 1 : struct ldv_struct_platform_instance_4 *cf_arg_23;
346 1 : struct ldv_struct_platform_instance_4 *cf_arg_24;
347 1 : struct ldv_struct_platform_instance_4 *cf_arg_25;
348 1 : struct ldv_struct_platform_instance_4 *cf_arg_26;
349 1 : struct ldv_struct_platform_instance_4 *cf_arg_27;
350 1 : struct ldv_struct_platform_instance_4 *cf_arg_28;
351 1 : struct ldv_struct_platform_instance_4 *cf_arg_29;
352 1 : struct ldv_struct_platform_instance_4 *cf_arg_30;
353 1 : struct ldv_struct_platform_instance_4 *cf_arg_31;
354 1 : struct ldv_struct_platform_instance_4 *cf_arg_32;
355 1 : struct ldv_struct_platform_instance_4 *cf_arg_33;
356 1 : struct ldv_struct_platform_instance_4 *cf_arg_34;
357 1 : struct ldv_struct_platform_instance_4 *cf_arg_35;
358 1 : struct ldv_struct_platform_instance_4 *cf_arg_36;
359 1 : struct ldv_struct_platform_instance_4 *cf_arg_37;
360 1 : struct ldv_struct_platform_instance_4 *cf_arg_38;
361 1 : struct ldv_struct_platform_instance_4 *cf_arg_39;
362 1 : struct ldv_struct_platform_instance_4 *cf_arg_40;
363 1 : struct ldv_struct_platform_instance_4 *cf_arg_41;
364 1 : struct ldv_struct_platform_instance_4 *cf_arg_42;
365 4 : cf_arg_11 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
366 3 : ldv_random_containerless_scenario_11(cf_arg_11);
367 4 : cf_arg_12 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
368 3 : ldv_random_containerless_scenario_12(cf_arg_12);
369 4 : cf_arg_13 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
370 3 : ldv_random_containerless_scenario_13(cf_arg_13);
371 4 : cf_arg_14 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
372 3 : ldv_random_containerless_scenario_14(cf_arg_14);
373 4 : cf_arg_15 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
374 3 : ldv_random_containerless_scenario_15(cf_arg_15);
375 4 : cf_arg_16 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
376 3 : ldv_random_containerless_scenario_16(cf_arg_16);
377 4 : cf_arg_17 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
378 3 : ldv_random_containerless_scenario_17(cf_arg_17);
379 4 : cf_arg_18 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
380 3 : ldv_random_containerless_scenario_18(cf_arg_18);
381 4 : cf_arg_19 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
382 3 : ldv_random_containerless_scenario_19(cf_arg_19);
383 4 : cf_arg_20 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
384 3 : ldv_random_containerless_scenario_20(cf_arg_20);
385 4 : cf_arg_21 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
386 3 : ldv_random_containerless_scenario_21(cf_arg_21);
387 4 : cf_arg_22 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
388 3 : ldv_random_containerless_scenario_22(cf_arg_22);
389 4 : cf_arg_23 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
390 3 : ldv_random_containerless_scenario_23(cf_arg_23);
391 4 : cf_arg_24 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
392 3 : ldv_random_containerless_scenario_24(cf_arg_24);
393 4 : cf_arg_25 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
394 3 : ldv_random_containerless_scenario_25(cf_arg_25);
395 4 : cf_arg_26 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
396 3 : ldv_random_containerless_scenario_26(cf_arg_26);
397 4 : cf_arg_27 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
398 2 : ldv_random_containerless_scenario_27(cf_arg_27);
399 3 : cf_arg_28 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
400 2 : ldv_random_containerless_scenario_28(cf_arg_28);
401 3 : cf_arg_29 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
402 2 : ldv_random_containerless_scenario_29(cf_arg_29);
403 3 : cf_arg_30 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
404 2 : ldv_random_containerless_scenario_30(cf_arg_30);
405 3 : cf_arg_31 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
406 2 : ldv_random_containerless_scenario_31(cf_arg_31);
407 3 : cf_arg_32 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
408 2 : ldv_random_containerless_scenario_32(cf_arg_32);
409 3 : cf_arg_33 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
410 2 : ldv_random_containerless_scenario_33(cf_arg_33);
411 3 : cf_arg_34 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
412 2 : ldv_random_containerless_scenario_34(cf_arg_34);
413 3 : cf_arg_35 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
414 2 : ldv_random_containerless_scenario_35(cf_arg_35);
415 3 : cf_arg_36 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
416 2 : ldv_random_containerless_scenario_36(cf_arg_36);
417 3 : cf_arg_37 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
418 2 : ldv_random_containerless_scenario_37(cf_arg_37);
419 3 : cf_arg_38 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
420 2 : ldv_random_containerless_scenario_38(cf_arg_38);
421 3 : cf_arg_39 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
422 2 : ldv_random_containerless_scenario_39(cf_arg_39);
423 3 : cf_arg_40 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
424 2 : ldv_random_containerless_scenario_40(cf_arg_40);
425 3 : cf_arg_41 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
426 2 : ldv_random_containerless_scenario_41(cf_arg_41);
427 3 : cf_arg_42 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
428 2 : ldv_random_containerless_scenario_42(cf_arg_42);
429 1 : return;
430 : }
431 :
432 : /* AUX_FUNC ldv_dispatch_default_register_8_46_10 */
433 : void ldv_dispatch_default_register_8_46_10() {
434 : struct ldv_struct_platform_instance_4 *cf_arg_43;
435 1 : struct ldv_struct_platform_instance_4 *cf_arg_44;
436 1 : struct ldv_struct_platform_instance_4 *cf_arg_45;
437 4 : cf_arg_43 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
438 3 : ldv_random_containerless_scenario_43(cf_arg_43);
439 4 : cf_arg_44 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
440 3 : ldv_random_containerless_scenario_44(cf_arg_44);
441 3 : cf_arg_45 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
442 2 : ldv_random_containerless_scenario_45(cf_arg_45);
443 1 : return;
444 : }
445 :
446 : /* AUX_FUNC ldv_dispatch_insmod_deregister_48_2 */
447 : void ldv_dispatch_insmod_deregister_48_2() {
448 : struct ldv_struct_platform_instance_4 *cf_arg_46;
449 : /* Skip thread join call */
450 1 : return;
451 : }
452 :
453 : /* AUX_FUNC ldv_dispatch_insmod_register_48_3 */
454 : void ldv_dispatch_insmod_register_48_3() {
455 : struct ldv_struct_platform_instance_4 *cf_arg_46;
456 4 : cf_arg_46 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
457 5 : ldv_insmod_46(cf_arg_46);
458 1 : return;
459 : }
460 :
461 : /* AUX_FUNC ldv_dispatch_pm_deregister_4_5 */
462 : void ldv_dispatch_pm_deregister_4_5() {
463 : struct ldv_struct_platform_instance_4 *cf_arg_3;
464 : /* Skip thread join call */
465 1 : return;
466 : }
467 :
468 : /* AUX_FUNC ldv_dispatch_pm_register_4_6 */
469 : void ldv_dispatch_pm_register_4_6() {
470 : struct ldv_struct_platform_instance_4 *cf_arg_3;
471 4 : cf_arg_3 = ldv_xmalloc(sizeof(struct ldv_struct_platform_instance_4));
472 3 : ldv_pm_ops_scenario_3(cf_arg_3);
473 1 : return;
474 : }
475 :
476 : /* AUX_FUNC ldv_insmod_46 */
477 : void ldv_insmod_46(void *arg0) {
478 : /* LDV {"thread": 46, "type": "CONTROL_FUNCTION_BEGIN", "comment": "Control function 'insmod(artificial)'", "function": "ldv_insmod_46"} */
479 1 : /* LDV {"type": "CONTROL_FUNCTION_INIT_BEGIN", "comment": "Declare auxiliary variables."} */
480 1 : void (*ldv_46_exit_scsi_default)(void);
481 1 : int (*ldv_46_init_scsi_default)(void);
482 1 : int ldv_46_ret_default;
483 1 : int (*ldv_46_scsi_complete_async_scans_default)(void);
484 1 : /* LDV {"type": "CONTROL_FUNCTION_INIT_END", "comment": "Declare auxiliary variables."} */
485 1 : /* LDV {"action": "INSMOD_REGISTER", "type": "RECEIVE_BEGIN", "comment": "Trigger module initialization."} */
486 2 : ldv_free(arg0);
487 : /* LDV {"action": "INSMOD_REGISTER", "type": "RECEIVE_END"} */
488 :
489 : /* LDV {"action": "INIT_SCSI", "type": "CALL_BEGIN", "callback": true, "comment": "Initialize the module after insmod with 'init_scsi' function. Invoke callback init_scsi from ARTIFICIAL."} */
490 : /* LDV {"type": "CALLBACK", "call": "ldv_46_ret_default = (init_scsi)();", "comment": "init_scsi"} */
491 2 : ldv_46_ret_default = ldv_insmod_init_scsi_46_22(ldv_46_init_scsi_default);
492 : /* Callback post-call */
493 2 : ldv_46_ret_default = ldv_post_init(ldv_46_ret_default);
494 : /* LDV {"action": "INIT_SCSI", "type": "CALL_END"} */
495 :
496 4 : if (ldv_undef_int()) {
497 : /* LDV {"action": "INIT_FAILED", "type": "CONDITION_BEGIN", "comment": "Failed to initialize the module."} */
498 2 : ldv_assume(ldv_46_ret_default != 0);
499 : /* LDV {"action": "INIT_FAILED", "type": "CONDITION_END"} */
500 :
501 : /* LDV {"action": "INSMOD_DEREGISTER", "type": "RECEIVE_BEGIN", "comment": "Trigger module exit."} */
502 : /* Skip a non-replicative signal receiving */
503 : /* LDV {"action": "INSMOD_DEREGISTER", "type": "RECEIVE_END"} */
504 :
505 : /* Exit function at a terminal state */
506 1 : return;
507 : }
508 : else {
509 : /* LDV {"action": "INIT_SUCCESS", "type": "CONDITION_BEGIN", "comment": "Module has been initialized."} */
510 2 : ldv_assume(ldv_46_ret_default == 0);
511 : /* LDV {"action": "INIT_SUCCESS", "type": "CONDITION_END"} */
512 :
513 : /* LDV {"action": "SCSI_COMPLETE_ASYNC_SCANS", "type": "CALL_BEGIN", "callback": true, "comment": "Initialize the module after insmod with 'scsi_complete_async_scans' function. Invoke callback scsi_complete_async_scans from ARTIFICIAL."} */
514 : /* LDV {"type": "CALLBACK", "call": "ldv_46_ret_default = (scsi_complete_async_scans)();", "comment": "scsi_complete_async_scans"} */
515 2 : ldv_46_ret_default = ldv_insmod_scsi_complete_async_scans_46_18(ldv_46_scsi_complete_async_scans_default);
516 : /* Callback post-call */
517 2 : ldv_46_ret_default = ldv_post_init(ldv_46_ret_default);
518 : /* LDV {"action": "SCSI_COMPLETE_ASYNC_SCANS", "type": "CALL_END"} */
519 :
520 4 : if (ldv_undef_int()) {
521 : /* LDV {"action": "INIT_FAILED", "type": "CONDITION_BEGIN", "comment": "Failed to initialize the module."} */
522 2 : ldv_assume(ldv_46_ret_default != 0);
523 : /* LDV {"action": "INIT_FAILED", "type": "CONDITION_END"} */
524 :
525 : /* LDV {"action": "INSMOD_DEREGISTER", "type": "RECEIVE_BEGIN", "comment": "Trigger module exit."} */
526 : /* Skip a non-replicative signal receiving */
527 : /* LDV {"action": "INSMOD_DEREGISTER", "type": "RECEIVE_END"} */
528 :
529 : /* Exit function at a terminal state */
530 1 : return;
531 : }
532 : else {
533 : /* LDV {"action": "INIT_SUCCESS", "type": "CONDITION_BEGIN", "comment": "Module has been initialized."} */
534 2 : ldv_assume(ldv_46_ret_default == 0);
535 : /* LDV {"action": "INIT_SUCCESS", "type": "CONDITION_END"} */
536 :
537 4 : if (ldv_undef_int()) {
538 : /* LDV {"action": "DEFAULT_REGISTER_2", "type": "DISPATCH_BEGIN", "comment": "Register 'FILE_OPERATIONS' callbacks with unknown registration function."} */
539 2 : ldv_dispatch_default_register_2_46_14();
540 : /* LDV {"action": "DEFAULT_REGISTER_2", "type": "DISPATCH_END"} */
541 :
542 : /* LDV {"action": "DEFAULT_REGISTER_4", "type": "DISPATCH_BEGIN", "comment": "Register 'PM' callbacks with unknown registration function."} */
543 2 : ldv_dispatch_default_register_4_46_13();
544 : /* LDV {"action": "DEFAULT_REGISTER_4", "type": "DISPATCH_END"} */
545 :
546 : /* LDV {"action": "DEFAULT_REGISTER_5", "type": "DISPATCH_BEGIN", "comment": "Register 'RTC' callbacks with unknown registration function."} */
547 2 : ldv_dispatch_default_register_5_46_12();
548 : /* LDV {"action": "DEFAULT_REGISTER_5", "type": "DISPATCH_END"} */
549 :
550 : /* LDV {"action": "DEFAULT_REGISTER_7", "type": "DISPATCH_BEGIN", "comment": "Register 'STRUCT_DEVICE_ATTRIBUTE' callbacks with unknown registration function."} */
551 2 : ldv_dispatch_default_register_7_46_11();
552 : /* LDV {"action": "DEFAULT_REGISTER_7", "type": "DISPATCH_END"} */
553 :
554 : /* LDV {"action": "DEFAULT_REGISTER_8", "type": "DISPATCH_BEGIN", "comment": "Register 'STRUCT_KERNEL_PARAM' callbacks with unknown registration function."} */
555 2 : ldv_dispatch_default_register_8_46_10();
556 : /* LDV {"action": "DEFAULT_REGISTER_8", "type": "DISPATCH_END"} */
557 :
558 : /* LDV {"action": "DEFAULT_DEREGISTER_8", "type": "DISPATCH_BEGIN", "comment": "Deregister 'STRUCT_KERNEL_PARAM' callbacks with unknown deregistration function."} */
559 2 : ldv_dispatch_default_deregister_8_46_9();
560 : /* LDV {"action": "DEFAULT_DEREGISTER_8", "type": "DISPATCH_END"} */
561 :
562 : /* LDV {"action": "DEFAULT_DEREGISTER_7", "type": "DISPATCH_BEGIN", "comment": "Deregister 'STRUCT_DEVICE_ATTRIBUTE' callbacks with unknown deregistration function."} */
563 2 : ldv_dispatch_default_deregister_7_46_8();
564 : /* LDV {"action": "DEFAULT_DEREGISTER_7", "type": "DISPATCH_END"} */
565 :
566 : /* LDV {"action": "DEFAULT_DEREGISTER_6", "type": "DISPATCH_BEGIN", "comment": "Deregister 'SEQ_OPERATIONS' callbacks with unknown deregistration function."} */
567 2 : ldv_dispatch_default_deregister_6_46_7();
568 : /* LDV {"action": "DEFAULT_DEREGISTER_6", "type": "DISPATCH_END"} */
569 :
570 : /* LDV {"action": "DEFAULT_DEREGISTER_5", "type": "DISPATCH_BEGIN", "comment": "Deregister 'RTC' callbacks with unknown deregistration function."} */
571 2 : ldv_dispatch_default_deregister_5_46_6();
572 : /* LDV {"action": "DEFAULT_DEREGISTER_5", "type": "DISPATCH_END"} */
573 :
574 : /* LDV {"action": "DEFAULT_DEREGISTER_4", "type": "DISPATCH_BEGIN", "comment": "Deregister 'PM' callbacks with unknown deregistration function."} */
575 2 : ldv_dispatch_default_deregister_4_46_5();
576 : /* LDV {"action": "DEFAULT_DEREGISTER_4", "type": "DISPATCH_END"} */
577 :
578 : /* LDV {"action": "DEFAULT_DEREGISTER_2", "type": "DISPATCH_BEGIN", "comment": "Deregister 'FILE_OPERATIONS' callbacks with unknown deregistration function."} */
579 2 : ldv_dispatch_default_deregister_2_46_4();
580 : /* LDV {"action": "DEFAULT_DEREGISTER_2", "type": "DISPATCH_END"} */
581 :
582 : }
583 : else {
584 : /* LDV {"action": "NONE", "type": "CONDITION_BEGIN", "comment": "Skip default callbacks registrations and deregistrations."} */
585 : /* LDV {"action": "NONE", "type": "CONDITION_END"} */
586 :
587 : }
588 : /* LDV {"action": "EXIT_SCSI", "type": "CALL_BEGIN", "callback": true, "comment": "Exit the module before its unloading with 'exit_scsi' function. Invoke callback exit_scsi from ARTIFICIAL."} */
589 : /* LDV {"type": "CALLBACK", "call": "(exit_scsi)();", "comment": "exit_scsi"} */
590 4 : ldv_insmod_exit_scsi_46_2(ldv_46_exit_scsi_default);
591 : /* LDV {"action": "EXIT_SCSI", "type": "CALL_END"} */
592 :
593 : /* LDV {"action": "INSMOD_DEREGISTER", "type": "RECEIVE_BEGIN", "comment": "Trigger module exit."} */
594 : /* Skip a non-replicative signal receiving */
595 : /* LDV {"action": "INSMOD_DEREGISTER", "type": "RECEIVE_END"} */
596 :
597 : /* Exit function at a terminal state */
598 1 : return;
599 : }
600 : }
601 : /* End of the process */
602 : return;
603 : /* LDV {"comment": "End of control function based on process 'insmod(artificial)'", "type": "CONTROL_FUNCTION_END", "function": "ldv_insmod_46"} */
604 : }
605 :
606 : /* AUX_FUNC_CALLBACK ldv_insmod_exit_scsi_46_2 */
607 : void ldv_insmod_exit_scsi_46_2(void (*arg0)(void)) {
608 4 : (exit_scsi)();
609 2 : }
610 :
611 : /* AUX_FUNC_CALLBACK ldv_insmod_init_scsi_46_22 */
612 : int ldv_insmod_init_scsi_46_22(int (*arg0)(void)) {
613 5 : return (init_scsi)();
614 1 : }
615 :
616 : /* AUX_FUNC ldv_main_48 */
617 : void ldv_main_48(void *arg0) {
618 : /* LDV {"thread": 48, "type": "CONTROL_FUNCTION_BEGIN", "comment": "Control function 'main(main)'", "function": "ldv_main_48"} */
619 : /* LDV {"type": "CONTROL_FUNCTION_INIT_BEGIN", "comment": "Declare auxiliary variables."} */
620 : /* LDV {"type": "CONTROL_FUNCTION_INIT_END", "comment": "Declare auxiliary variables."} */
621 : /* LDV {"action": "INIT", "type": "CONDITION_BEGIN", "comment": "Initialize rule models."} */
622 1 : ldv_initialize();
623 : /* LDV {"action": "INIT", "type": "CONDITION_END"} */
624 :
625 : /* LDV {"action": "INSMOD_REGISTER", "type": "DISPATCH_BEGIN", "comment": "Start environment model scenarios."} */
626 2 : ldv_dispatch_insmod_register_48_3();
627 : /* LDV {"action": "INSMOD_REGISTER", "type": "DISPATCH_END"} */
628 :
629 : /* LDV {"action": "INSMOD_DEREGISTER", "type": "DISPATCH_BEGIN", "comment": "Stop environment model scenarios."} */
630 2 : ldv_dispatch_insmod_deregister_48_2();
631 : /* LDV {"action": "INSMOD_DEREGISTER", "type": "DISPATCH_END"} */
632 :
633 : /* LDV {"action": "FINAL", "type": "CONDITION_BEGIN", "comment": "Check rule model state at the exit."} */
634 1 : ldv_check_final_state();
635 1 : ldv_stop();
636 : /* LDV {"action": "FINAL", "type": "CONDITION_END"} */
637 :
638 : /* Exit function at a terminal state */
639 0 : return;
640 : /* End of the process */
641 : return;
642 : /* LDV {"comment": "End of control function based on process 'main(main)'", "type": "CONTROL_FUNCTION_END", "function": "ldv_main_48"} */
643 : }
644 :
645 : /* AUX_FUNC ldv_platform_instance_4 */
646 : void ldv_platform_instance_4(void *arg0) {
647 : /* LDV {"thread": 4, "type": "CONTROL_FUNCTION_BEGIN", "comment": "Control function 'platform_instance(pm)'", "function": "ldv_platform_instance_4"} */
648 1 : /* LDV {"type": "CONTROL_FUNCTION_INIT_BEGIN", "comment": "Declare auxiliary variables."} */
649 1 : struct platform_driver *ldv_4_container_platform_driver;
650 1 : struct platform_device *ldv_4_ldv_param_15_0_default;
651 1 : struct platform_device *ldv_4_ldv_param_3_0_default;
652 1 : int ldv_4_probed_default;
653 1 : /* LDV {"type": "CONTROL_FUNCTION_INIT_END", "comment": "Declare auxiliary variables."} */
654 1 : /* Initialize automaton variables */
655 2 : ldv_4_probed_default = 1;
656 1 : /* LDV {"action": "DEFAULT_REGISTER_4", "type": "RECEIVE_BEGIN", "comment": "Register a driver callbacks for platform-level device."} */
657 3 : ldv_free(arg0);
658 : /* LDV {"action": "DEFAULT_REGISTER_4", "type": "RECEIVE_END"} */
659 :
660 : /* LDV {"action": "DEFAULT_ALLOC_4", "type": "CONDITION_BEGIN", "comment": "Allocate memory after default registration."} */
661 3 : ldv_4_container_platform_driver = ldv_xmalloc_unknown_size(0);
662 : /* LDV {"action": "DEFAULT_ALLOC_4", "type": "CONDITION_END"} */
663 :
664 : /* LDV {"action": "INIT", "type": "CONDITION_BEGIN", "comment": "Alloc memory for 'platform_device' structure."} */
665 : /* LDV {"action": "INIT", "type": "CONDITION_END"} */
666 :
667 : /* LDV {"action": "MAIN", "type": "SUBPROCESS_BEGIN", "comment": "Check that device is truely in the system and begin callback invocations."} */
668 : /* LDV {"action": "MAIN", "type": "SUBPROCESS_END"} */
669 :
670 : /* Jump to a subprocess 'main' initial state */
671 1 : goto ldv_main_4;
672 : /* End of the process */
673 : return;
674 1 :
675 : /* Sbprocess main */
676 : ldv_main_4:
677 : /* LDV {"action": null, "type": "ARTIFICIAL", "comment": "Artificial state in scenario"} */
678 :
679 4 : if (ldv_undef_int()) {
680 : /* LDV {"action": "PRE_CALL_15", "type": "CONDITION_BEGIN", "comment": "Allocate memory for adhoc callback parameters."} */
681 3 : ldv_4_ldv_param_15_0_default = ldv_xmalloc_unknown_size(0);
682 : /* LDV {"action": "PRE_CALL_15", "type": "CONDITION_END"} */
683 :
684 : /* LDV {"action": "PROBE", "type": "CALL_BEGIN", "callback": true, "comment": "Check that the device in the system and do driver initializations. Invoke callback probe from PM."} */
685 : /* Callback pre-call */
686 1 : ldv_pre_probe();
687 3 : if (ldv_4_container_platform_driver->probe) {
688 : /* LDV {"type": "CALLBACK", "call": "ldv_4_probed_default = (ldv_4_container_platform_driver->probe)(ldv_4_ldv_param_15_0_default);", "comment": "probe"} */
689 2 : ldv_4_probed_default = ldv_platform_instance_probe_4_15(ldv_4_container_platform_driver->probe, ldv_4_ldv_param_15_0_default);
690 : }
691 : /* Callback post-call */
692 4 : ldv_4_probed_default = ldv_post_probe(ldv_4_probed_default);
693 : /* LDV {"action": "PROBE", "type": "CALL_END"} */
694 :
695 : /* LDV {"action": "POST_CALL_15", "type": "CONDITION_BEGIN", "comment": "Free memory of adhoc callback parameters."} */
696 2 : ldv_free(ldv_4_ldv_param_15_0_default);
697 : /* LDV {"action": "POST_CALL_15", "type": "CONDITION_END"} */
698 :
699 4 : if (ldv_undef_int()) {
700 : /* LDV {"action": "POSITIVE_PROBE", "type": "CONDITION_BEGIN", "comment": "Platform device is probed successfully now."} */
701 2 : ldv_assume(ldv_4_probed_default == 0);
702 : /* LDV {"action": "POSITIVE_PROBE", "type": "CONDITION_END"} */
703 :
704 : /* LDV {"action": "CALL", "type": "SUBPROCESS_BEGIN", "comment": "Driver is probed. Call power management callbacks or release the device."} */
705 : /* LDV {"action": "CALL", "type": "SUBPROCESS_END"} */
706 :
707 : /* Jump to a subprocess 'call' initial state */
708 1 : goto ldv_call_4;
709 : }
710 : else {
711 : /* LDV {"action": "NEGATIVE_PROBE", "type": "CONDITION_BEGIN", "comment": "Failed to probe the device."} */
712 2 : ldv_assume(ldv_4_probed_default != 0);
713 : /* LDV {"action": "NEGATIVE_PROBE", "type": "CONDITION_END"} */
714 :
715 : /* LDV {"action": "MAIN", "type": "SUBPROCESS_BEGIN", "comment": "Check that device is truely in the system and begin callback invocations."} */
716 : /* LDV {"action": "MAIN", "type": "SUBPROCESS_END"} */
717 :
718 : /* Jump to a subprocess 'main' initial state */
719 1 : goto ldv_main_4;
720 : }
721 : }
722 : else {
723 : /* LDV {"action": "FREE", "type": "CONDITION_BEGIN", "comment": "Free memory for 'platform_device' structure."} */
724 : /* LDV {"action": "FREE", "type": "CONDITION_END"} */
725 :
726 : /* LDV {"action": "DEFAULT_FREE_4", "type": "CONDITION_BEGIN", "comment": "Free memory before default deregistration."} */
727 2 : ldv_free(ldv_4_container_platform_driver);
728 : /* LDV {"action": "DEFAULT_FREE_4", "type": "CONDITION_END"} */
729 :
730 : /* LDV {"action": "DEFAULT_DEREGISTER_4", "type": "RECEIVE_BEGIN", "comment": "Finish PM callbacks invocations scenario."} */
731 : /* Skip a non-replicative signal receiving */
732 : /* LDV {"action": "DEFAULT_DEREGISTER_4", "type": "RECEIVE_END"} */
733 :
734 : /* Exit function at a terminal state */
735 1 : return;
736 : }
737 : /* End of the subprocess 'main' */
738 : return;
739 1 :
740 : /* Sbprocess call */
741 : ldv_call_4:
742 : /* LDV {"action": null, "type": "ARTIFICIAL", "comment": "Artificial state in scenario"} */
743 :
744 2 : switch (ldv_undef_int()) {
745 3 : case 1: {
746 : /* LDV {"action": "PRE_CALL_3", "type": "CONDITION_BEGIN", "comment": "Allocate memory for adhoc callback parameters."} */
747 3 : ldv_4_ldv_param_3_0_default = ldv_xmalloc_unknown_size(0);
748 : /* LDV {"action": "PRE_CALL_3", "type": "CONDITION_END"} */
749 :
750 : /* LDV {"action": "RELEASE", "type": "CALL_BEGIN", "callback": true, "comment": "Remove device from the system. Invoke callback release from PM."} */
751 3 : if (ldv_4_container_platform_driver->remove) {
752 : /* LDV {"type": "CALLBACK", "call": "(ldv_4_container_platform_driver->remove)(ldv_4_ldv_param_3_0_default);", "comment": "release"} */
753 2 : ldv_platform_instance_release_4_3(ldv_4_container_platform_driver->remove, ldv_4_ldv_param_3_0_default);
754 : }
755 : /* LDV {"action": "RELEASE", "type": "CALL_END"} */
756 :
757 : /* LDV {"action": "POST_CALL_3", "type": "CONDITION_BEGIN", "comment": "Free memory of adhoc callback parameters."} */
758 4 : ldv_free(ldv_4_ldv_param_3_0_default);
759 : /* LDV {"action": "POST_CALL_3", "type": "CONDITION_END"} */
760 :
761 : /* LDV {"action": "AFTER_RELEASE", "type": "CONDITION_BEGIN", "comment": "Platform device is released now."} */
762 1 : ldv_4_probed_default = 1;
763 : /* LDV {"action": "AFTER_RELEASE", "type": "CONDITION_END"} */
764 :
765 : /* LDV {"action": "MAIN", "type": "SUBPROCESS_BEGIN", "comment": "Check that device is truely in the system and begin callback invocations."} */
766 : /* LDV {"action": "MAIN", "type": "SUBPROCESS_END"} */
767 :
768 : /* Jump to a subprocess 'main' initial state */
769 1 : goto ldv_main_4;
770 1 : break;
771 : }
772 3 : case 2: {
773 : /* LDV {"action": "CALLBACK", "type": "CALL_BEGIN", "comment": "Call callback 'callback' of a process 'platform_instance' of an interface category 'pm'"} */
774 : /* Skip callback without implementations */
775 : /* LDV {"action": "CALLBACK", "type": "CALL_END"} */
776 :
777 : /* LDV {"action": "CALL", "type": "SUBPROCESS_BEGIN", "comment": "Driver is probed. Call power management callbacks or release the device."} */
778 : /* LDV {"action": "CALL", "type": "SUBPROCESS_END"} */
779 :
780 : /* Jump to a subprocess 'call' initial state */
781 1 : goto ldv_call_4;
782 1 : break;
783 : }
784 3 : case 3: {
785 : /* LDV {"action": "PM_REGISTER", "type": "DISPATCH_BEGIN", "comment": "Proceed to a power management scenario."} */
786 2 : ldv_dispatch_pm_register_4_6();
787 : /* LDV {"action": "PM_REGISTER", "type": "DISPATCH_END"} */
788 :
789 : /* LDV {"action": "PM_DEREGISTER", "type": "DISPATCH_BEGIN", "comment": "Finish the power management scenario."} */
790 2 : ldv_dispatch_pm_deregister_4_5();
791 : /* LDV {"action": "PM_DEREGISTER", "type": "DISPATCH_END"} */
792 :
793 : /* LDV {"action": "CALL", "type": "SUBPROCESS_BEGIN", "comment": "Driver is probed. Call power management callbacks or release the device."} */
794 : /* LDV {"action": "CALL", "type": "SUBPROCESS_END"} */
795 :
796 : /* Jump to a subprocess 'call' initial state */
797 1 : goto ldv_call_4;
798 : /* Jump to a subprocess 'call' initial state */
799 : goto ldv_call_4;
800 1 : break;
801 : }
802 2 : default: ldv_stop();
803 1 : }
804 0 : /* End of the subprocess 'call' */
805 0 : return;
806 : /* LDV {"comment": "End of control function based on process 'platform_instance(pm)'", "type": "CONTROL_FUNCTION_END", "function": "ldv_platform_instance_4"} */
807 : }
808 :
809 : /* AUX_FUNC_CALLBACK ldv_platform_instance_probe_4_15 */
810 : int ldv_platform_instance_probe_4_15(int (*arg0)(struct platform_device *), struct platform_device *arg1) {
811 4 : return (*arg0)(arg1);
812 1 : }
813 :
814 : /* AUX_FUNC_CALLBACK ldv_platform_instance_release_4_3 */
815 : void ldv_platform_instance_release_4_3(int (*arg0)(struct platform_device *), struct platform_device *arg1) {
816 3 : (*arg0)(arg1);
817 1 : }
818 :
819 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_freeze_3_13 */
820 : void ldv_pm_ops_scenario_freeze_3_13(int (*arg0)(struct device *), struct device *arg1) {
821 4 : (*arg0)(arg1);
822 1 : }
823 :
824 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_freeze_noirq_3_11 */
825 : void ldv_pm_ops_scenario_freeze_noirq_3_11(int (*arg0)(struct device *), struct device *arg1) {
826 4 : (*arg0)(arg1);
827 1 : }
828 :
829 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_poweroff_3_8 */
830 : void ldv_pm_ops_scenario_poweroff_3_8(int (*arg0)(struct device *), struct device *arg1) {
831 4 : (*arg0)(arg1);
832 1 : }
833 :
834 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_poweroff_noirq_3_7 */
835 : void ldv_pm_ops_scenario_poweroff_noirq_3_7(int (*arg0)(struct device *), struct device *arg1) {
836 4 : (*arg0)(arg1);
837 1 : }
838 :
839 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_prepare_3_19 */
840 : void ldv_pm_ops_scenario_prepare_3_19(int (*arg0)(struct device *), struct device *arg1) {
841 4 : (*arg0)(arg1);
842 1 : }
843 :
844 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_restore_3_4 */
845 : void ldv_pm_ops_scenario_restore_3_4(int (*arg0)(struct device *), struct device *arg1) {
846 12 : (*arg0)(arg1);
847 3 : }
848 :
849 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_restore_noirq_3_6 */
850 : void ldv_pm_ops_scenario_restore_noirq_3_6(int (*arg0)(struct device *), struct device *arg1) {
851 8 : (*arg0)(arg1);
852 2 : }
853 :
854 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_resume_noirq_3_16 */
855 : void ldv_pm_ops_scenario_resume_noirq_3_16(int (*arg0)(struct device *), struct device *arg1) {
856 8 : (*arg0)(arg1);
857 2 : }
858 :
859 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_runtime_idle_3_24 */
860 : void ldv_pm_ops_scenario_runtime_idle_3_24(int (*arg0)(struct device *), struct device *arg1) {
861 4 : (*arg0)(arg1);
862 1 : }
863 :
864 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_runtime_resume_3_21 */
865 : void ldv_pm_ops_scenario_runtime_resume_3_21(int (*arg0)(struct device *), struct device *arg1) {
866 8 : (*arg0)(arg1);
867 2 : }
868 :
869 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_runtime_suspend_3_22 */
870 : void ldv_pm_ops_scenario_runtime_suspend_3_22(int (*arg0)(struct device *), struct device *arg1) {
871 4 : (*arg0)(arg1);
872 1 : }
873 :
874 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_suspend_3_18 */
875 : void ldv_pm_ops_scenario_suspend_3_18(int (*arg0)(struct device *), struct device *arg1) {
876 4 : (*arg0)(arg1);
877 1 : }
878 :
879 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_suspend_noirq_3_17 */
880 : void ldv_pm_ops_scenario_suspend_noirq_3_17(int (*arg0)(struct device *), struct device *arg1) {
881 4 : (*arg0)(arg1);
882 1 : }
883 :
884 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_thaw_3_9 */
885 : void ldv_pm_ops_scenario_thaw_3_9(int (*arg0)(struct device *), struct device *arg1) {
886 12 : (*arg0)(arg1);
887 3 : }
888 :
889 : /* AUX_FUNC_CALLBACK ldv_pm_ops_scenario_thaw_noirq_3_10 */
890 : void ldv_pm_ops_scenario_thaw_noirq_3_10(int (*arg0)(struct device *), struct device *arg1) {
891 8 : (*arg0)(arg1);
892 2 : }
893 :
894 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_11_10 */
895 : void ldv_random_containerless_scenario_callback_11_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
896 11 : (*arg0)(arg1, arg2, arg3, arg4);
897 1 : }
898 :
899 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_12_10 */
900 : void ldv_random_containerless_scenario_callback_12_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
901 11 : (*arg0)(arg1, arg2, arg3, arg4);
902 1 : }
903 :
904 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_13_10 */
905 : void ldv_random_containerless_scenario_callback_13_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
906 11 : (*arg0)(arg1, arg2, arg3, arg4);
907 1 : }
908 :
909 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_14_4 */
910 : void ldv_random_containerless_scenario_callback_14_4(ssize_t (*arg0)(struct device *, struct device_attribute *, char *), struct device *arg1, struct device_attribute *arg2, char *arg3) {
911 30 : (*arg0)(arg1, arg2, arg3);
912 1 : }
913 :
914 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_15_10 */
915 : void ldv_random_containerless_scenario_callback_15_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
916 11 : (*arg0)(arg1, arg2, arg3, arg4);
917 1 : }
918 :
919 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_17_10 */
920 : void ldv_random_containerless_scenario_callback_17_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
921 11 : (*arg0)(arg1, arg2, arg3, arg4);
922 1 : }
923 :
924 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_19_10 */
925 : void ldv_random_containerless_scenario_callback_19_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
926 11 : (*arg0)(arg1, arg2, arg3, arg4);
927 1 : }
928 :
929 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_20_10 */
930 : void ldv_random_containerless_scenario_callback_20_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
931 11 : (*arg0)(arg1, arg2, arg3, arg4);
932 1 : }
933 :
934 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_21_10 */
935 : void ldv_random_containerless_scenario_callback_21_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
936 11 : (*arg0)(arg1, arg2, arg3, arg4);
937 1 : }
938 :
939 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_22_10 */
940 : void ldv_random_containerless_scenario_callback_22_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
941 11 : (*arg0)(arg1, arg2, arg3, arg4);
942 1 : }
943 :
944 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_23_10 */
945 : void ldv_random_containerless_scenario_callback_23_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
946 11 : (*arg0)(arg1, arg2, arg3, arg4);
947 1 : }
948 :
949 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_24_10 */
950 : void ldv_random_containerless_scenario_callback_24_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
951 11 : (*arg0)(arg1, arg2, arg3, arg4);
952 1 : }
953 :
954 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_25_10 */
955 : void ldv_random_containerless_scenario_callback_25_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
956 11 : (*arg0)(arg1, arg2, arg3, arg4);
957 1 : }
958 :
959 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_26_10 */
960 : void ldv_random_containerless_scenario_callback_26_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
961 11 : (*arg0)(arg1, arg2, arg3, arg4);
962 1 : }
963 :
964 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_27_10 */
965 : void ldv_random_containerless_scenario_callback_27_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
966 11 : (*arg0)(arg1, arg2, arg3, arg4);
967 1 : }
968 :
969 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_28_4 */
970 : void ldv_random_containerless_scenario_callback_28_4(ssize_t (*arg0)(struct device *, struct device_attribute *, char *), struct device *arg1, struct device_attribute *arg2, char *arg3) {
971 30 : (*arg0)(arg1, arg2, arg3);
972 1 : }
973 :
974 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_29_10 */
975 : void ldv_random_containerless_scenario_callback_29_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
976 11 : (*arg0)(arg1, arg2, arg3, arg4);
977 1 : }
978 :
979 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_30_4 */
980 : void ldv_random_containerless_scenario_callback_30_4(ssize_t (*arg0)(struct device *, struct device_attribute *, char *), struct device *arg1, struct device_attribute *arg2, char *arg3) {
981 30 : (*arg0)(arg1, arg2, arg3);
982 1 : }
983 :
984 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_31_10 */
985 : void ldv_random_containerless_scenario_callback_31_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
986 11 : (*arg0)(arg1, arg2, arg3, arg4);
987 1 : }
988 :
989 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_32_10 */
990 : void ldv_random_containerless_scenario_callback_32_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
991 11 : (*arg0)(arg1, arg2, arg3, arg4);
992 1 : }
993 :
994 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_34_10 */
995 : void ldv_random_containerless_scenario_callback_34_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
996 11 : (*arg0)(arg1, arg2, arg3, arg4);
997 1 : }
998 :
999 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_36_10 */
1000 : void ldv_random_containerless_scenario_callback_36_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
1001 11 : (*arg0)(arg1, arg2, arg3, arg4);
1002 1 : }
1003 :
1004 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_37_10 */
1005 : void ldv_random_containerless_scenario_callback_37_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
1006 11 : (*arg0)(arg1, arg2, arg3, arg4);
1007 1 : }
1008 :
1009 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_38_10 */
1010 : void ldv_random_containerless_scenario_callback_38_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
1011 11 : (*arg0)(arg1, arg2, arg3, arg4);
1012 1 : }
1013 :
1014 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_39_10 */
1015 : void ldv_random_containerless_scenario_callback_39_10(ssize_t (*arg0)(struct device *, struct device_attribute *, char *, size_t ), struct device *arg1, struct device_attribute *arg2, char *arg3, long unsigned int arg4) {
1016 11 : (*arg0)(arg1, arg2, arg3, arg4);
1017 1 : }
1018 :
1019 : /* AUX_FUNC_CALLBACK ldv_rtc_class_scenario_probe_5_11 */
1020 : int ldv_rtc_class_scenario_probe_5_11(int (*arg0)(struct device *), struct device *arg1) {
1021 5 : return (*arg0)(arg1);
1022 1 : }
1023 :
1024 : /* AUX_FUNC_CALLBACK ldv_rtc_class_scenario_probe_6_11 */
1025 : int ldv_rtc_class_scenario_probe_6_11(int (*arg0)(struct device *), struct device *arg1) {
1026 5 : return (*arg0)(arg1);
1027 1 : }
1028 :
1029 : /* AUX_FUNC_CALLBACK ldv_rtc_class_scenario_probe_7_11 */
1030 : int ldv_rtc_class_scenario_probe_7_11(int (*arg0)(struct device *), struct device *arg1) {
1031 5 : return (*arg0)(arg1);
1032 1 : }
1033 :
1034 : /* AUX_FUNC_CALLBACK ldv_rtc_class_scenario_probe_8_11 */
1035 : int ldv_rtc_class_scenario_probe_8_11(int (*arg0)(struct device *), struct device *arg1) {
1036 5 : return (*arg0)(arg1);
1037 1 : }
1038 :
1039 : /* AUX_FUNC_CALLBACK ldv_rtc_class_scenario_probe_9_11 */
1040 : int ldv_rtc_class_scenario_probe_9_11(int (*arg0)(struct device *), struct device *arg1) {
1041 5 : return (*arg0)(arg1);
1042 1 : }
1043 :
1044 : /* AUX_FUNC main */
1045 : int main() {
1046 1 : ldv_main_48(0);
1047 0 : return 0;
1048 : }
1049 :
1050 :
1051 : /* AUX_FUNC ERR_PTR */
1052 : static inline void *ERR_PTR (long int error)
1053 : {
1054 :
1055 : return ldv_err_ptr(error);
1056 : }
1057 :
1058 : /* AUX_FUNC PTR_ERR */
1059 : static inline long int PTR_ERR (void const *ptr)
1060 : {
1061 :
1062 : return ldv_ptr_err(ptr);
1063 : }
1064 :
1065 : /* AUX_FUNC IS_ERR */
1066 : static inline long int IS_ERR (void const *ptr)
1067 : {
1068 :
1069 : return ldv_is_err(ptr);
1070 : }
1071 :
1072 : /* AUX_FUNC IS_ERR_OR_NULL */
1073 : static inline long int IS_ERR_OR_NULL (void const *ptr)
1074 : {
1075 :
1076 : return ldv_is_err_or_null(ptr);
1077 : }
1078 :
1079 : /* AUX_FUNC kzalloc */
1080 : static inline void *kzalloc (size_t size, gfp_t flags)
1081 : {
1082 :
1083 : return ldv_kzalloc(size, flags);
1084 : }
|