How to wait for a linux kernel thread (kthread)to exit?

后端 未结 4 1940
再見小時候
再見小時候 2021-01-03 07:36

I have just started programing on Linux kernel threads. I have a problem which I would like to share with you guys. My code is:



        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 08:16

    YOu can also go for completions. The linux mass storage driver http://lxr.free-electrons.com/source/drivers/usb/storage/usb.c has a very good implementation of kthreads. Good Luck.

提交回复
热议问题