// Skip function: __VERIFIER_error // Skip function: __VERIFIER_nondet_int // Skip function: __VERIFIER_nondet_ulong // Function: __alloc_skb // with type: struct sk_buff *__alloc_skb(unsigned int, gfp_t , int, int) // with return type: (struct sk_buff)* struct sk_buff *__alloc_skb(unsigned int arg0, gfp_t arg1, int arg2, int arg3) { // Pointer type struct sk_buff *skb = ldv_malloc(sizeof(struct sk_buff)); if(skb) { skb->head = ldv_malloc(arg0); skb->data = skb->head; skb->tail = 0; } return skb; } // Function: __dynamic_dev_dbg // with type: int __dynamic_dev_dbg(struct _ddebug *, const struct device *, const char *, ...) // with return type: int int __VERIFIER_nondet_int(void); int __dynamic_dev_dbg(struct _ddebug *arg0, const struct device *arg1, const char *arg2, ...) { // Simple type return __VERIFIER_nondet_int(); } // Function: __dynamic_pr_debug // with type: int __dynamic_pr_debug(struct _ddebug *, const char *, ...) // with return type: int int __VERIFIER_nondet_int(void); int __dynamic_pr_debug(struct _ddebug *arg0, const char *arg1, ...) { // Simple type return __VERIFIER_nondet_int(); } // Function: __mutex_init // with type: void __mutex_init(struct mutex *, const char *, struct lock_class_key *) // with return type: void void __mutex_init(struct mutex *arg0, const char *arg1, struct lock_class_key *arg2) { // Void type return; } // Function: __netdev_alloc_skb // with type: struct sk_buff *__netdev_alloc_skb(struct net_device *, unsigned int, gfp_t ) // with return type: (struct sk_buff)* struct sk_buff *__netdev_alloc_skb(struct net_device *arg0, unsigned int arg1, gfp_t arg2) { // Pointer type struct sk_buff *skb = ldv_malloc(sizeof(struct sk_buff)); if(skb) { skb->dev = arg0; skb->head = ldv_malloc(arg1); skb->data = skb->head; skb->tail = 0; } return skb; } // Skip function: calloc // Function: crc_ccitt // with type: u16 crc_ccitt(u16 , const u8 *, size_t ) // with return type: u16 unsigned short __VERIFIER_nondet_ushort(void); u16 crc_ccitt(u16 arg0, const u8 *arg1, size_t arg2) { // Typedef type // Real type: unsigned short // Simple type return __VERIFIER_nondet_ushort(); } // Function: dev_err // with type: int dev_err(const struct device *, const char *, ...) // with return type: int int __VERIFIER_nondet_int(void); int dev_err(const struct device *arg0, const char *arg1, ...) { // Simple type return __VERIFIER_nondet_int(); } // Function: devm_gpio_request // with type: int devm_gpio_request(struct device *, unsigned int, const char *) // with return type: int int __VERIFIER_nondet_int(void); int devm_gpio_request(struct device *arg0, unsigned int arg1, const char *arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: devm_kmalloc // with type: void *devm_kmalloc(struct device *, size_t , gfp_t ) // with return type: (void)* void *devm_kmalloc(struct device *arg0, size_t arg1, gfp_t arg2) { // Pointer type return ldv_malloc(0UL); } // Function: devm_request_threaded_irq // with type: int devm_request_threaded_irq(struct device *, unsigned int, irqreturn_t (*)(int, void *), irqreturn_t (*)(int, void *), unsigned long, const char *, void *) // with return type: int int __VERIFIER_nondet_int(void); int devm_request_threaded_irq(struct device *arg0, unsigned int arg1, irqreturn_t (*arg2)(int, void *), irqreturn_t (*arg3)(int, void *), unsigned long arg4, const char *arg5, void *arg6) { // Simple type return __VERIFIER_nondet_int(); } // Function: gpio_to_desc // with type: struct gpio_desc *gpio_to_desc(unsigned int) // with return type: (struct gpio_desc)* struct gpio_desc *gpio_to_desc(unsigned int arg0) { // Pointer type return ldv_malloc(0UL); } // Function: gpiod_direction_input // with type: int gpiod_direction_input(struct gpio_desc *) // with return type: int int __VERIFIER_nondet_int(void); int gpiod_direction_input(struct gpio_desc *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: gpiod_direction_output_raw // with type: int gpiod_direction_output_raw(struct gpio_desc *, int) // with return type: int int __VERIFIER_nondet_int(void); int gpiod_direction_output_raw(struct gpio_desc *arg0, int arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: gpiod_to_irq // with type: int gpiod_to_irq(const struct gpio_desc *) // with return type: int int __VERIFIER_nondet_int(void); int gpiod_to_irq(const struct gpio_desc *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: i2c_del_driver // with type: void i2c_del_driver(struct i2c_driver *) // with return type: void void i2c_del_driver(struct i2c_driver *arg0) { // Void type return; } // Function: i2c_master_recv // with type: int i2c_master_recv(const struct i2c_client *, char *, int) // with return type: int int __VERIFIER_nondet_int(void); int i2c_master_recv(const struct i2c_client *arg0, char *arg1, int arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: i2c_master_send // with type: int i2c_master_send(const struct i2c_client *, const char *, int) // with return type: int int __VERIFIER_nondet_int(void); int i2c_master_send(const struct i2c_client *arg0, const char *arg1, int arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: i2c_register_driver // with type: int i2c_register_driver(struct module *, struct i2c_driver *) // with return type: int int __VERIFIER_nondet_int(void); int i2c_register_driver(struct module *arg0, struct i2c_driver *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: kfree_skb // with type: void kfree_skb(struct sk_buff *) // with return type: void void kfree_skb(struct sk_buff *arg0) { // Void type return; } // Function: kmem_cache_alloc // with type: void *kmem_cache_alloc(struct kmem_cache *, gfp_t ) // with return type: (void)* void *kmem_cache_alloc(struct kmem_cache *arg0, gfp_t arg1) { // Pointer type return ldv_malloc(0UL); } // Function: ldv_check_final_state // with type: void ldv_check_final_state() // with return type: void void ldv_check_final_state() { // Void type return; } // Function: ldv_handler1_1 // with type: int ldv_handler1_1(int, void *) // with return type: int int __VERIFIER_nondet_int(void); int ldv_handler1_1(int arg0, void *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_handler1_2 // with type: int ldv_handler1_2(int, void *) // with return type: int int __VERIFIER_nondet_int(void); int ldv_handler1_2(int arg0, void *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_initialize // with type: void ldv_initialize() // with return type: void void ldv_initialize() { // Void type return; } // Function: ldv_some_page // with type: struct page___0 *ldv_some_page() // with return type: (struct page___0)* struct page___0 *ldv_some_page() { // Pointer type return ldv_malloc(sizeof(struct page___0)); } // Skip function: malloc // Function: msleep // with type: void msleep(unsigned int) // with return type: void void msleep(unsigned int arg0) { // Void type return; } // Function: mutex_lock_nested // with type: void mutex_lock_nested(struct mutex *, unsigned int) // with return type: void void mutex_lock_nested(struct mutex *arg0, unsigned int arg1) { // Void type return; } // Function: mutex_unlock // with type: void mutex_unlock(struct mutex *) // with return type: void void mutex_unlock(struct mutex *arg0) { // Void type return; } // Function: nfc_hci_recv_frame // with type: void nfc_hci_recv_frame(struct nfc_hci_dev *, struct sk_buff *) // with return type: void void nfc_hci_recv_frame(struct nfc_hci_dev *arg0, struct sk_buff *arg1) { // Void type return; } // Function: print_hex_dump // with type: void print_hex_dump(const char *, const char *, int, int, int, const void *, size_t , bool ) // with return type: void void print_hex_dump(const char *arg0, const char *arg1, int arg2, int arg3, int arg4, const void *arg5, size_t arg6, bool arg7) { // Void type return; } // Function: printk // with type: int printk(const char *, ...) // with return type: int int __VERIFIER_nondet_int(void); int printk(const char *arg0, ...) { // Simple type return __VERIFIER_nondet_int(); } // Function: pskb_expand_head // with type: int pskb_expand_head(struct sk_buff *, int, int, gfp_t ) // with return type: int int __VERIFIER_nondet_int(void); int pskb_expand_head(struct sk_buff *arg0, int arg1, int arg2, gfp_t arg3) { // Simple type return __VERIFIER_nondet_int(); } // Function: skb_clone // with type: struct sk_buff *skb_clone(struct sk_buff *, gfp_t ) // with return type: (struct sk_buff)* struct sk_buff *skb_clone(struct sk_buff *arg0, gfp_t arg1) { // Pointer type return ldv_malloc(sizeof(struct sk_buff)); } // Function: skb_copy // with type: struct sk_buff *skb_copy(const struct sk_buff *, gfp_t ) // with return type: (struct sk_buff)* struct sk_buff *skb_copy(const struct sk_buff *arg0, gfp_t arg1) { // Pointer type return ldv_malloc(sizeof(struct sk_buff)); } // Function: skb_pull // with type: unsigned char *skb_pull(struct sk_buff *, unsigned int) // with return type: (unsigned char)* unsigned char *skb_pull(struct sk_buff *arg0, unsigned int arg1) { // Pointer type return ldv_malloc(sizeof(unsigned char)); } // Function: skb_push // with type: unsigned char *skb_push(struct sk_buff *, unsigned int) // with return type: (unsigned char)* unsigned char *skb_push(struct sk_buff *arg0, unsigned int arg1) { // Pointer type return ldv_malloc(sizeof(unsigned char)); } // Function: skb_put // with type: unsigned char *skb_put(struct sk_buff *, unsigned int) // with return type: (unsigned char)* unsigned char *skb_put(struct sk_buff *arg0, unsigned int arg1) { unsigned char *ret_val = arg0->data + arg0->tail; // a more precise implementation of skb_put would actually re-allocate memory // here arg0->tail += arg1; // Pointer type return ret_val; } // Function: skb_trim // with type: void skb_trim(struct sk_buff *, unsigned int) // with return type: void void skb_trim(struct sk_buff *arg0, unsigned int arg1) { // Void type return; } // Function: st21nfca_hci_probe // with type: int st21nfca_hci_probe(void *, struct nfc_phy_ops *, char *, int, int, int, struct nfc_hci_dev **) // with return type: int int __VERIFIER_nondet_int(void); int st21nfca_hci_probe(void *arg0, struct nfc_phy_ops *arg1, char *arg2, int arg3, int arg4, int arg5, struct nfc_hci_dev **arg6) { // Simple type return __VERIFIER_nondet_int(); } // Function: st21nfca_hci_remove // with type: void st21nfca_hci_remove(struct nfc_hci_dev *) // with return type: void void st21nfca_hci_remove(struct nfc_hci_dev *arg0) { // Void type return; } // Function: usleep_range // with type: void usleep_range(unsigned long, unsigned long) // with return type: void void usleep_range(unsigned long arg0, unsigned long arg1) { // Void type return; } // Function: warn_slowpath_null // with type: void warn_slowpath_null(const char *, const int) // with return type: void void warn_slowpath_null(const char *arg0, const int arg1) { // Void type return; }