Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6502

Using Linux __init functions during runtime

$
0
0

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?


Viewing all articles
Browse latest Browse all 6502

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>