lkmpg icon indicating copy to clipboard operation
lkmpg copied to clipboard

Avoid using `try_module_get(THIS_MODULE)`

Open jserv opened this issue 4 years ago • 1 comments

There are various deprecated functions/macros used in LKMPG. For example, try_module_get(THIS_MODULE) is regarded as unsafe.

See https://stackoverflow.com/questions/1741415/linux-kernel-modules-when-to-use-try-module-get-module-put

jserv avatar Aug 09 '21 18:08 jserv

I believe the book should state for which kernel versions it's applicable.

ashevche avatar Feb 21 '23 14:02 ashevche