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

Linux¶ÔI/O¶Ë¿Ú×ÊÔ´µÄ¹ÜÀí

 ÕªÒª
¡¡¡¡±¾ÎÄÖ÷Òª´ÓÄÚºËʵÏֵĽǶȷÖÎöLinux 2.4.0ÄÚºËIO×ÓϵͳÖжÔIO¶Ë¿Ú×ÊÔ´µÄ¹ÜÀíµÄʵÏÖÔ­Àí¡£±¾ÎÄÊÇΪÄÇЩÏëÒªÉîÈë·ÖÎöLinuxµÄIO×ÓϵͳµÄ¶ÁÕߺÍÉ豸Çý¶¯³ÌÐò¿ª·¢ÈËÔ±¶øдµÄ¡£(2002-10-08 14:14:05)
--------------------------------------------------------------------------------
By °¢¿ª
¡¡¡¡Copyright © 2002 by Õ²ÈÙ¿ª
¡¡¡¡E-mail:zhanrk@sohu.com
¡¡¡¡Linux-2.4.0
¡¡¡¡Version 1.0.0£¬2002-10-1
¡¡¡¡¹Ø¼ü´Ê£ºÉ豸¹ÜÀí¡¢Çý¶¯³ÌÐò¡¢I/O¶Ë¿Ú¡¢×ÊÔ´
¡¡¡¡ÉêÃ÷£ºÕâ·ÝÎĵµÊÇ°´ÕÕ×ÔÓÉÈí¼þ¿ª·ÅÔ´´úÂëµÄ¾«Éñ·¢²¼µÄ£¬ÈκÎÈË¿ÉÒÔÃâ·Ñ»ñµÃ¡¢Ê¹ÓúÍÖØз¢²¼£¬µ«ÊÇÄãûÓÐÏÞÖƱðÈËÖØз¢²¼Äã·¢²¼ÄÚÈݵÄȨÀû¡£·¢²¼±¾ÎĵÄÄ¿µÄÊÇÏ£ÍûËüÄܶԶÁÕßÓÐÓ㬵«Ã»ÓÐÈκε£±££¬ÉõÖÁûÓÐÊʺÏÌض¨Ä¿µÄµÄÒþº¬µÄµ£±£¡£¸üÏêϸµÄÇé¿öÇë²ÎÔÄGNUͨÓù«¹²Ðí¿ÉÖ¤(GPL)£¬ÒÔ¼°GNU×ÔÓÉÎĵµÐ­Òé(GFDL)¡£
¡¡¡¡¼¸ºõÿһÖÖÍâÉ趼ÊÇͨ¹ý¶ÁдÉ豸ÉϵļĴæÆ÷À´½øÐеġ£ÍâÉè¼Ä´æÆ÷Ò²³ÆΪ“I/O¶Ë¿Ú”£¬Í¨³£°üÀ¨£º¿ØÖƼĴæÆ÷¡¢×´Ì¬¼Ä´æÆ÷ºÍÊý¾Ý¼Ä´æÆ÷Èý´óÀ࣬¶øÇÒÒ»¸öÍâÉèµÄ¼Ä´æÆ÷ͨ³£±»Á¬ÐøµØ±àÖ·¡£CPU¶ÔÍâÉèIO¶Ë¿ÚÎïÀíµØÖ·µÄ±àÖ··½Ê½ÓÐÁ½ÖÖ£ºÒ»ÖÖÊÇI/OÓ³É䷽ʽ£¨I/O£­mapped£©£¬ÁíÒ»ÖÖÊÇÄÚ´æÓ³É䷽ʽ£¨Memory£­mapped£©¡£¶ø¾ßÌå²ÉÓÃÄÄÒ»ÖÖÔòÈ¡¾öÓÚCPUµÄÌåϵ½á¹¹¡£
¡¡¡¡ÓÐЩÌåϵ½á¹¹µÄCPU£¨È磬PowerPC¡¢m68kµÈ£©Í¨³£Ö»ÊµÏÖÒ»¸öÎïÀíµØÖ·¿Õ¼ä£¨RAM£©¡£ÔÚÕâÖÖÇé¿öÏ£¬ÍâÉèI/O¶Ë¿ÚµÄÎïÀíµØÖ·¾Í±»Ó³Éäµ½CPUµÄµ¥Ò»ÎïÀíµØÖ·¿Õ¼äÖУ¬¶ø³ÉΪÄÚ´æµÄÒ»²¿·Ö¡£´Ëʱ£¬CPU¿ÉÒÔÏó·ÃÎÊÒ»¸öÄÚ´æµ¥ÔªÄÇÑù·ÃÎÊÍâÉèI/O¶Ë¿Ú£¬¶ø²»ÐèÒªÉèÁ¢×¨ÃŵÄÍâÉèI/OÖ¸Áî¡£Õâ¾ÍÊÇËùνµÄ“ÄÚ´æÓ³É䷽ʽ”£¨Memory£­mapped£©¡£
¡¡¡¡¶øÁíÍâһЩÌåϵ½á¹¹µÄCPU£¨µäÐ͵ØÈçX86£©ÔòΪÍâÉèרÃÅʵÏÖÁËÒ»¸öµ¥¶ÀµØµØÖ·¿Õ¼ä£¬³ÆΪ“I/OµØÖ·¿Õ¼ä”»òÕß“I/O¶Ë¿Ú¿Õ¼ä”¡£ÕâÊÇÒ»¸öÓëCPUµØRAMÎïÀíµØÖ·¿Õ¼ä²»Í¬µÄµØÖ·¿Õ¼ä£¬ËùÓÐÍâÉèµÄI/O¶Ë¿Ú¾ùÔÚÕâÒ»¿Õ¼äÖнøÐбàÖ·¡£CPUͨ¹ýÉèÁ¢×¨ÃŵÄI/OÖ¸ÁÈçX86µÄINºÍOUTÖ¸ÁÀ´·ÃÎÊÕâÒ»¿Õ¼äÖеĵØÖ·µ¥Ôª£¨Ò²¼´I/O¶Ë¿Ú£©¡£Õâ¾ÍÊÇËùνµÄ“I/OÓ³É䷽ʽ”£¨I/O£­mapped£©¡£ÓëRAMÎïÀíµØÖ·¿Õ¼äÏà±È£¬I/OµØÖ·¿Õ¼äͨ³£¶¼±È½ÏС£¬Èçx86 CPUµÄI/O¿Õ¼ä¾ÍÖ»ÓÐ64KB£¨0£­0xffff£©¡£ÕâÊÇ“I/OÓ³É䷽ʽ”µÄÒ»¸öÖ÷Ҫȱµã¡£
¡¡¡¡Linux½«»ùÓÚI/OÓ³É䷽ʽµÄ»òÄÚ´æÓ³É䷽ʽµÄI/O¶Ë¿Úͨ³ÆΪ“I/OÇøÓò”£¨I/O region£©¡£ÔÚ


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

linuxÖÐÖØÒªÎļþ¼Ð½éÉÜ

Linux¸ùĿ¼”/“ϸ÷¸öϵͳÎļþ¼ÐµÄº¬ÒåºÍÓÃ;
/boot ¸ÃĿ¼ĬÈÏÏ´æ·ÅµÄÊÇLinuxµÄÆô¶¯ÎļþºÍÄںˡ£
/initrd ËüµÄÓ¢Îĺ¬ÒåÊÇboot loader initialized RAM disk,¾ÍÊÇÓÉboot loader³õʼ»¯µÄÄÚ´æÅÌ¡£ÔÚlinuxÄÚºËÆô¶¯Ç°£¬boot loader»á½«´æ´¢½éÖÊ(Ò»°ãÊÇÓ²ÅÌ)ÖеÄinitrdÎļþ¼ÓÔص½Äڴ棬ÄÚºËÆô¶¯Ê±»áÔÚ·ÃÎÊÕæÕýµÄ¸ ......

linux patch µÄÒ»µãÓ÷¨

Ò²ÐíÖ»ÊÇÎÒÒ»¸öÈ˱Ƚϱ¿£¬Ã¿´ÎÅöµ½bug£¬ËäÈ»ÓÐÈ˸ø³ö²¹¶¡£¨patch£©£¬µ«ÊÇÈ´²»ÖªµÀÔõôʹÓá£Manual Page ( man patch
)Ò²Ö»¸ø³ö patch -p(num)
<patchfileÕâÑùµÄÓ÷¨£¬¾ßÌåÒ²²»ÖªµÀÔõÑùÈ·¶¨num£¬Èç¹ûÄãÒ²ÓÐÕâÑùµÄÒÉ»ó£¬Çë¼ÌÐøÔĶÁ£º
½¨Á¢patchÎļþ:
diff -Naur olddir newdir > new-patch
- or -
diff -Naur ol ......

LinuxÏÂUSBÉãÏñÍ·Çý¶¯¿ª·¢(ת)

 http://blog.csdn.net/youta_chen/archive/2007/08/29/1763215.aspx
½ñÄêÉÏ°ëÄêÎÒ¶ÔÊг¡³£¼ûµÄvimicro ÉãÏñÍ·ÒÆÖ²ÁËLinuxϵÄÇý¶¯ÖÁÔÚÑеÄÒ»¿îǶÈëʽ¿ª·¢°å£¬¿ª·¢»·¾³Îª£º
            OS:Linux2.6.9
Compile:cross 3.3.2
CPU:Intel PXA270
Camera Typ ......

linuxµÄchmodÓëchownÃüÁîÏê½â

 linuxµÄchmodÓëchownÃüÁîÏê½â 
 
linuxµÄchmodÃüÁîʹÓÃÏê½â
ʹÓ÷½Ê½ : chmod [-cfvR] [--help] [--version] mode file...
˵Ã÷ : Linux/Unix µÄµµ°¸´æȡȨÏÞ·ÖΪÈý¼¶ : µµ°¸ÓµÓÐÕß¡¢Èº×é¡¢ÆäËû¡£ÀûÓà chmod ¿ÉÒÔ½åÒÔ¿ØÖƵµ°¸ÈçºÎ±»ËûÈËËù´æÈ¡¡£
mode : ȨÏÞÉ趨×Ö´®£¬¸ñʽÈçÏ : [ugoa...][[+-=][rw ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ