I think the os can do realtime calculations. But kernal????, as of my knowledge kernal is a bridge that connects the hardware with the software( os here) and dnt think that kernal itself can do calculations, but kernal can adjust the o/p , i/p parameters to the os( for eg. Android kernal parameters can be adjusted by init.d or local.prop scripts. ) . But they are executed in os startup, and i think they are constant through out the operating time or untill next boot. So i think either of these scripts can be used to adjust some thing, but not in real time but in each boot.
So the idea is read the values via some app, use the app to generate the script with desired value, inject it to the system folder, and it will be executed on next startup.
Still i dont get the point, why do u want the kernal itself to do the things.
HD2 HYPERDROID EXTREME EDITION V6.0.1 @ FIKERT KERNAL.
I AM THE PROUD OWNER OF THE COOLEST ANDROID DEVICE ON EARTH... YAP.. U NAME IT.. THE HD2
PLEASE READ THIS B4 U ASK QUESTIONShttp://forum.xda-developers.com/showpost.php?p=18289016&postcount=1
HYPERDROID TEAM MEMBER...