Hi Chao,In my point of view, it should not return 0. Because calling kthread_run()to create a kernel thread may fails, and err is assigned a value.Thanks,