I am in need of calling a certain Linux function from my userland program. I've decided to use custom syscall in order to call needed kernel function. However, said function has __init meaning it gets cleared out of memory after booting. Due to that I keep getting "Bad RIP" kernel panic when invoking my syscall. I have tried manually removing __init but said function has plenty of helper functions that are also __init. I was wondering is there some way to ask kernel not to clear out __init functions?
↧