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

Question: are kernel modules with 'dot' legal? #9

Open
gstavi opened this issue Dec 1, 2024 · 0 comments
Open

Question: are kernel modules with 'dot' legal? #9

gstavi opened this issue Dec 1, 2024 · 0 comments

Comments

@gstavi
Copy link

gstavi commented Dec 1, 2024

Due to development constraints I tried to work with 2 drivers for my SRIOV device:
mydev.pf.ko (for PF) and mydev.ko (for VF)

For the PF driver:
Insmod did not report an error.
When using lsmod, I encountered an error of:
libkmod: kmod_module_get_holders: could not open '/sys/module/mydev/holders'

I believe this is due to modname_normalize cutting module basename at first dot rather than last dot.

If this kind of naming is forbidden then insmod should fail as well. It would be nice if Linux build system will warn about it.
If this naming is allowed then lsmod better be fixed.

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

1 participant