kernel space → user space

作者: hardware (哈味)   2015-06-13 16:13:05
我在kernel中,多加了一個function,
然後重新編譯kernel,插入kernel module後,
利用 printk 可以在 /var/log/message 印中來,
但今天我在 user space C++裡面,需要這個變數,
要如何在 C++抓到這個值?
thx~~
作者: final01 (牛頓運動定律)   2015-06-13 16:32:00
proc& sysfs研究一下...
作者: tjjh89017 (伊達政宗)   2015-06-14 00:01:00
加個syscall上去也可以XD
作者: bendog (bendog)   2015-06-16 01:24:00
module_param +/proc
作者: cobrasgo (人魚線變成鮪魚線,超帥)   2015-07-04 15:38:00
我總覺得這個需求怪怪的,應該先把需求講清楚
作者: Push5F (帳號已賣)   2015-07-07 18:36:00
關鍵字: 天攏

Links booklink

Contact Us: admin [ a t ] ucptt.com