I am working in Linux. I have written a kernel module that creates a file called /proc/my_clock.
I need to write an integer returned from function, gettimeofday(), to /proc/my_clock using c code. I have a couple of ideas but I am not sure which would be better.
idea1 - use a file pointer to write a buffer containing the integer(s)
idea2 - use sprintf of fprintf to write a buffer containing the integer(s)
No other ideas at this point. Any info would help...