// Skip function: __VERIFIER_error // Skip function: __VERIFIER_nondet_int // Skip function: __VERIFIER_nondet_ulong // Function: __const_udelay // with type: void __const_udelay(unsigned long) // with return type: void void __const_udelay(unsigned long arg0) { // Void type return; } // Function: __dev_kfree_skb_irq // with type: void __dev_kfree_skb_irq(struct sk_buff *, enum skb_free_reason ) // with return type: void void __dev_kfree_skb_irq(struct sk_buff *arg0, enum skb_free_reason arg1) { // Void type return; } // Function: __local_bh_disable_ip // with type: void __local_bh_disable_ip(unsigned long, unsigned int) // with return type: void void __local_bh_disable_ip(unsigned long arg0, unsigned int arg1) { // Void type return; } // Function: __local_bh_enable_ip // with type: void __local_bh_enable_ip(unsigned long, unsigned int) // with return type: void void __local_bh_enable_ip(unsigned long arg0, unsigned int arg1) { // 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: __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: __platform_driver_register // with type: int __platform_driver_register(struct platform_driver *, struct module *) // with return type: int int __VERIFIER_nondet_int(void); int __platform_driver_register(struct platform_driver *arg0, struct module *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: __pm_runtime_disable // with type: void __pm_runtime_disable(struct device *, bool ) // with return type: void void __pm_runtime_disable(struct device *arg0, bool arg1) { // Void type return; } // Function: __pm_runtime_idle // with type: int __pm_runtime_idle(struct device *, int) // with return type: int int __VERIFIER_nondet_int(void); int __pm_runtime_idle(struct device *arg0, int arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: __pm_runtime_resume // with type: int __pm_runtime_resume(struct device *, int) // with return type: int int __VERIFIER_nondet_int(void); int __pm_runtime_resume(struct device *arg0, int arg1) { // Simple type return __VERIFIER_nondet_int(); } // 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: _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_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_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: alloc_etherdev_mqs // with type: struct net_device *alloc_etherdev_mqs(int, unsigned int, unsigned int) // with return type: (struct net_device)* struct net_device *alloc_etherdev_mqs(int arg0, unsigned int arg1, unsigned int arg2) { // Pointer type return ldv_malloc(sizeof(struct net_device)); } // Function: alloc_mdio_bitbang // with type: struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *) // with return type: (struct mii_bus)* struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *arg0) { // Pointer type return ldv_malloc(sizeof(struct mii_bus)); } // Skip function: calloc // Function: consume_skb // with type: void consume_skb(struct sk_buff *) // with return type: void void consume_skb(struct sk_buff *arg0) { // Void type return; } // 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_mapping_error // with type: void debug_dma_mapping_error(struct device *, dma_addr_t ) // with return type: void void debug_dma_mapping_error(struct device *arg0, dma_addr_t arg1) { // 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: dev_err // with type: void dev_err(const struct device *, const char *, ...) // with return type: void void dev_err(const struct device *arg0, const char *arg1, ...) { // Void type return; } // Function: dev_warn // with type: void dev_warn(const struct device *, const char *, ...) // with return type: void void dev_warn(const struct device *arg0, const char *arg1, ...) { // Void type return; } // Function: devm_ioremap_resource // with type: void *devm_ioremap_resource(struct device *, struct resource *) // with return type: (void)* void *devm_ioremap_resource(struct device *arg0, struct resource *arg1) { // Pointer type return ldv_malloc(0UL); } // 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: dma_alloc_attrs // with type: void *dma_alloc_attrs(struct device *, size_t , dma_addr_t *, gfp_t , struct dma_attrs *) // with return type: (void)* void *dma_alloc_attrs(struct device *arg0, size_t arg1, dma_addr_t *arg2, gfp_t arg3, struct dma_attrs *arg4) { // Pointer type return ldv_malloc(0UL); } // Function: dma_free_attrs // with type: void dma_free_attrs(struct device *, size_t , void *, dma_addr_t , struct dma_attrs *) // with return type: void void dma_free_attrs(struct device *arg0, size_t arg1, void *arg2, dma_addr_t arg3, struct dma_attrs *arg4) { // Void type return; } // Function: eth_change_mtu // with type: int eth_change_mtu(struct net_device *, int) // with return type: int int __VERIFIER_nondet_int(void); int eth_change_mtu(struct net_device *arg0, int arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: eth_mac_addr // with type: int eth_mac_addr(struct net_device *, void *) // with return type: int int __VERIFIER_nondet_int(void); int eth_mac_addr(struct net_device *arg0, void *arg1) { // Simple type return __VERIFIER_nondet_int(); } // 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_mdio_bitbang // with type: void free_mdio_bitbang(struct mii_bus *) // with return type: void void free_mdio_bitbang(struct mii_bus *arg0) { // 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: get_random_bytes // with type: void get_random_bytes(void *, int) // with return type: void void get_random_bytes(void *arg0, int arg1) { // Void type return; } // Function: ioread32 // with type: unsigned int ioread32(void *) // with return type: unsigned int unsigned int __VERIFIER_nondet_uint(void); unsigned int ioread32(void *arg0) { // Simple type return __VERIFIER_nondet_uint(); } // Function: iowrite32 // with type: void iowrite32(u32 , void *) // with return type: void void iowrite32(u32 arg0, void *arg1) { // Void type return; } // Skip function: kfree // 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: 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_complete_3 // with type: int ldv_complete_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_complete_3() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_freeze_late_3 // with type: int ldv_freeze_late_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_freeze_late_3() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_freeze_noirq_3 // with type: int ldv_freeze_noirq_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_freeze_noirq_3() { // 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_ndo_init_4 // with type: int ldv_ndo_init_4() // with return type: int int __VERIFIER_nondet_int(void); int ldv_ndo_init_4() { // Simple type return __VERIFIER_nondet_int(); } // 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_4 // with type: int ldv_ndo_uninit_4() // with return type: int int __VERIFIER_nondet_int(void); int ldv_ndo_uninit_4() { // 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(); } // Function: ldv_poweroff_late_3 // with type: int ldv_poweroff_late_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_poweroff_late_3() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_poweroff_noirq_3 // with type: int ldv_poweroff_noirq_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_poweroff_noirq_3() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_prepare_3 // with type: int ldv_prepare_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_prepare_3() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_restore_early_3 // with type: int ldv_restore_early_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_restore_early_3() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_restore_noirq_3 // with type: int ldv_restore_noirq_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_restore_noirq_3() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_resume_early_3 // with type: int ldv_resume_early_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_resume_early_3() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_resume_noirq_3 // with type: int ldv_resume_noirq_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_resume_noirq_3() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_some_page // with type: struct page *ldv_some_page() // with return type: (struct page)* struct page *ldv_some_page() { // Pointer type return ldv_malloc(sizeof(struct page)); } // Function: ldv_suspend_late_3 // with type: int ldv_suspend_late_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_suspend_late_3() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_suspend_noirq_3 // with type: int ldv_suspend_noirq_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_suspend_noirq_3() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_thaw_early_3 // with type: int ldv_thaw_early_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_thaw_early_3() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_thaw_noirq_3 // with type: int ldv_thaw_noirq_3() // with return type: int int __VERIFIER_nondet_int(void); int ldv_thaw_noirq_3() { // Simple type return __VERIFIER_nondet_int(); } // Skip function: malloc // Function: mdiobus_register // with type: int mdiobus_register(struct mii_bus *) // with return type: int int __VERIFIER_nondet_int(void); int mdiobus_register(struct mii_bus *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: mdiobus_unregister // with type: void mdiobus_unregister(struct mii_bus *) // with return type: void void mdiobus_unregister(struct mii_bus *arg0) { // Void type return; } // Skip function: memcpy // Skip function: memset // Function: msleep // with type: void msleep(unsigned int) // with return type: void void msleep(unsigned int arg0) { // Void type return; } // Function: napi_disable // with type: void napi_disable(struct napi_struct *) // with return type: void void napi_disable(struct napi_struct *arg0) { // Void type return; } // Function: netdev_err // with type: void netdev_err(const struct net_device *, const char *, ...) // with return type: void void netdev_err(const struct net_device *arg0, const char *arg1, ...) { // Void type return; } // Function: netdev_info // with type: void netdev_info(const struct net_device *, const char *, ...) // with return type: void void netdev_info(const struct net_device *arg0, const char *arg1, ...) { // Void type return; } // Function: netdev_warn // with type: void netdev_warn(const struct net_device *, const char *, ...) // with return type: void void netdev_warn(const struct net_device *arg0, const char *arg1, ...) { // 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_napi_del // with type: void netif_napi_del(struct napi_struct *) // with return type: void void netif_napi_del(struct napi_struct *arg0) { // Void type return; } // Function: netif_receive_skb_sk // with type: int netif_receive_skb_sk(struct sock *, struct sk_buff *) // with return type: int int __VERIFIER_nondet_int(void); int netif_receive_skb_sk(struct sock *arg0, struct sk_buff *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: netif_tx_wake_queue // with type: void netif_tx_wake_queue(struct netdev_queue *) // with return type: void void netif_tx_wake_queue(struct netdev_queue *arg0) { // Void type return; } // Function: of_find_property // with type: struct property *of_find_property(const struct device_node *, const char *, int *) // with return type: (struct property)* struct property *of_find_property(const struct device_node *arg0, const char *arg1, int *arg2) { // Pointer type return ldv_malloc(sizeof(struct property)); } // Function: of_get_mac_address // with type: const void *of_get_mac_address(struct device_node *) // with return type: (const void)* const void *of_get_mac_address(struct device_node *arg0) { // Pointer type return ldv_malloc(0UL); } // Function: of_get_phy_mode // with type: int of_get_phy_mode(struct device_node *) // with return type: int int __VERIFIER_nondet_int(void); int of_get_phy_mode(struct device_node *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: of_match_device // with type: const struct of_device_id *of_match_device(const struct of_device_id *, const struct device *) // with return type: (struct of_device_id)* const struct of_device_id *of_match_device(const struct of_device_id *arg0, const struct device *arg1) { // Pointer type return ldv_malloc(sizeof(struct of_device_id)); } // Function: of_mdiobus_register // with type: int of_mdiobus_register(struct mii_bus *, struct device_node *) // with return type: int int __VERIFIER_nondet_int(void); int of_mdiobus_register(struct mii_bus *arg0, struct device_node *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: of_parse_phandle // with type: struct device_node *of_parse_phandle(const struct device_node *, const char *, int) // with return type: (struct device_node)* struct device_node *of_parse_phandle(const struct device_node *arg0, const char *arg1, int arg2) { // Pointer type return ldv_malloc(sizeof(struct device_node)); } // Function: of_phy_connect // with type: struct phy_device *of_phy_connect(struct net_device *, struct device_node *, void (*)(struct net_device *), u32 , phy_interface_t ) // with return type: (struct phy_device)* struct phy_device *of_phy_connect(struct net_device *arg0, struct device_node *arg1, void (*arg2)(struct net_device *), u32 arg3, phy_interface_t arg4) { // Pointer type return ldv_malloc(sizeof(struct phy_device)); } // Function: phy_connect // with type: struct phy_device *phy_connect(struct net_device *, const char *, void (*)(struct net_device *), phy_interface_t ) // with return type: (struct phy_device)* struct phy_device *phy_connect(struct net_device *arg0, const char *arg1, void (*arg2)(struct net_device *), phy_interface_t arg3) { // Pointer type return ldv_malloc(sizeof(struct phy_device)); } // Function: phy_disconnect // with type: void phy_disconnect(struct phy_device *) // with return type: void void phy_disconnect(struct phy_device *arg0) { // Void type return; } // Function: phy_ethtool_gset // with type: int phy_ethtool_gset(struct phy_device *, struct ethtool_cmd *) // with return type: int int __VERIFIER_nondet_int(void); int phy_ethtool_gset(struct phy_device *arg0, struct ethtool_cmd *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: phy_ethtool_sset // with type: int phy_ethtool_sset(struct phy_device *, struct ethtool_cmd *) // with return type: int int __VERIFIER_nondet_int(void); int phy_ethtool_sset(struct phy_device *arg0, struct ethtool_cmd *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: phy_mii_ioctl // with type: int phy_mii_ioctl(struct phy_device *, struct ifreq *, int) // with return type: int int __VERIFIER_nondet_int(void); int phy_mii_ioctl(struct phy_device *arg0, struct ifreq *arg1, int arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: phy_print_status // with type: void phy_print_status(struct phy_device *) // with return type: void void phy_print_status(struct phy_device *arg0) { // Void type return; } // Function: phy_start // with type: void phy_start(struct phy_device *) // with return type: void void phy_start(struct phy_device *arg0) { // Void type return; } // Function: phy_start_aneg // with type: int phy_start_aneg(struct phy_device *) // with return type: int int __VERIFIER_nondet_int(void); int phy_start_aneg(struct phy_device *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: phy_stop // with type: void phy_stop(struct phy_device *) // with return type: void void phy_stop(struct phy_device *arg0) { // Void type return; } // Function: platform_driver_unregister // with type: void platform_driver_unregister(struct platform_driver *) // with return type: void void platform_driver_unregister(struct platform_driver *arg0) { // Void type return; } // Function: platform_get_irq // with type: int platform_get_irq(struct platform_device *, unsigned int) // with return type: int int __VERIFIER_nondet_int(void); int platform_get_irq(struct platform_device *arg0, unsigned int arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: platform_get_resource // with type: struct resource *platform_get_resource(struct platform_device *, unsigned int, unsigned int) // with return type: (struct resource)* struct resource *platform_get_resource(struct platform_device *arg0, unsigned int arg1, unsigned int arg2) { // Pointer type return ldv_malloc(sizeof(struct resource)); } // Function: pm_runtime_enable // with type: void pm_runtime_enable(struct device *) // with return type: void void pm_runtime_enable(struct device *arg0) { // Void type return; } // Function: register_netdev // with type: int register_netdev(struct net_device *) // with return type: int int __VERIFIER_nondet_int(void); int register_netdev(struct net_device *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: skb_pad // with type: int skb_pad(struct sk_buff *, int) // with return type: int int __VERIFIER_nondet_int(void); int skb_pad(struct sk_buff *arg0, int arg1) { // Simple type return __VERIFIER_nondet_int(); } // 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; } // Skip function: snprintf // Function: synchronize_irq // with type: void synchronize_irq(unsigned int) // with return type: void void synchronize_irq(unsigned int arg0) { // Void type return; } // 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; }