martinezjavier / ldd3

Linux Device Drivers 3 examples updated to work in recent kernels
http://examples.oreilly.com/9780596005900/
Other
2.35k stars 905 forks source link

jit: use wrapper function proc_create #79

Closed Pablito2020 closed 1 year ago

Pablito2020 commented 1 year ago

The book is outdated and only shows the "create_proc_entry" function which was deprecated since 3.10. Obviously this project had to adapt the old code to the newer API's, and used the proc_create_data for creating the /proc/{name} entry. I found out that, as a reader, I would like to see the less "verbose" way to do things, so, if the kernel adds the poc_create function (which is just a wrapper for proc_create_data), I would like to use it instead.