// Skip function: __VERIFIER_error // Skip function: __VERIFIER_nondet_int // Skip function: __VERIFIER_nondet_ulong // 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: __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: 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)); } // Skip function: calloc // Function: clk_disable // with type: void clk_disable(struct clk *) // with return type: void void clk_disable(struct clk *arg0) { // Void type return; } // Function: clk_enable // with type: int clk_enable(struct clk *) // with return type: int int __VERIFIER_nondet_int(void); int clk_enable(struct clk *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: debug_dma_alloc_coherent // with type: void debug_dma_alloc_coherent(struct device *, size_t , dma_addr_t , void *) // with return type: void void debug_dma_alloc_coherent(struct device *arg0, size_t arg1, dma_addr_t arg2, void *arg3) { // Void type return; } // Function: debug_dma_free_coherent // with type: void debug_dma_free_coherent(struct device *, size_t , void *, dma_addr_t ) // with return type: void void debug_dma_free_coherent(struct device *arg0, size_t arg1, void *arg2, dma_addr_t arg3) { // 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_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: devm_clk_get // with type: struct clk *devm_clk_get(struct device *, const char *) // with return type: (struct clk)* struct clk *devm_clk_get(struct device *arg0, const char *arg1) { // Pointer type return ldv_malloc(0UL); } // Function: devm_ioremap // with type: void *devm_ioremap(struct device *, resource_size_t , unsigned long) // with return type: (void)* void *devm_ioremap(struct device *arg0, resource_size_t arg1, unsigned long 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: 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: ether_setup // with type: void ether_setup(struct net_device *) // with return type: void void ether_setup(struct net_device *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; } // Skip function: kfree // Function: ldv_ndo_init_2 // with type: int ldv_ndo_init_2() // with return type: int int __VERIFIER_nondet_int(void); int ldv_ndo_init_2() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_ndo_uninit_2 // with type: int ldv_ndo_uninit_2() // with return type: int int __VERIFIER_nondet_int(void); int ldv_ndo_uninit_2() { // Simple type return __VERIFIER_nondet_int(); } // Function: ldv_probe_1 // with type: int ldv_probe_1() // with return type: int int __VERIFIER_nondet_int(void); int ldv_probe_1() { // Simple type return __VERIFIER_nondet_int(); } // Function: macb_get_hwaddr // with type: void macb_get_hwaddr(struct macb *) // with return type: void void macb_get_hwaddr(struct macb *arg0) { // Void type return; } // Function: macb_get_stats // with type: struct net_device_stats *macb_get_stats(struct net_device *) // with return type: (struct net_device_stats)* struct net_device_stats *macb_get_stats(struct net_device *arg0) { // Pointer type return ldv_malloc(sizeof(struct net_device_stats)); } // Function: macb_ioctl // with type: int macb_ioctl(struct net_device *, struct ifreq *, int) // with return type: int int __VERIFIER_nondet_int(void); int macb_ioctl(struct net_device *arg0, struct ifreq *arg1, int arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: macb_mii_init // with type: int macb_mii_init(struct macb *) // with return type: int int __VERIFIER_nondet_int(void); int macb_mii_init(struct macb *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: macb_set_hwaddr // with type: void macb_set_hwaddr(struct macb *) // with return type: void void macb_set_hwaddr(struct macb *arg0) { // Void type return; } // Function: macb_set_rx_mode // with type: void macb_set_rx_mode(struct net_device *) // with return type: void void macb_set_rx_mode(struct net_device *arg0) { // Void type return; } // Skip function: malloc // Function: mdiobus_free // with type: void mdiobus_free(struct mii_bus *) // with return type: void void mdiobus_free(struct mii_bus *arg0) { // Void type return; } // 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: netdev_err // with type: int netdev_err(const struct net_device *, const char *, ...) // with return type: int int __VERIFIER_nondet_int(void); int netdev_err(const struct net_device *arg0, const char *arg1, ...) { // Simple type return __VERIFIER_nondet_int(); } // Function: netdev_info // with type: int netdev_info(const struct net_device *, const char *, ...) // with return type: int int __VERIFIER_nondet_int(void); int netdev_info(const struct net_device *arg0, const char *arg1, ...) { // Simple type return __VERIFIER_nondet_int(); } // Function: netif_carrier_off // with type: void netif_carrier_off(struct net_device *) // with return type: void void netif_carrier_off(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: 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_start // with type: void phy_start(struct phy_device *) // with return type: void void phy_start(struct phy_device *arg0) { // Void type return; } // Function: platform_driver_probe // with type: int platform_driver_probe(struct platform_driver *, int (*)(struct platform_device *)) // with return type: int int __VERIFIER_nondet_int(void); int platform_driver_probe(struct platform_driver *arg0, int (*arg1)(struct platform_device *)) { // Simple type return __VERIFIER_nondet_int(); } // 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: 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: 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: 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: trace_hardirqs_off // with type: void trace_hardirqs_off() // with return type: void void trace_hardirqs_off() { // Void type return; } // Function: trace_hardirqs_on // with type: void trace_hardirqs_on() // with return type: void void trace_hardirqs_on() { // 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; }