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/net.h>
31 : #include <linux/seq_file.h>
32 : #include <linux/fs.h>
33 : #include <linux/pagemap.h>
34 : #include <linux/poll.h>
35 :
36 :
37 : struct ldv_struct_insmod_6 {
38 : int signal_pending;
39 : };
40 :
41 : struct ldv_struct_random_proto_scenario_2 {
42 : struct net *arg0;
43 : int signal_pending;
44 : };
45 :
46 : /* EMG Function declarations */
47 : extern void ldv_dispatch_register_7_1(struct net *);
48 : extern struct ctl_table_header *ldv_emg_register_net_sysctl_table(struct net *, struct ctl_path *, ctl_table *);
49 :
50 : /* EMG variable declarations */
51 :
52 : /* EMG variable initialization */
53 :
54 : /* EMG function definitions */
55 :
56 : /* AUX_FUNC ERR_PTR */
57 : static inline void *ERR_PTR (long int error)
58 : {
59 :
60 : return ldv_err_ptr(error);
61 : }
62 :
63 : /* AUX_FUNC PTR_ERR */
64 : static inline long int PTR_ERR (void const *ptr)
65 : {
66 :
67 : return ldv_ptr_err(ptr);
68 : }
69 :
70 : /* AUX_FUNC IS_ERR */
71 : static inline long int IS_ERR (void const *ptr)
72 : {
73 :
74 : return ldv_is_err(ptr);
75 : }
76 :
77 : /* AUX_FUNC IS_ERR_OR_NULL */
78 : static inline long int IS_ERR_OR_NULL (void const *ptr)
79 : {
80 :
81 : return ldv_is_err_or_null(ptr);
82 : }
83 :
84 : /* AUX_FUNC kzalloc */
85 : static inline void *kzalloc (size_t size, gfp_t flags)
86 : {
87 :
88 : return ldv_kzalloc(size, flags);
89 : }
90 :
91 : /* AUX_FUNC ldv_register_net_sysctl_table_6 */
92 : struct ctl_table_header *ldv_register_net_sysctl_table_6 (struct net *ldv_func_arg1, struct ctl_path const *ldv_func_arg2, struct ctl_table *ldv_func_arg3)
93 : {
94 :
95 : /* LDV {"type": "KERNEL_MODEL", "comment": "Perform the model code of the function 'register_net_sysctl_table'"} */
96 3 : return ldv_emg_register_net_sysctl_table(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3);
97 : }
|