Hi there!
First of all, you need to get yourself the kernel sources, because the header files won't tell you what you long to know. That for, you might want to take a closer look at
this.
Once you got the kernel sources, a few hundred megabyte of digital wisdom await your exploration. To cut things short, you might want to try something like:
Code:
find /YOUR_SOURCE_CODE_DIRECTORY -name time.c
When it comes to my box, its like
Code:
Me@MYBOX ~/Linux_source/linux-source-2.6.35 $ find ./ -name time.c
./kernel/time.c
./arch/m32r/kernel/time.c
./arch/m68k/kernel/time.c
./arch/m68k/atari/time.c
./arch/m68k/sun3x/time.c
./arch/m68k/hp300/time.c
...and so on...
Here is what made me think this would be a good enty point:
Code:
/*
* linux/kernel/time.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* This file contains the interface functions for the various
* time related system calls: time, stime, gettimeofday, settimeofday,
* adjtime
*/
/*
I guess, from now on you will have to digg your way on your own. But in case you get stuck, don't hesitate to ask again...
Have fun,
Heraton