// Skip function: __VERIFIER_error // Skip function: __VERIFIER_nondet_int // Function: __alloc_skb // with type: struct sk_buff *__alloc_skb(unsigned int, gfp_t , int, int) // with return type: (struct sk_buff)* struct sk_buff *__alloc_skb(unsigned int arg0, gfp_t arg1, int arg2, int arg3) { // Pointer type struct sk_buff *skb = ldv_malloc(sizeof(struct sk_buff)); if(skb) { skb->head = ldv_malloc(arg0); skb->data = skb->head; skb->tail = 0; } return skb; } // 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: __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: __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: 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: allow_signal // with type: int allow_signal(int) // with return type: int int __VERIFIER_nondet_int(void); int allow_signal(int arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: cancel_work_sync // with type: bool cancel_work_sync(struct work_struct *) // with return type: bool bool __VERIFIER_nondet_bool(void); bool cancel_work_sync(struct work_struct *arg0) { // Typedef type // Real type: _Bool // Simple type return __VERIFIER_nondet_bool(); } // Function: complete // with type: void complete(struct completion *) // with return type: void void complete(struct completion *arg0) { // 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: 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: init_timer_key // with type: void init_timer_key(struct timer_list *, unsigned int, const char *, struct lock_class_key *) // with return type: void void init_timer_key(struct timer_list *arg0, unsigned int arg1, const char *arg2, struct lock_class_key *arg3) { // Void type return; } // Function: kernel_recvmsg // with type: int kernel_recvmsg(struct socket *, struct msghdr *, struct kvec *, size_t , size_t , int) // with return type: int int __VERIFIER_nondet_int(void); int kernel_recvmsg(struct socket *arg0, struct msghdr *arg1, struct kvec *arg2, size_t arg3, size_t arg4, int arg5) { // Simple type return __VERIFIER_nondet_int(); } // Function: kernel_sendmsg // with type: int kernel_sendmsg(struct socket *, struct msghdr *, struct kvec *, size_t , size_t ) // with return type: int int __VERIFIER_nondet_int(void); int kernel_sendmsg(struct socket *arg0, struct msghdr *arg1, struct kvec *arg2, size_t arg3, size_t arg4) { // Simple type return __VERIFIER_nondet_int(); } // Skip function: kfree // Function: kthread_create_on_node // with type: struct task_struct *kthread_create_on_node(int (*)(void *), void *, int, const char *, ...) // with return type: (struct task_struct)* struct task_struct *kthread_create_on_node(int (*arg0)(void *), void *arg1, int arg2, const char *arg3, ...) { // Pointer type return ldv_malloc(sizeof(struct task_struct)); } // 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; } // Function: mISDN_freebchannel // with type: void mISDN_freebchannel(struct bchannel *) // with return type: void void mISDN_freebchannel(struct bchannel *arg0) { // Void type return; } // Function: mISDN_freedchannel // with type: int mISDN_freedchannel(struct dchannel *) // with return type: int int __VERIFIER_nondet_int(void); int mISDN_freedchannel(struct dchannel *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: mISDN_initbchannel // with type: int mISDN_initbchannel(struct bchannel *, unsigned short, unsigned short) // with return type: int int __VERIFIER_nondet_int(void); int mISDN_initbchannel(struct bchannel *arg0, unsigned short arg1, unsigned short arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: mISDN_initdchannel // with type: int mISDN_initdchannel(struct dchannel *, int, void *) // with return type: int int __VERIFIER_nondet_int(void); int mISDN_initdchannel(struct dchannel *arg0, int arg1, void *arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: mISDN_register_device // with type: int mISDN_register_device(struct mISDNdevice *, struct device *, char *) // with return type: int int __VERIFIER_nondet_int(void); int mISDN_register_device(struct mISDNdevice *arg0, struct device *arg1, char *arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: mISDN_unregister_device // with type: void mISDN_unregister_device(struct mISDNdevice *) // with return type: void void mISDN_unregister_device(struct mISDNdevice *arg0) { // Void type return; } // Skip function: malloc // Function: memchr_inv // with type: void *memchr_inv(const void *, int, size_t ) // with return type: (void)* void *memchr_inv(const void *arg0, int arg1, size_t arg2) { // Pointer type return ldv_malloc(0UL); } // Function: module_put // with type: void module_put(struct module *) // with return type: void void module_put(struct module *arg0) { // Void type return; } // Function: mutex_lock // with type: void mutex_lock(struct mutex *) // with return type: void void mutex_lock(struct mutex *arg0) { // Void type return; } // Function: mutex_trylock // with type: int mutex_trylock(struct mutex *) // with return type: int int __VERIFIER_nondet_int(void); int mutex_trylock(struct mutex *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: mutex_unlock // with type: void mutex_unlock(struct mutex *) // with return type: void void mutex_unlock(struct mutex *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: queue_ch_frame // with type: void queue_ch_frame(struct mISDNchannel *, u_int , int, struct sk_buff *) // with return type: void void queue_ch_frame(struct mISDNchannel *arg0, u_int arg1, int arg2, struct sk_buff *arg3) { // Void type return; } // Function: recv_Dchannel // with type: void recv_Dchannel(struct dchannel *) // with return type: void void recv_Dchannel(struct dchannel *arg0) { // Void type return; } // Function: schedule_timeout // with type: long int schedule_timeout(long) // with return type: long int long __VERIFIER_nondet_long(void); long int schedule_timeout(long arg0) { // Simple type return __VERIFIER_nondet_long(); } // Function: schedule_work // with type: bool schedule_work(struct work_struct *) // with return type: bool bool __VERIFIER_nondet_bool(void); bool schedule_work(struct work_struct *arg0) { // Typedef type // Real type: _Bool // Simple type return __VERIFIER_nondet_bool(); } // Function: send_sig // with type: int send_sig(int, struct task_struct *, int) // with return type: int int __VERIFIER_nondet_int(void); int send_sig(int arg0, struct task_struct *arg1, int arg2) { // 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: skb_trim // with type: void skb_trim(struct sk_buff *, unsigned int) // with return type: void void skb_trim(struct sk_buff *arg0, unsigned int arg1) { // Void type return; } // Function: sock_create // with type: int sock_create(int, int, int, struct socket **) // with return type: int int __VERIFIER_nondet_int(void); int sock_create(int arg0, int arg1, int arg2, struct socket **arg3) { // Simple type return __VERIFIER_nondet_int(); } // Function: sock_release // with type: void sock_release(struct socket *) // with return type: void void sock_release(struct socket *arg0) { // Void type return; } // Skip function: sprintf // Function: try_module_get // with type: bool try_module_get(struct module *) // with return type: bool bool __VERIFIER_nondet_bool(void); bool try_module_get(struct module *arg0) { // Typedef type // Real type: _Bool // Simple type return __VERIFIER_nondet_bool(); } // Function: vfree // with type: void vfree(const void *) // with return type: void void vfree(const void *arg0) { // Void type return; } // Function: vzalloc // with type: void *vzalloc(unsigned long) // with return type: (void)* void *vzalloc(unsigned long arg0) { // Pointer type return ldv_malloc(0UL); } // Function: wait_for_completion // with type: void wait_for_completion(struct completion *) // with return type: void void wait_for_completion(struct completion *arg0) { // Void type return; } // Function: wake_up_process // with type: int wake_up_process(struct task_struct *) // with return type: int int __VERIFIER_nondet_int(void); int wake_up_process(struct task_struct *arg0) { // Simple type return __VERIFIER_nondet_int(); }