// Skip function: __VERIFIER_error // Skip function: __VERIFIER_nondet_int // Skip function: __VERIFIER_nondet_ulong // Function: __copy_from_user_overflow // with type: void __copy_from_user_overflow() // with return type: void void __copy_from_user_overflow() { // Void type return; } // Function: __copy_to_user_overflow // with type: void __copy_to_user_overflow() // with return type: void void __copy_to_user_overflow() { // Void type return; } // Function: __dynamic_pr_debug // with type: void __dynamic_pr_debug(struct _ddebug *, const char *, ...) // with return type: void void __dynamic_pr_debug(struct _ddebug *arg0, const char *arg1, ...) { // Void type return; } // Function: __init_waitqueue_head // with type: void __init_waitqueue_head(wait_queue_head_t *, const char *, struct lock_class_key *) // with return type: void void __init_waitqueue_head(wait_queue_head_t *arg0, const char *arg1, struct lock_class_key *arg2) { // Void type return; } // Function: __init_work // with type: void __init_work(struct work_struct *, int) // with return type: void void __init_work(struct work_struct *arg0, int arg1) { // Void type return; } // Function: __ldv_linux_kernel_locking_spinlock_spin_lock // with type: void __ldv_linux_kernel_locking_spinlock_spin_lock(spinlock_t *) // with return type: void void __ldv_linux_kernel_locking_spinlock_spin_lock(spinlock_t *arg0) { // Void type return; } // Function: __list_add // with type: void __list_add(struct list_head *, struct list_head *, struct list_head *) // with return type: void void __list_add(struct list_head *arg0, struct list_head *arg1, struct list_head *arg2) { // Void type return; } // Function: __list_del_entry // with type: void __list_del_entry(struct list_head *) // with return type: void void __list_del_entry(struct list_head *arg0) { // Void type return; } // 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: __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: __tasklet_schedule // with type: void __tasklet_schedule(struct tasklet_struct *) // with return type: void void __tasklet_schedule(struct tasklet_struct *arg0) { // Void type return; } // Function: __wake_up // with type: void __wake_up(wait_queue_head_t *, unsigned int, int, void *) // with return type: void void __wake_up(wait_queue_head_t *arg0, unsigned int arg1, int arg2, void *arg3) { // Void type return; } // Function: _copy_from_user // with type: unsigned long int _copy_from_user(void *, const void *, unsigned int) // with return type: unsigned long int unsigned long __VERIFIER_nondet_ulong(void); unsigned long int _copy_from_user(void *arg0, const void *arg1, unsigned int arg2) { // Simple type return __VERIFIER_nondet_ulong(); } // Function: _copy_to_user // with type: unsigned long int _copy_to_user(void *, const void *, unsigned int) // with return type: unsigned long int unsigned long __VERIFIER_nondet_ulong(void); unsigned long int _copy_to_user(void *arg0, const void *arg1, unsigned int arg2) { // Simple type return __VERIFIER_nondet_ulong(); } // 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_bh // with type: void _raw_spin_lock_bh(raw_spinlock_t *) // with return type: void void _raw_spin_lock_bh(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_bh // with type: void _raw_spin_unlock_bh(raw_spinlock_t *) // with return type: void void _raw_spin_unlock_bh(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_chrdev_region // with type: int alloc_chrdev_region(dev_t *, unsigned int, unsigned int, const char *) // with return type: int int __VERIFIER_nondet_int(void); int alloc_chrdev_region(dev_t *arg0, unsigned int arg1, unsigned int arg2, const char *arg3) { // Simple type return __VERIFIER_nondet_int(); } // Skip function: calloc // Function: cdev_add // with type: int cdev_add(struct cdev *, dev_t , unsigned int) // with return type: int int __VERIFIER_nondet_int(void); int cdev_add(struct cdev *arg0, dev_t arg1, unsigned int arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: cdev_del // with type: void cdev_del(struct cdev *) // with return type: void void cdev_del(struct cdev *arg0) { // Void type return; } // Function: cdev_init // with type: void cdev_init(struct cdev *, const struct file_operations *) // with return type: void void cdev_init(struct cdev *arg0, const struct file_operations *arg1) { // Void type return; } // 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: dev_add_pack // with type: void dev_add_pack(struct packet_type *) // with return type: void void dev_add_pack(struct packet_type *arg0) { // Void type return; } // Function: dev_get_by_name // with type: struct net_device *dev_get_by_name(struct net *, const char *) // with return type: (struct net_device)* struct net_device *dev_get_by_name(struct net *arg0, const char *arg1) { // Pointer type return ldv_malloc(sizeof(struct net_device)); } // Function: dev_queue_xmit // with type: int dev_queue_xmit(struct sk_buff *) // with return type: int int __VERIFIER_nondet_int(void); int dev_queue_xmit(struct sk_buff *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: dev_remove_pack // with type: void dev_remove_pack(struct packet_type *) // with return type: void void dev_remove_pack(struct packet_type *arg0) { // Void type return; } // Function: device_create // with type: struct device *device_create(struct class *, struct device *, dev_t , void *, const char *, ...) // with return type: (struct device)* struct device *device_create(struct class *arg0, struct device *arg1, dev_t arg2, void *arg3, const char *arg4, ...) { // Pointer type return ldv_malloc(sizeof(struct device)); } // Function: device_destroy // with type: void device_destroy(struct class *, dev_t ) // with return type: void void device_destroy(struct class *arg0, dev_t arg1) { // Void type return; } // Function: device_wakeup_enable // with type: int device_wakeup_enable(struct device *) // with return type: int int __VERIFIER_nondet_int(void); int device_wakeup_enable(struct device *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Skip function: free // Function: getnstimeofday64 // with type: void getnstimeofday64(struct timespec *) // with return type: void void getnstimeofday64(struct timespec *arg0) { // Void type return; } // Function: getrawmonotonic64 // with type: void getrawmonotonic64(struct timespec *) // with return type: void void getrawmonotonic64(struct timespec *arg0) { // Void type return; } // Function: hrtimer_cancel // with type: int hrtimer_cancel(struct hrtimer *) // with return type: int int __VERIFIER_nondet_int(void); int hrtimer_cancel(struct hrtimer *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: hrtimer_forward // with type: u64 hrtimer_forward(struct hrtimer *, ktime_t , ktime_t ) // with return type: u64 unsigned long __VERIFIER_nondet_ulong(void); u64 hrtimer_forward(struct hrtimer *arg0, ktime_t arg1, ktime_t arg2) { // Typedef type // Real type: unsigned long long // Simple type return __VERIFIER_nondet_ulong(); } // Function: hrtimer_init // with type: void hrtimer_init(struct hrtimer *, clockid_t , enum hrtimer_mode ) // with return type: void void hrtimer_init(struct hrtimer *arg0, clockid_t arg1, enum hrtimer_mode arg2) { // Void type return; } // Function: hrtimer_start // with type: int hrtimer_start(struct hrtimer *, ktime_t , const enum hrtimer_mode ) // with return type: int int __VERIFIER_nondet_int(void); int hrtimer_start(struct hrtimer *arg0, ktime_t arg1, const enum hrtimer_mode arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: hrtimer_start_range_ns // with type: int hrtimer_start_range_ns(struct hrtimer *, ktime_t , unsigned long, const enum hrtimer_mode ) // with return type: int int __VERIFIER_nondet_int(void); int hrtimer_start_range_ns(struct hrtimer *arg0, ktime_t arg1, unsigned long arg2, const enum hrtimer_mode arg3) { // Simple type return __VERIFIER_nondet_int(); } // 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: kmem_cache_create // with type: struct kmem_cache *kmem_cache_create(const char *, size_t , size_t , unsigned long, void (*)(void *)) // with return type: (struct kmem_cache)* struct kmem_cache *kmem_cache_create(const char *arg0, size_t arg1, size_t arg2, unsigned long arg3, void (*arg4)(void *)) { // Pointer type return ldv_malloc(0UL); } // Function: kmem_cache_destroy // with type: void kmem_cache_destroy(struct kmem_cache *) // with return type: void void kmem_cache_destroy(struct kmem_cache *arg0) { // Void type return; } // Function: kmem_cache_free // with type: void kmem_cache_free(struct kmem_cache *, void *) // with return type: void void kmem_cache_free(struct kmem_cache *arg0, void *arg1) { // Void type return; } // Function: ldv_after_alloc // with type: void ldv_after_alloc(void *) // with return type: void void ldv_after_alloc(void *arg0) { // Void type return; } // Function: ldv_assert // with type: void ldv_assert(const char *, int) // with return type: void void ldv_assert(const char *arg0, int arg1) { // Void type return; } // Function: ldv_pre_probe // with type: void ldv_pre_probe() // with return type: void void ldv_pre_probe() { // Void type return; } // Function: list_del // with type: void list_del(struct list_head *) // with return type: void void list_del(struct list_head *arg0) { // Void type return; } // Function: lockdep_init_map // with type: void lockdep_init_map(struct lockdep_map *, const char *, struct lock_class_key *, int) // with return type: void void lockdep_init_map(struct lockdep_map *arg0, const char *arg1, struct lock_class_key *arg2, int arg3) { // Void type return; } // Skip function: malloc // Skip function: memcpy // Skip function: memset // Function: might_fault // with type: void might_fault() // with return type: void void might_fault() { // Void type return; } // Function: msleep // with type: void msleep(unsigned int) // with return type: void void msleep(unsigned int arg0) { // Void type return; } // Function: platform_device_add // with type: int platform_device_add(struct platform_device *) // with return type: int int __VERIFIER_nondet_int(void); int platform_device_add(struct platform_device *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: platform_device_alloc // with type: struct platform_device *platform_device_alloc(const char *, int) // with return type: (struct platform_device)* struct platform_device *platform_device_alloc(const char *arg0, int arg1) { // Pointer type return ldv_malloc(sizeof(struct platform_device)); } // Function: platform_device_put // with type: void platform_device_put(struct platform_device *) // with return type: void void platform_device_put(struct platform_device *arg0) { // Void type return; } // Function: platform_device_unregister // with type: void platform_device_unregister(struct platform_device *) // with return type: void void platform_device_unregister(struct platform_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: queue_work_on // with type: bool queue_work_on(int, struct workqueue_struct *, struct work_struct *) // with return type: bool bool __VERIFIER_nondet_bool(void); bool queue_work_on(int arg0, struct workqueue_struct *arg1, struct work_struct *arg2) { // Typedef type // Real type: _Bool // Simple type return __VERIFIER_nondet_bool(); } // Function: set_normalized_timespec // with type: void set_normalized_timespec(struct timespec *, time_t , s64 ) // with return type: void void set_normalized_timespec(struct timespec *arg0, time_t arg1, s64 arg2) { // Void type return; } // 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: strncmp // Function: tasklet_init // with type: void tasklet_init(struct tasklet_struct *, void (*)(unsigned long), unsigned long) // with return type: void void tasklet_init(struct tasklet_struct *arg0, void (*arg1)(unsigned long), unsigned long arg2) { // Void type return; } // Function: tasklet_kill // with type: void tasklet_kill(struct tasklet_struct *) // with return type: void void tasklet_kill(struct tasklet_struct *arg0) { // Void type return; } // Function: unregister_chrdev_region // with type: void unregister_chrdev_region(dev_t , unsigned int) // with return type: void void unregister_chrdev_region(dev_t arg0, unsigned int arg1) { // Void type return; } // Function: usb_add_hcd // with type: int usb_add_hcd(struct usb_hcd *, unsigned int, unsigned long) // with return type: int int __VERIFIER_nondet_int(void); int usb_add_hcd(struct usb_hcd *arg0, unsigned int arg1, unsigned long arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: usb_create_hcd // with type: struct usb_hcd *usb_create_hcd(const struct hc_driver *, struct device *, const char *) // with return type: (struct usb_hcd)* struct usb_hcd *usb_create_hcd(const struct hc_driver *arg0, struct device *arg1, const char *arg2) { // Pointer type return ldv_malloc(sizeof(struct usb_hcd)); } // Function: usb_disabled // with type: int usb_disabled() // with return type: int int __VERIFIER_nondet_int(void); int usb_disabled() { // Simple type return __VERIFIER_nondet_int(); } // Function: usb_get_hcd // with type: struct usb_hcd *usb_get_hcd(struct usb_hcd *) // with return type: (struct usb_hcd)* struct usb_hcd *usb_get_hcd(struct usb_hcd *arg0) { // Pointer type return ldv_malloc(sizeof(struct usb_hcd)); } // Function: usb_hcd_check_unlink_urb // with type: int usb_hcd_check_unlink_urb(struct usb_hcd *, struct urb *, int) // with return type: int int __VERIFIER_nondet_int(void); int usb_hcd_check_unlink_urb(struct usb_hcd *arg0, struct urb *arg1, int arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: usb_hcd_giveback_urb // with type: void usb_hcd_giveback_urb(struct usb_hcd *, struct urb *, int) // with return type: void void usb_hcd_giveback_urb(struct usb_hcd *arg0, struct urb *arg1, int arg2) { // Void type return; } // Function: usb_hcd_link_urb_to_ep // with type: int usb_hcd_link_urb_to_ep(struct usb_hcd *, struct urb *) // with return type: int int __VERIFIER_nondet_int(void); int usb_hcd_link_urb_to_ep(struct usb_hcd *arg0, struct urb *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: usb_hcd_poll_rh_status // with type: void usb_hcd_poll_rh_status(struct usb_hcd *) // with return type: void void usb_hcd_poll_rh_status(struct usb_hcd *arg0) { // Void type return; } // Function: usb_hcd_resume_root_hub // with type: void usb_hcd_resume_root_hub(struct usb_hcd *) // with return type: void void usb_hcd_resume_root_hub(struct usb_hcd *arg0) { // Void type return; } // Function: usb_hcd_unlink_urb_from_ep // with type: void usb_hcd_unlink_urb_from_ep(struct usb_hcd *, struct urb *) // with return type: void void usb_hcd_unlink_urb_from_ep(struct usb_hcd *arg0, struct urb *arg1) { // Void type return; } // Function: usb_put_hcd // with type: void usb_put_hcd(struct usb_hcd *) // with return type: void void usb_put_hcd(struct usb_hcd *arg0) { // Void type return; } // Function: usb_remove_hcd // with type: void usb_remove_hcd(struct usb_hcd *) // with return type: void void usb_remove_hcd(struct usb_hcd *arg0) { // Void type return; }