-
Notifications
You must be signed in to change notification settings - Fork 23
driver: __init と __exit を指定
#34
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
driver: __init と __exit を指定
#34
Conversation
モジュールの初期化および終了関数にそれぞれ `__init` と `__exit` を指定 した.これらマクロを使用していなくても大きな問題は発生しないと考えられ るが,一般的な作法として追加した. これらマクロの説明は以下を参照: * https://tldp.org/LDP/lkmpg/2.4/html/x281.htm * https://fastbitlab.com/linux-device-driver-programming-lecture-18-__init-and-__exit-macros/ * https://shnoh171.github.io/linux%20kernel/2019/09/01/linux-kernel-module-basics.html
Walkthrough
Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
ありがとうございます! |
モジュールの初期化および終了関数にそれぞれ
__initと__exitを指定した.これらマクロを使用していなくても大きな問題は発生しないと考えられるが,一般的な作法として追加した.これらマクロの説明は以下を参照:
ビルド確認
archlinxイメージを使用以下を実行
TODO
ビルド時に以下のメッセージが表示される.
以下の修正で
CLEANはdkmsから削除された:Summary by CodeRabbit