LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2010, 03:47 AM   #1
Gourab Das
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Rep: Reputation: 0
time function in kernel space


Hi,
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
 
Old 01-26-2010, 03:27 PM   #2
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do we have any chance of calling user space callback function from kernel space? ravishankar.g Linux - Newbie 1 09-22-2009 08:14 PM
Function in kernel space called form user space.. Linux_Kid_ Programming 2 09-22-2009 05:34 AM
How to Measure Time to execute a function in Kernel space barunparichha Linux - Software 4 01-07-2008 12:48 PM
LXer: Kernel space: The enterprise real-time feud LXer Syndicated Linux News 1 12-14-2007 10:05 AM
how to measure execution time in kernel space? didio Linux - Kernel 1 10-08-2007 11:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration