// Skip function: __VERIFIER_error // Skip function: __VERIFIER_nondet_int // Skip function: __VERIFIER_nondet_ulong // Skip function: __builtin_prefetch // Function: __const_udelay // with type: void __const_udelay(unsigned long) // with return type: void void __const_udelay(unsigned long arg0) { // Void type return; } // Function: __napi_schedule // with type: void __napi_schedule(struct napi_struct *) // with return type: void void __napi_schedule(struct napi_struct *arg0) { // 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; } // Function: __netif_schedule // with type: void __netif_schedule(struct Qdisc *) // with return type: void void __netif_schedule(struct Qdisc *arg0) { // Void type return; } // Function: __phys_addr // with type: unsigned long int __phys_addr(unsigned long) // with return type: unsigned long int unsigned long __VERIFIER_nondet_ulong(void); unsigned long int __phys_addr(unsigned long arg0) { // Simple type return __VERIFIER_nondet_ulong(); } // Function: __raw_spin_lock_init // with type: void __raw_spin_lock_init(raw_spinlock_t *, const char *, struct lock_class_key *) // with return type: void void __raw_spin_lock_init(raw_spinlock_t *arg0, const char *arg1, struct lock_class_key *arg2) { // Void type return; } // Function: __ssb_driver_register // with type: int __ssb_driver_register(struct ssb_driver *, struct module *) // with return type: int int __VERIFIER_nondet_int(void); int __ssb_driver_register(struct ssb_driver *arg0, struct module *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: _raw_spin_lock // with type: void _raw_spin_lock(raw_spinlock_t *) // with return type: void void _raw_spin_lock(raw_spinlock_t *arg0) { // Void type return; } // Function: _raw_spin_lock_irq // with type: void _raw_spin_lock_irq(raw_spinlock_t *) // with return type: void void _raw_spin_lock_irq(raw_spinlock_t *arg0) { // Void type return; } // Function: _raw_spin_lock_irqsave // with type: unsigned long int _raw_spin_lock_irqsave(raw_spinlock_t *) // with return type: unsigned long int unsigned long __VERIFIER_nondet_ulong(void); unsigned long int _raw_spin_lock_irqsave(raw_spinlock_t *arg0) { // Simple type return __VERIFIER_nondet_ulong(); } // Function: _raw_spin_unlock // with type: void _raw_spin_unlock(raw_spinlock_t *) // with return type: void void _raw_spin_unlock(raw_spinlock_t *arg0) { // Void type return; } // Function: _raw_spin_unlock_irq // with type: void _raw_spin_unlock_irq(raw_spinlock_t *) // with return type: void void _raw_spin_unlock_irq(raw_spinlock_t *arg0) { // Void type return; } // Function: _raw_spin_unlock_irqrestore // with type: void _raw_spin_unlock_irqrestore(raw_spinlock_t *, unsigned long) // with return type: void void _raw_spin_unlock_irqrestore(raw_spinlock_t *arg0, unsigned long arg1) { // Void type return; } // Function: add_timer // with type: void add_timer(struct timer_list *) // with return type: void void add_timer(struct timer_list *arg0) { // Void type return; } // Function: alloc_etherdev_mq // with type: struct net_device *alloc_etherdev_mq(int, unsigned int) // with return type: (struct net_device)* struct net_device *alloc_etherdev_mq(int arg0, unsigned int arg1) { // Pointer type return ldv_malloc(sizeof(struct net_device)); } // Skip function: calloc // Function: debug_dma_map_page // with type: void debug_dma_map_page(struct device *, struct page *, size_t , size_t , int, dma_addr_t , bool ) // with return type: void void debug_dma_map_page(struct device *arg0, struct page *arg1, size_t arg2, size_t arg3, int arg4, dma_addr_t arg5, bool arg6) { // Void type return; } // Function: debug_dma_sync_single_for_cpu // with type: void debug_dma_sync_single_for_cpu(struct device *, dma_addr_t , size_t , int) // with return type: void void debug_dma_sync_single_for_cpu(struct device *arg0, dma_addr_t arg1, size_t arg2, int arg3) { // Void type return; } // Function: debug_dma_sync_single_for_device // with type: void debug_dma_sync_single_for_device(struct device *, dma_addr_t , size_t , int) // with return type: void void debug_dma_sync_single_for_device(struct device *arg0, dma_addr_t arg1, size_t arg2, int arg3) { // Void type return; } // Function: debug_dma_unmap_page // with type: void debug_dma_unmap_page(struct device *, dma_addr_t , size_t , int, bool ) // with return type: void void debug_dma_unmap_page(struct device *arg0, dma_addr_t arg1, size_t arg2, int arg3, bool arg4) { // Void type return; } // Function: del_timer // with type: int del_timer(struct timer_list *) // with return type: int int __VERIFIER_nondet_int(void); int del_timer(struct timer_list *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: del_timer_sync // with type: int del_timer_sync(struct timer_list *) // with return type: int int __VERIFIER_nondet_int(void); int del_timer_sync(struct timer_list *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: dev_driver_string // with type: const char *dev_driver_string(const struct device *) // with return type: (const char)* const char *dev_driver_string(const struct device *arg0) { // Pointer type return ldv_malloc(sizeof(char)); } // Function: dev_kfree_skb_any // with type: void dev_kfree_skb_any(struct sk_buff *) // with return type: void void dev_kfree_skb_any(struct sk_buff *arg0) { // Void type return; } // Function: dev_kfree_skb_irq // with type: void dev_kfree_skb_irq(struct sk_buff *) // with return type: void void dev_kfree_skb_irq(struct sk_buff *arg0) { // Void type return; } // Function: disable_irq // with type: void disable_irq(unsigned int) // with return type: void void disable_irq(unsigned int arg0) { // Void type return; } // Function: enable_irq // with type: void enable_irq(unsigned int) // with return type: void void enable_irq(unsigned int arg0) { // Void type return; } // Function: eth_type_trans // with type: __be16 eth_type_trans(struct sk_buff *, struct net_device *) // with return type: __be16 unsigned short __VERIFIER_nondet_ushort(void); __be16 eth_type_trans(struct sk_buff *arg0, struct net_device *arg1) { // Typedef type // Real type: __u16 // Typedef type // Real type: unsigned short // Simple type return __VERIFIER_nondet_ushort(); } // Function: eth_validate_addr // with type: int eth_validate_addr(struct net_device *) // with return type: int int __VERIFIER_nondet_int(void); int eth_validate_addr(struct net_device *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: ethtool_op_get_link // with type: u32 ethtool_op_get_link(struct net_device *) // with return type: u32 unsigned int __VERIFIER_nondet_uint(void); u32 ethtool_op_get_link(struct net_device *arg0) { // Typedef type // Real type: unsigned int // Simple type return __VERIFIER_nondet_uint(); } // Function: free_irq // with type: void free_irq(unsigned int, void *) // with return type: void void free_irq(unsigned int arg0, void *arg1) { // Void type return; } // Function: free_netdev // with type: void free_netdev(struct net_device *) // with return type: void void free_netdev(struct net_device *arg0) { // Void type return; } // Function: generic_mii_ioctl // with type: int generic_mii_ioctl(struct mii_if_info *, struct mii_ioctl_data *, int, unsigned int *) // with return type: int int __VERIFIER_nondet_int(void); int generic_mii_ioctl(struct mii_if_info *arg0, struct mii_ioctl_data *arg1, int arg2, unsigned int *arg3) { // Simple type return __VERIFIER_nondet_int(); } // Skip function: kfree // 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_initialize // with type: void ldv_initialize() // with return type: void void ldv_initialize() { // Void type return; } // Function: ldv_ndo_init_5 // with type: int ldv_ndo_init_5() // with return type: int int __VERIFIER_nondet_int(void); int ldv_ndo_init_5() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_ndo_uninit_5 // with type: int ldv_ndo_uninit_5() // with return type: int int __VERIFIER_nondet_int(void); int ldv_ndo_uninit_5() { // Simple type return __VERIFIER_nondet_int(); } // Skip function: malloc // Skip function: memcpy // Skip function: memset // Function: mod_timer // with type: int mod_timer(struct timer_list *, unsigned long) // with return type: int int __VERIFIER_nondet_int(void); int mod_timer(struct timer_list *arg0, unsigned long arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: msleep // with type: void msleep(unsigned int) // with return type: void void msleep(unsigned int arg0) { // Void type return; } // Function: napi_complete // with type: void napi_complete(struct napi_struct *) // with return type: void void napi_complete(struct napi_struct *arg0) { // Void type return; } // Function: net_ratelimit // with type: int net_ratelimit() // with return type: int int __VERIFIER_nondet_int(void); int net_ratelimit() { // Simple type return __VERIFIER_nondet_int(); } // Function: netif_carrier_on // with type: void netif_carrier_on(struct net_device *) // with return type: void void netif_carrier_on(struct net_device *arg0) { // Void type return; } // Function: netif_device_attach // with type: void netif_device_attach(struct net_device *) // with return type: void void netif_device_attach(struct net_device *arg0) { // Void type return; } // Function: netif_device_detach // with type: void netif_device_detach(struct net_device *) // with return type: void void netif_device_detach(struct net_device *arg0) { // Void type return; } // Function: netif_napi_add // with type: void netif_napi_add(struct net_device *, struct napi_struct *, int (*)(struct napi_struct *, int), int) // with return type: void void netif_napi_add(struct net_device *arg0, struct napi_struct *arg1, int (*arg2)(struct napi_struct *, int), int arg3) { // Void type return; } // Function: netif_receive_skb // with type: int netif_receive_skb(struct sk_buff *) // with return type: int int __VERIFIER_nondet_int(void); int netif_receive_skb(struct sk_buff *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: netpoll_trap // with type: int netpoll_trap() // with return type: int int __VERIFIER_nondet_int(void); int netpoll_trap() { // Simple type return __VERIFIER_nondet_int(); } // Function: param_get_int // with type: int param_get_int(char *, struct kernel_param *) // with return type: int int __VERIFIER_nondet_int(void); int param_get_int(char *arg0, struct kernel_param *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: param_set_int // with type: int param_set_int(const char *, struct kernel_param *) // with return type: int int __VERIFIER_nondet_int(void); int param_set_int(const char *arg0, struct kernel_param *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: pci_bus_read_config_word // with type: int pci_bus_read_config_word(struct pci_bus *, unsigned int, int, u16 *) // with return type: int int __VERIFIER_nondet_int(void); int pci_bus_read_config_word(struct pci_bus *arg0, unsigned int arg1, int arg2, u16 *arg3) { // Simple type return __VERIFIER_nondet_int(); } // Function: pci_bus_write_config_word // with type: int pci_bus_write_config_word(struct pci_bus *, unsigned int, int, u16 ) // with return type: int int __VERIFIER_nondet_int(void); int pci_bus_write_config_word(struct pci_bus *arg0, unsigned int arg1, int arg2, u16 arg3) { // Simple type return __VERIFIER_nondet_int(); } // Function: pci_set_power_state // with type: int pci_set_power_state(struct pci_dev *, pci_power_t ) // with return type: int int __VERIFIER_nondet_int(void); int pci_set_power_state(struct pci_dev *arg0, pci_power_t arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: pci_unregister_driver // with type: void pci_unregister_driver(struct pci_driver *) // with return type: void void pci_unregister_driver(struct pci_driver *arg0) { // 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: request_threaded_irq // with type: int request_threaded_irq(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 request_threaded_irq(unsigned int arg0, irqreturn_t (*arg1)(int, void *), irqreturn_t (*arg2)(int, void *), unsigned long arg3, const char *arg4, void *arg5) { // Simple type return __VERIFIER_nondet_int(); } // Function: round_jiffies // with type: unsigned long int round_jiffies(unsigned long) // with return type: unsigned long int unsigned long __VERIFIER_nondet_ulong(void); unsigned long int round_jiffies(unsigned long arg0) { // Simple type return __VERIFIER_nondet_ulong(); } // 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_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: ssb_bus_may_powerdown // with type: int ssb_bus_may_powerdown(struct ssb_bus *) // with return type: int int __VERIFIER_nondet_int(void); int ssb_bus_may_powerdown(struct ssb_bus *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: ssb_bus_powerup // with type: int ssb_bus_powerup(struct ssb_bus *, bool ) // with return type: int int __VERIFIER_nondet_int(void); int ssb_bus_powerup(struct ssb_bus *arg0, bool arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: ssb_clockspeed // with type: u32 ssb_clockspeed(struct ssb_bus *) // with return type: u32 unsigned int __VERIFIER_nondet_uint(void); u32 ssb_clockspeed(struct ssb_bus *arg0) { // Typedef type // Real type: unsigned int // Simple type return __VERIFIER_nondet_uint(); } // Function: ssb_device_disable // with type: void ssb_device_disable(struct ssb_device *, u32 ) // with return type: void void ssb_device_disable(struct ssb_device *arg0, u32 arg1) { // Void type return; } // Function: ssb_device_enable // with type: void ssb_device_enable(struct ssb_device *, u32 ) // with return type: void void ssb_device_enable(struct ssb_device *arg0, u32 arg1) { // Void type return; } // Function: ssb_device_is_enabled // with type: int ssb_device_is_enabled(struct ssb_device *) // with return type: int int __VERIFIER_nondet_int(void); int ssb_device_is_enabled(struct ssb_device *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: ssb_dma_alloc_consistent // with type: void *ssb_dma_alloc_consistent(struct ssb_device *, size_t , dma_addr_t *, gfp_t ) // with return type: (void)* void *ssb_dma_alloc_consistent(struct ssb_device *arg0, size_t arg1, dma_addr_t *arg2, gfp_t arg3) { // Pointer type return ldv_malloc(0UL); } // Function: ssb_dma_free_consistent // with type: void ssb_dma_free_consistent(struct ssb_device *, size_t , void *, dma_addr_t , gfp_t ) // with return type: void void ssb_dma_free_consistent(struct ssb_device *arg0, size_t arg1, void *arg2, dma_addr_t arg3, gfp_t arg4) { // Void type return; } // Function: ssb_dma_set_mask // with type: int ssb_dma_set_mask(struct ssb_device *, u64 ) // with return type: int int __VERIFIER_nondet_int(void); int ssb_dma_set_mask(struct ssb_device *arg0, u64 arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: ssb_dma_translation // with type: u32 ssb_dma_translation(struct ssb_device *) // with return type: u32 unsigned int __VERIFIER_nondet_uint(void); u32 ssb_dma_translation(struct ssb_device *arg0) { // Typedef type // Real type: unsigned int // Simple type return __VERIFIER_nondet_uint(); } // Function: ssb_driver_unregister // with type: void ssb_driver_unregister(struct ssb_driver *) // with return type: void void ssb_driver_unregister(struct ssb_driver *arg0) { // Void type return; } // Function: ssb_pcicore_dev_irqvecs_enable // with type: int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *, struct ssb_device *) // with return type: int int __VERIFIER_nondet_int(void); int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *arg0, struct ssb_device *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: ssb_pcihost_register // with type: int ssb_pcihost_register(struct pci_driver *) // with return type: int int __VERIFIER_nondet_int(void); int ssb_pcihost_register(struct pci_driver *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: strlcpy // with type: size_t strlcpy(char *, const char *, size_t ) // with return type: size_t unsigned long __VERIFIER_nondet_ulong(void); size_t strlcpy(char *arg0, const char *arg1, size_t arg2) { // Typedef type // Real type: __kernel_size_t // Typedef type // Real type: unsigned long // Simple type return __VERIFIER_nondet_ulong(); } // Function: unregister_netdev // with type: void unregister_netdev(struct net_device *) // with return type: void void unregister_netdev(struct net_device *arg0) { // 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; }