// Skip function: __VERIFIER_error // Skip function: __VERIFIER_nondet_int // Function: __init_waitqueue_head // with type: void __init_waitqueue_head(wait_queue_head_t *q, struct lock_class_key *) // with return type: void void __init_waitqueue_head(wait_queue_head_t *arg0, struct lock_class_key *arg1) { // 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: __wake_up // with type: void __wake_up(wait_queue_head_t *q, unsigned int mode, int nr, void *key) // with return type: void void __wake_up(wait_queue_head_t *arg0, unsigned int arg1, int arg2, void *arg3) { // Void type return; } // Function: add_wait_queue // with type: void add_wait_queue(wait_queue_head_t *q, wait_queue_t *wait) // with return type: void void add_wait_queue(wait_queue_head_t *arg0, wait_queue_t *arg1) { // Void type return; } // 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: i2c_del_driver // with type: void i2c_del_driver(struct i2c_driver *) // with return type: void void i2c_del_driver(struct i2c_driver *arg0) { // Void type return; } // Function: i2c_master_send // with type: int i2c_master_send(const struct i2c_client *client, const char *buf, int count) // with return type: int int __VERIFIER_nondet_int(void); int i2c_master_send(const struct i2c_client *arg0, const char *arg1, int arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: i2c_register_driver // with type: int i2c_register_driver(struct module *, struct i2c_driver *) // with return type: int int __VERIFIER_nondet_int(void); int i2c_register_driver(struct module *arg0, struct i2c_driver *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: i2c_transfer // with type: int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) // with return type: int int __VERIFIER_nondet_int(void); int i2c_transfer(struct i2c_adapter *arg0, struct i2c_msg *arg1, int arg2) { // Simple type return __VERIFIER_nondet_int(); } // Skip function: kfree // Function: kthread_create_on_node // with type: struct task_struct *kthread_create_on_node(int (*threadfn)(void *data), void *data, int node, const char *namefmt, ...) // with return type: (struct task_struct)* struct task_struct *kthread_create_on_node(int (*arg0)(void *data), void *arg1, int arg2, const char *arg3, ...) { // Pointer type return ldv_malloc(sizeof(struct task_struct)); } // Function: kthread_should_stop // with type: int kthread_should_stop() // with return type: int int __VERIFIER_nondet_int(void); int kthread_should_stop() { // Simple type return __VERIFIER_nondet_int(); } // Function: kthread_stop // with type: int kthread_stop(struct task_struct *k) // with return type: int int __VERIFIER_nondet_int(void); int kthread_stop(struct task_struct *arg0) { // Simple type return __VERIFIER_nondet_int(); } // 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: msecs_to_jiffies // with type: unsigned long int msecs_to_jiffies(const unsigned int m) // with return type: unsigned long int unsigned long __VERIFIER_nondet_ulong(void); unsigned long int msecs_to_jiffies(const unsigned int arg0) { // Simple type return __VERIFIER_nondet_ulong(); } // Function: mutex_lock_nested // with type: void mutex_lock_nested(struct mutex *lock, unsigned int subclass) // with return type: void void mutex_lock_nested(struct mutex *arg0, unsigned int arg1) { // Void type return; } // Function: mutex_unlock // with type: void mutex_unlock(struct mutex *lock) // with return type: void void mutex_unlock(struct mutex *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: refrigerator // with type: void refrigerator() // with return type: void void refrigerator() { // Void type return; } // Function: remove_wait_queue // with type: void remove_wait_queue(wait_queue_head_t *q, wait_queue_t *wait) // with return type: void void remove_wait_queue(wait_queue_head_t *arg0, wait_queue_t *arg1) { // Void type return; } // Function: schedule // with type: void schedule() // with return type: void void schedule() { // Void type return; } // Function: schedule_timeout_interruptible // with type: long int schedule_timeout_interruptible(long timeout) // with return type: long int long __VERIFIER_nondet_long(void); long int schedule_timeout_interruptible(long arg0) { // Simple type return __VERIFIER_nondet_long(); } // Skip function: snprintf // Function: strlcpy // with type: size_t strlcpy(char *, const char *, size_t ) // with return type: size_t unsigned long __VERIFIER_nondet_ulong(void); size_t strlcpy(char *arg0, const char *arg1, size_t arg2) { // Typedef type // Real type: __kernel_size_t // Typedef type // Real type: unsigned long // Simple type return __VERIFIER_nondet_ulong(); } // Function: v4l2_chip_ident_i2c_client // with type: int v4l2_chip_ident_i2c_client(struct i2c_client *c, struct v4l2_dbg_chip_ident *chip, u32 ident, u32 revision) // with return type: int int __VERIFIER_nondet_int(void); int v4l2_chip_ident_i2c_client(struct i2c_client *arg0, struct v4l2_dbg_chip_ident *arg1, u32 arg2, u32 arg3) { // Simple type return __VERIFIER_nondet_int(); } // Function: v4l2_ctrl_cluster // with type: void v4l2_ctrl_cluster(unsigned int ncontrols, struct v4l2_ctrl **controls) // with return type: void void v4l2_ctrl_cluster(unsigned int arg0, struct v4l2_ctrl **arg1) { // Void type return; } // Function: v4l2_ctrl_handler_free // with type: void v4l2_ctrl_handler_free(struct v4l2_ctrl_handler *hdl) // with return type: void void v4l2_ctrl_handler_free(struct v4l2_ctrl_handler *arg0) { // Void type return; } // Function: v4l2_ctrl_handler_init // with type: int v4l2_ctrl_handler_init(struct v4l2_ctrl_handler *hdl, unsigned int nr_of_controls_hint) // with return type: int int __VERIFIER_nondet_int(void); int v4l2_ctrl_handler_init(struct v4l2_ctrl_handler *arg0, unsigned int arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: v4l2_ctrl_handler_log_status // with type: void v4l2_ctrl_handler_log_status(struct v4l2_ctrl_handler *hdl, const char *prefix) // with return type: void void v4l2_ctrl_handler_log_status(struct v4l2_ctrl_handler *arg0, const char *arg1) { // Void type return; } // Function: v4l2_ctrl_handler_setup // with type: int v4l2_ctrl_handler_setup(struct v4l2_ctrl_handler *hdl) // with return type: int int __VERIFIER_nondet_int(void); int v4l2_ctrl_handler_setup(struct v4l2_ctrl_handler *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: v4l2_ctrl_new_std // with type: struct v4l2_ctrl *v4l2_ctrl_new_std(struct v4l2_ctrl_handler *hdl, const struct v4l2_ctrl_ops *ops, u32 id, s32 min, s32 max, u32 step, s32 def) // with return type: (struct v4l2_ctrl)* struct v4l2_ctrl *v4l2_ctrl_new_std(struct v4l2_ctrl_handler *arg0, const struct v4l2_ctrl_ops *arg1, u32 arg2, s32 arg3, s32 arg4, u32 arg5, s32 arg6) { // Pointer type return ldv_malloc(sizeof(struct v4l2_ctrl)); } // Function: v4l2_device_unregister_subdev // with type: void v4l2_device_unregister_subdev(struct v4l2_subdev *sd) // with return type: void void v4l2_device_unregister_subdev(struct v4l2_subdev *arg0) { // Void type return; } // Function: v4l2_i2c_subdev_init // with type: void v4l2_i2c_subdev_init(struct v4l2_subdev *sd, struct i2c_client *client, const struct v4l2_subdev_ops *ops) // with return type: void void v4l2_i2c_subdev_init(struct v4l2_subdev *arg0, struct i2c_client *arg1, const struct v4l2_subdev_ops *arg2) { // Void type return; } // Function: wake_up_process // with type: int wake_up_process(struct task_struct *tsk) // with return type: int int __VERIFIER_nondet_int(void); int wake_up_process(struct task_struct *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: default_wake_function // with type: int default_wake_function(wait_queue_t *, unsigned int, int, void *) // with return type: int int __VERIFIER_nondet_int(void); int default_wake_function(wait_queue_t *arg0, unsigned int arg1, int arg2, void *arg3) { // Simple type return __VERIFIER_nondet_int(); }