커널 해킹 팁 페이지 ====== momory leak detection ====== CONFIG_DEBUG_KMEMLEAK # mount -t debugfs nodev /sys/kernel/debug/ # cat /sys/kernel/debug/kmemleak # echo scan > /sys/kernel/debug/kmemleak # echo clear > /sys/kernel/debug/kmemleak ====== tips ====== 모듈 init을 순차적으로 하는 방법 /* * if this is compiled into the kernel, we need to ensure that the * class is registered before users of the class try to register lcd's */ postcore_initcall(lcd_class_init); *[[http://elinux.org/Kgdb|kdbg]]