Hello Jitendra Pradhan,
My main objective is how to convert the line” dLsw =
(double)strTv.tv_usec / 1000000 * 65536 * 65536” , so that I will get
the accurate NTPTime.
I will appreciate if I get help on this regard. Please provide some
info on it.
I know that floating point is not supported in kernel mode, but i
believe that's mostly because of x86 and it's special instruction set
for floating point operations (Kernel developers didn't want to make use
of the math-co-processor in kernel..., somebody please correct me, if
I'm wrong).
So I would like to ask the question, why do you need float / double in
your kernel module? even when float value is a must, you can also
convert the strTv.tv_usec value later, by a user space program that uses
your kernel module. Just declare your variable as int and remove the
double cast ;)
Maybe this answer is to newbieish, but that's how I do it...
Regards!
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ