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/fs.h>
31 : #include <linux/pagemap.h>
32 :
33 :
34 : struct ldv_struct_insmod_8 {
35 : int signal_pending;
36 : };
37 :
38 : struct ldv_struct_random_containerless_scenario_5 {
39 : struct file_system_type *arg0;
40 : int signal_pending;
41 : };
42 :
43 : /* EMG Function declarations */
44 : void ldv_random_containerless_scenario_callback_3_11(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 *);
45 : void ldv_random_containerless_scenario_callback_3_4(int (*)(struct file *, struct page *), struct file *, struct page *);
46 : void ldv_random_containerless_scenario_callback_3_8(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 **);
47 :
48 : /* EMG variable declarations */
49 :
50 : /* EMG variable initialization */
51 :
52 : /* EMG function definitions */
53 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_11 */
54 : void ldv_random_containerless_scenario_callback_3_11(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) {
55 1 : ((& simple_write_end))(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
56 1 : }
57 :
58 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_4 */
59 : void ldv_random_containerless_scenario_callback_3_4(int (*arg0)(struct file *, struct page *), struct file *arg1, struct page *arg2) {
60 1 : ((& simple_readpage))(arg1, arg2);
61 1 : }
62 :
63 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_3_8 */
64 : void ldv_random_containerless_scenario_callback_3_8(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) {
65 1 : ((& simple_write_begin))(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
66 1 : }
67 :
68 :
69 : /* AUX_FUNC ERR_PTR */
70 : static inline void *ERR_PTR (long int error)
71 : {
72 :
73 : return ldv_err_ptr(error);
74 : }
75 :
76 : /* AUX_FUNC PTR_ERR */
77 : static inline long int PTR_ERR (void const *ptr)
78 : {
79 :
80 : return ldv_ptr_err(ptr);
81 : }
82 :
83 : /* AUX_FUNC IS_ERR */
84 : static inline long int IS_ERR (void const *ptr)
85 : {
86 :
87 : return ldv_is_err(ptr);
88 : }
89 :
90 : /* AUX_FUNC IS_ERR_OR_NULL */
91 : static inline long int IS_ERR_OR_NULL (void const *ptr)
92 : {
93 :
94 : return ldv_is_err_or_null(ptr);
95 : }
96 :
97 : /* AUX_FUNC kzalloc */
98 : static inline void *kzalloc (size_t size, gfp_t flags)
99 : {
100 2 :
101 6 : return ldv_kzalloc(size, flags);
102 : }
|