Good question. I don't know for sure, but in the init function you need to allocate memory (which can fail if there is no memory left) or you have to register something (which can also fail). But in the cleanup function, you just freeing memory or unregistering stuff which already was registered successfully. So, normally nothing can go wrong here. The userspace function for freeing allocated memory also doesn't have a return function.
Hello, I have just started following your videos. In what order should I be watching the videos? Video 2 in the series labeled as Device Numbers and Files started from editing an old file which I have not seen in the first video. Thank you for uploading useful content.
Currently I am redoing my series. So there will be some conflicts with the numbering. If you have time, just wait for newer videos to come, if not. check out my older once.
I got the message "hello: module verification failed: signature and/or required key missing - tainting kernel", from dmesg -W. I think the reason is that I use VPS with Linux. But anyway it would be nice to see how to build a kernel model with the required signature/key.
Well, it seems you are using secure boot. There you can only load signed modules. I don't know how to sign the module. Maybe turning secure boot off would help or you can run the code on a Virtual machine or other computer without secure boot.
Thanks for redoing the series 😊
Your tutorials insperated me to get started wit LDD and to read the LDD3 book, thank you 😊
You are going strong!! Thank you so much for this series !
cd !:3 🤯
Thanks for this.
I need this to refresh my memory
You're great man, thanks for these videos!!!
Lov eit!!!!!!!!!!!!!!!
Great video! Going to dig up my old Pi and try it myself
Just wondering, why no return value in my_exit()?
Good question. I don't know for sure, but in the init function you need to allocate memory (which can fail if there is no memory left) or you have to register something (which can also fail). But in the cleanup function, you just freeing memory or unregistering stuff which already was registered successfully. So, normally nothing can go wrong here. The userspace function for freeing allocated memory also doesn't have a return function.
Hello, I have just started following your videos. In what order should I be watching the videos? Video 2 in the series labeled as Device Numbers and Files started from editing an old file which I have not seen in the first video. Thank you for uploading useful content.
Currently I am redoing my series. So there will be some conflicts with the numbering. If you have time, just wait for newer videos to come, if not. check out my older once.
I got the message "hello: module verification failed: signature and/or required key missing - tainting kernel", from dmesg -W. I think the reason is that I use VPS with Linux. But anyway it would be nice to see how to build a kernel model with the required signature/key.
Well, it seems you are using secure boot. There you can only load signed modules. I don't know how to sign the module. Maybe turning secure boot off would help or you can run the code on a Virtual machine or other computer without secure boot.
@@johannes4gnu_linux96, actually the module was executed successfully, just a warning