Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using try_module_get(THIS_MODULE) #52

Open
jserv opened this issue Aug 9, 2021 · 1 comment
Open

Avoid using try_module_get(THIS_MODULE) #52

jserv opened this issue Aug 9, 2021 · 1 comment

Comments

@jserv
Copy link
Contributor

jserv commented Aug 9, 2021

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

@ashevche
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants