// Skip function: __VERIFIER_error // Skip function: __VERIFIER_nondet_int // Function: __const_udelay // with type: void __const_udelay(unsigned long xloops) // with return type: void void __const_udelay(unsigned long arg0) { // Void type return; } extern _Bool __VERIFIER_nondet_bool(void) ; extern void *malloc(size_t) ; void *ldv_malloc(size_t size ) { if(__VERIFIER_nondet_bool()) return 0; return malloc(size); } // Function: __kmalloc // with type: void *__kmalloc(size_t size, gfp_t flags) // with return type: (void)* void *__kmalloc(size_t arg0, gfp_t arg1) { // Pointer type return ldv_malloc(arg0); } // Function: __list_add // with type: void __list_add(struct list_head *new, struct list_head *prev, struct list_head *next) // 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 *entry) // with return type: void void __list_del_entry(struct list_head *arg0) { // Void type return; } // Function: __pci_register_driver // with type: int __pci_register_driver(struct pci_driver *, struct module *, const char *mod_name) // with return type: int int __VERIFIER_nondet_int(void); int __pci_register_driver(struct pci_driver *arg0, struct module *arg1, const char *arg2) { // Simple type return __VERIFIER_nondet_int(); } // 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: __release_region // with type: void __release_region(struct resource *, resource_size_t , resource_size_t ) // with return type: void void __release_region(struct resource *arg0, resource_size_t arg1, resource_size_t arg2) { // Void type return; } // Function: __request_region // with type: struct resource *__request_region(struct resource *, resource_size_t start, resource_size_t n, const char *name, int flags) // with return type: (struct resource)* struct resource *__request_region(struct resource *arg0, resource_size_t arg1, resource_size_t arg2, const char *arg3, int arg4) { // Pointer type return ldv_malloc(sizeof(struct resource)); } // Function: _raw_spin_lock_irq // with type: void _raw_spin_lock_irq(raw_spinlock_t *lock) // 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 *lock) // 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_irq // with type: void _raw_spin_unlock_irq(raw_spinlock_t *lock) // 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 *lock, unsigned long flags) // 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 *timer) // with return type: void void add_timer(struct timer_list *arg0) { // Void type return; } // Function: debug_dma_map_page // with type: void debug_dma_map_page(struct device *dev, struct page *page, size_t offset, size_t size, int direction, dma_addr_t dma_addr, bool map_single) // 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_sg_for_cpu // with type: void debug_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, int direction) // with return type: void void debug_dma_sync_sg_for_cpu(struct device *arg0, struct scatterlist *arg1, int arg2, int arg3) { // Void type return; } // Function: debug_dma_sync_single_for_device // with type: void debug_dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, int direction) // 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 *dev, dma_addr_t addr, size_t size, int direction, bool map_single) // 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 *timer) // with return type: int int __VERIFIER_nondet_int(void); int del_timer(struct timer_list *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: dev_get_drvdata // with type: void *dev_get_drvdata(const struct device *dev) // with return type: (void)* void *dev_get_drvdata(const struct device *arg0) { // Pointer type return ldv_malloc(0UL); } // Function: dev_set_drvdata // with type: int dev_set_drvdata(struct device *dev, void *data) // with return type: int int __VERIFIER_nondet_int(void); int dev_set_drvdata(struct device *arg0, void *arg1) { // Simple type return __VERIFIER_nondet_int(); } // 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: init_timer_key // with type: void init_timer_key(struct timer_list *timer, const char *name, struct lock_class_key *key) // with return type: void void init_timer_key(struct timer_list *arg0, const char *arg1, struct lock_class_key *arg2) { // Void type return; } // Skip function: kfree // Function: ldv_check_return_value // with type: void ldv_check_return_value(int res) // with return type: void void ldv_check_return_value(int arg0) { // Void type return; } // Function: ldv_initialize // with type: void ldv_initialize() // with return type: void void ldv_initialize() { // Void type return; } // Function: ldv_undefined_pointer // with type: void *ldv_undefined_pointer() // with return type: (void)* void *ldv_undefined_pointer() { // Pointer type return ldv_malloc(0UL); } // Function: list_del // with type: void list_del(struct list_head *entry) // with return type: void void list_del(struct list_head *arg0) { // Void type return; } // Skip function: memcpy // Skip function: memset // Function: pci_bus_read_config_word // with type: int pci_bus_read_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 *val) // 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_disable_device // with type: void pci_disable_device(struct pci_dev *dev) // with return type: void void pci_disable_device(struct pci_dev *arg0) { // Void type return; } // Function: pci_enable_device // with type: int pci_enable_device(struct pci_dev *dev) // with return type: int int __VERIFIER_nondet_int(void); int pci_enable_device(struct pci_dev *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: pci_set_master // with type: void pci_set_master(struct pci_dev *dev) // with return type: void void pci_set_master(struct pci_dev *arg0) { // Void type return; } // Function: pci_unregister_driver // with type: void pci_unregister_driver(struct pci_driver *dev) // with return type: void void pci_unregister_driver(struct pci_driver *arg0) { // Void type return; } // Function: printk // with type: int printk(const char *fmt, ...) // 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 irq, irqreturn_t (*handler)(int, void *), irqreturn_t (*thread_fn)(int, void *), unsigned long flags, const char *name, void *dev) // 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: scsi_add_host_with_dma // with type: int scsi_add_host_with_dma(struct Scsi_Host *, struct device *, struct device *) // with return type: int int __VERIFIER_nondet_int(void); int scsi_add_host_with_dma(struct Scsi_Host *arg0, struct device *arg1, struct device *arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: scsi_cmd_get_serial // with type: void scsi_cmd_get_serial(struct Scsi_Host *, struct scsi_cmnd *) // with return type: void void scsi_cmd_get_serial(struct Scsi_Host *arg0, struct scsi_cmnd *arg1) { // Void type return; } // Function: scsi_dma_map // with type: int scsi_dma_map(struct scsi_cmnd *cmd) // with return type: int int __VERIFIER_nondet_int(void); int scsi_dma_map(struct scsi_cmnd *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: scsi_dma_unmap // with type: void scsi_dma_unmap(struct scsi_cmnd *cmd) // with return type: void void scsi_dma_unmap(struct scsi_cmnd *arg0) { // Void type return; } // Function: scsi_host_alloc // with type: struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *, int) // with return type: (struct Scsi_Host)* struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *arg0, int arg1) { // Pointer type return ldv_malloc(sizeof(struct Scsi_Host)); } // Function: scsi_host_put // with type: void scsi_host_put(struct Scsi_Host *t) // with return type: void void scsi_host_put(struct Scsi_Host *arg0) { // Void type return; } // Function: scsi_kmap_atomic_sg // with type: void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count, size_t *offset, size_t *len) // with return type: (void)* void *scsi_kmap_atomic_sg(struct scatterlist *arg0, int arg1, size_t *arg2, size_t *arg3) { // Pointer type return ldv_malloc(0UL); } // Function: scsi_kunmap_atomic_sg // with type: void scsi_kunmap_atomic_sg(void *virt) // with return type: void void scsi_kunmap_atomic_sg(void *arg0) { // Void type return; } // Function: scsi_remove_host // with type: void scsi_remove_host(struct Scsi_Host *) // with return type: void void scsi_remove_host(struct Scsi_Host *arg0) { // Void type return; } // Function: scsi_scan_host // with type: void scsi_scan_host(struct Scsi_Host *) // with return type: void void scsi_scan_host(struct Scsi_Host *arg0) { // Void type return; } // Function: scsicam_bios_param // with type: int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) // with return type: int int __VERIFIER_nondet_int(void); int scsicam_bios_param(struct block_device *arg0, sector_t arg1, int *arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: sg_next // with type: struct scatterlist *sg_next(struct scatterlist *) // with return type: (struct scatterlist)* struct scatterlist *sg_next(struct scatterlist *arg0) { // Pointer type return ldv_malloc(sizeof(struct scatterlist)); } // Skip function: sprintf // 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: warn_slowpath_null // with type: void warn_slowpath_null(const char *file, const int line) // with return type: void void warn_slowpath_null(const char *arg0, const int arg1) { // Void type return; }