最近刚看完了<<Professional Assembly Language>>,认真学习了下GCC里的内嵌汇编这部分,有学习了MAKEFILE的写法,现在及以后就要专心阅读LINUX的源码了.由于INTEL保护模式编程以前看过,LINUX的启动引导部分以前也看过了,就都不看了.只是大概有个理解.今天看了下mktime.c这个文件,比较简单的部分,也算给自己点信心吧.:-)
下面是我的理解及注释:
00001 /* 00002 * linux/kernel/mktime.c
00003 *
00004 * (C) 1991 Linus Torvalds
00005 */
00006
00007 #include <time.h> //Linux中一些时间相关的类型,结构,函数声明
00008
00009 /*
00010 * This isn't the library routine, it is only used in the kernel.
00011 * as such, we don't care about years<1970 etc, but assume everything
00012 * is ok. Similarly, TZ etc is happily ignored. We just do everything
00013 * as easily as possible. Let's find something public for the library
00014 * routines (although I think minix times is public).
00015 */
00016 /*
00017 * PS. I hate whoever though