Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux¶¨Ê±Æ÷ Ïê½â[ת]


[ת]Linux¶¨Ê±Æ÷

ºËÖ÷ÒªÐèÒªÁ½ÖÖÀàÐ͵Äʱ¼ä£º


1.

ÔÚÄÚºËÔËÐÐÆÚ¼ä³ÖÐø¼Ç¼µ±Ç°µÄʱ¼äÓëÈÕÆÚ£¬ÒÔ±ãÄں˶ÔijЩ¶ÔÏóºÍʼþ×÷ʱ¼ä±ê¼Ç£¨

timestamp

£¬Ò²³ÆÎª



ʱ¼ä´Á



£©£¬»ò¹©ÓÃ



»§Í¨¹ýʱ¼ä

syscall

½øÐмìË÷¡£


2.

ά³ÖÒ»¸ö¹Ì¶¨ÖÜÆÚµÄ¶¨Ê±Æ÷£¬ÒÔÌáÐÑÄں˻òÓû§Ò»¶Îʱ¼äÒѾ­¹ýÈ¥ÁË¡£


PC

»úÖеÄʱ¼äÊÇÓÐÈýÖÖʱÖÓÓ²¼þÌṩµÄ£¬¶øÕâЩʱÖÓÓ²¼þÓÖ¶¼»ùÓڹ̶¨ÆµÂʵľ§ÌåÕñµ´Æ÷À´ÌṩʱÖÓ·½²¨ÐźÅÊäÈë¡£ÕâÈýÖÖʱÖÓÓ²¼þ



ÊÇ£º£¨

1

£©ÊµÊ±Ê±ÖÓ£¨

Real Time Clock

£¬

RTC

£©£»£¨

2

£©¿É±à³Ì¼ä¸ô¶¨Ê±Æ÷£¨

Programmable Interval Timer

£¬

PIT

£©£»£¨

3

£©



ʱ¼ä´Á¼ÆÊýÆ÷£¨

Time Stamp Counter

£¬

TSC

£©¡£



7

£®

1

ʱÖÓÓ²¼þ


7

£®

1

£®

1

ʵʱʱÖÓ

RTC

×Ô´Ó

IBM PC AT

Æð£¬ËùÓеÄ

PC

»ú¾Í¶¼°üº¬ÁËÒ»¸ö½Ð×öʵʱʱÖÓ£¨

RTC

£©µÄʱÖÓоƬ£¬ÒÔ±ãÔÚ

PC

»ú¶ÏµçºóÈÔÈ»Äܹ»¼ÌÐø±£³Öʱ¼ä¡£ÏÔ



È»£¬

RTC

ÊÇͨ¹ýÖ÷°åÉÏµÄµç³ØÀ´¹©µçµÄ£¬¶ø²»ÊÇͨ¹ý

PC

»úµçÔ´À´¹©µçµÄ£¬Òò´Ëµ±

PC

»ú¹ØµôµçÔ´ºó£¬

RTC

ÈÔÈ»»á¼ÌÐø¹¤×÷¡£Í¨



³££¬

CMOS RAM

ºÍ

RTC

±»¼¯³Éµ½Ò»¿éоƬÉÏ£¬Òò´Ë

RTC

Ò²³Æ×÷

“CMOS Timer”

¡£×î³£¼ûµÄ

RTC

оƬÊÇ

MC146818

£¨

Motorola

£©ºÍ


DS12887

£¨

maxim

£©£¬

DS12887

ÍêÈ«¼æÈÝÓÚ

MC146818

£¬²¢ÓÐÒ»¶¨µÄÀ©Õ¹¡£±¾½ÚÄÚÈÝÖ÷Òª»ùÓÚ

MC146818

ÕâÒ»±ê×¼µÄ

RTC

оƬ¡£¾ßÌåÄÚ



ÈÝ¿ÉÒԲο¼

MC146818

µÄ

Datasheet

¡£


Ïà¹ØÎĵµ£º

linux——¹ÒÔØ¼¸ÀàÉ豸µÄÓ÷¨

 LinuxϵͳÔÚʹÓùâÅÌ¡¢ÈíÅÌ»òUÅÌʱ£¬±ØÐëÏÈÖ´ÐйÒÔØ£¨mount£©ÃüÁî¡£¹ÒÔØÃüÁî»á½«ÕâЩ´æ´¢½éÖÊÖ¸¶¨³ÉϵͳÖеÄij¸öĿ¼£¬ÒÔºóÖ±½Ó·ÃÎÊÏàӦĿ¼¼´¿É¶Áд´æ´¢½éÖÊÉϵÄÊý¾Ý¡£
¡¡¡¡
¡¡¡¡1.¹ÒÔØ¹âÅÌ
¡¡¡¡
¡¡¡¡¹ÒÔØ¹âÅ̵ÄÃüÁîÈçÏ£º
¡¡¡¡
¡¡¡¡# mount -t is09660 /dev/cdrom /mnt/cdrom
¡¡¡¡
¡¡¡¡¸ÃÃüÁ¹âÅ̹ÒÔØµ½/ ......

Linux±ØÑ§µÄ60¸öÃüÁî

LinuxÌṩÁË´óÁ¿µÄÃüÁÀûÓÃËü¿ÉÒÔÓÐЧµØÍê³É´óÁ¿µÄ¹¤
×÷£¬Èç´ÅÅ̲Ù×÷¡¢Îļþ´æÈ¡¡¢Ä¿Â¼²Ù×÷¡¢½ø³Ì¹ÜÀí¡¢ÎļþȨÏÞÉ趨µÈ¡£ËùÒÔ£¬ÔÚLinuxϵͳÉϹ¤×÷Àë²»¿ªÊ¹ÓÃϵͳÌṩµÄÃüÁî¡£ÒªÏëÕæÕýÀí½âLinuxϵͳ£¬
¾Í±ØÐë´ÓLinuxÃüÁîѧÆð£¬Í¨¹ý»ù´¡µÄÃüÁîѧϰ¿ÉÒÔ½øÒ»²½Àí½âLinuxϵͳ¡£
²»Í¬Linux·¢ÐаæµÄÃüÁîÊýÁ¿²»Ò»Ñù£¬µ«Linux·¢Ð ......

linux getoptsÃüÁ´¦Àíshell½Å±¾²ÎÊý

#!/bin/bash
while getopts "ab:cd:" Option
# b and d take arguments
#
do
case $Option in
a) echo -e "a = $OPTIND";;
b) echo -e "b = $OPTIND $OPTARG";;
c) echo -e "c = $OPTIND";;
d) echo -e "d = $OPTIND $OPTARG";;
esac
done
shift $(($OPTIND - 1)) ......

LinuxÖ´ÐÐÒÔ¼°ÐéÄâÄÚ´æÖ®ÓÃ

Linux Execution and Virtual Memory Utilization 
LinuxÖ´ÐÐÒÔ¼°ÐéÄâÄÚ´æÖ®ÓÃ
When Linux boots, it starts with the MMU disabled, so initially it deals only with physical 
memory. The kernel image is copied to physical address 0x8000 in DRAM and executed. First a master page table is created ......

linuxÄں˽ṹÌå

 -------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
LINUX Äں˽ṹÌå
struct attribute
{
    const char    * name;
    struct module     &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ