Kernel function pointer with a lot, when the debug function can directly print out a corresponding function pointer will be very convenient.
Printing raw pointer (raw pointer) may be used in addition to outside the printing pointer can also print additional information% p,% p
% PF can print function names and function pointer offset address,% pf print only the name of the function pointer, the offset address is not printed.
Such as
printk("%pf %pF\n", ptr, ptr) will print:
module_start module_start+0x0/0x62 [hello]
But in order to support this functionality you need to turn CONFIG_KALLSYMS options