-   Linux - Newbie (
-   -   time function in kernel space (

Gourab Das 01-26-2010 02:47 AM

time function in kernel space
I manage to use the function "time" and "localtime" in gcc.But while I used it in a module in kernel space the above 2 functions are giving error.Even in kernel space time.h header file is not identified.Can anyone pls. tell the similar time function which can be used in kernel space

cmnorton 01-26-2010 02:27 PM

Kernel Time Functions (Most Likely)
I've never written Linux kernel code, but have for Windows. You need to find a kernel level time function. If Linux is anything like Windows, the time functions are more granular, but not as do everything as application-level time functions.

Hopefully someone knowledgeable about kernel development will answer this.

All times are GMT -5. The time now is 12:16 PM.