Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÃüÁ


NO
·ÖÀà
PS1
ÃüÁîÃû
Ó÷¨¼°²ÎÊý
¹¦ÄÜ×¢½â
1
ÏÔʾĿ¼ÐÅÏ¢
#
ls
ls -a
Áгöµ±Ç°Ä¿Â¼ÏµÄËùÓÐÎļþ£¬°üÀ¨ÒÔ.Í·µÄÒþº¬Îļþ
#
ls
ls -l»òll
Áгöµ±Ç°Ä¿Â¼ÏÂÎļþµÄÏêϸÐÅÏ¢
#
ls
ls -a
ÏÔʾËùÓÐÎļþ£¬°üº¬Òþ²Ø¡£
#
ls
ls -al
ÏÔʾËùÓÐÎļþµÄÏêϸÐÅÏ¢¡£
2
²é¿´Â·¾¶
#
pwd
pwd
......

linux sock_rawԭʼÌ×½Ó×Ö±à³Ì

from:http://blog.chinaunix.net/u2/62281/showart_1096746.html
sock_rawԭʼÌ×½Ó×Ö±à³Ì¿ÉÒÔ½ÓÊÕµ½±¾»úÍø¿¨ÉϵÄÊý¾ÝÖ¡»òÕßÊý¾Ý°ü,¶ÔÓë¼àÌýÍøÂçµÄÁ÷Á¿ºÍ·ÖÎöÊǺÜÓÐ×÷ÓõÄ.Ò»¹²¿ÉÒÔÓÐ3ÖÖ·½Ê½´´½¨ÕâÖÖsocket
 
1.socket(AF_INET, SOCK_RAW, IPPROTO_TCP|IPPROTO_UDP|IPPROTO_ICMP)·¢ËͽÓÊÕipÊý¾Ý°ü
2.socket(PF_PACK ......

´ÓSD¿¨Æô¶¯linuxϵͳ

  -------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
//ƽ̨powerpc mpc8379e linux 2.6.22
£±¡¢ÏÈÓÃfdisk ¸øSD¿¨·ÖÇø£¬ÓÃ×÷Îļþϵͳ¡£
½«¶Á¿¨Æ÷²åÈëPC»úÐéÄâ»ú£¬ÔÚPC»úÉÏÖ´ÐÐfdisk /dev/sdb
Ñ¡Ôñn¡¡¡£¡£¡£¡£¡£¡£¡£¡£² ......

linux find ÃüÁîʵÀý

·find  path  -option  [  -print ]  [ -exec  -ok  command ]  {} \;
#-print ½«²éÕÒµ½µÄÎļþÊä³öµ½±ê×¼Êä³ö
#-exec  command  {} \;     -----½«²éµ½µÄÎļþÖ´ÐÐcommand²Ù×÷,{} ºÍ \;Ö®¼äÓпոñ
#-ok ºÍ-execÏàͬ£¬Ö»²»¹ýÔÚ²Ù×÷ǰҪѯ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ