差異處
這裏顯示兩個版本的差異處。
cpp:linux_kernel:show_physical_address [2017/09/30 18:06] tony [Introduction] |
cpp:linux_kernel:show_physical_address [2023/06/25 09:48] |
||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== Show Physical Memory Address of the kernel module ====== | ||
- | ===== Introduction ===== | ||
- | 我希望透過寫一個kernel module,做以下事情: | ||
- | - 宣告一個global variable。 | ||
- | - init時,初始此variable。 | ||
- | - 執行file_operations時,會打印出此變數的實體記憶體位置。 | ||
- | - exit時,釋放此variable。 | ||
- | ===== How to? ===== | ||
- | |||
- | ===== Reference ===== | ||
- | * [[https://wwssllabcd.github.io/blog/2012/11/13/how-to-make-linux-module/|一個簡單的 Linux Kernel Module]] | ||
- | |||