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

LinuxÉ豸ģÐÍÖ®input×ÓϵͳÏê½â(¶þ)

;           break; 
         } 
  
         if (type != EV_SYN) 
                   dev->sync = 0; 
  
         if ((disposition & INPUT_PASS_TO_DEVICE) && dev->event) 
                   dev->event(dev, type, code, value); 
  
         if (disposition & INPUT_PASS_TO_HANDLERS) 
                   input_pass_event (dev, type, code, value); 

ÔÚÕâÀï,ÎÒÃǺöÂÔµô¾ßÌåʼþµÄ´¦Àí.µ½×îºó,Èç¹û¸ÃʼþÐèÒªinput deviceÀ´Íê³ÉµÄ,¾Í»á½«dispositionÉèÖóÉINPUT_PASS_TO_DEVICE.Èç¹ûÐèÒªhandlerÀ´Íê³ÉµÄ,¾Í½«dispostionÉèΪINPUT_PASS_TO_DEVICE.Èç¹ûÐèÒªÁ½Õß¶¼²ÎÓë,½«dispositionÉèÖÃΪINPUT_PASS_TO_ALL. 
ÐèÒªÊäÈëÉ豸²ÎÓëµÄ,»Øµ÷É豸µÄeventº¯Êý.Èç¹ûÐèÒªhandler²ÎÓëµÄ.µ÷ÓÃinput_pass_event().´úÂëÈçÏÂ: 
static void input_pass_event(struct input_dev *dev, 
                                 unsigned int type, unsigned int code, int value) 

         struct input_handle *handle; 
  
         rcu_read_lock(); 
  
         handle = rcu_dereference(dev->grab); 
         if (handle) 
         


Ïà¹ØÎĵµ£º

LinuxÈëÃűʼÇÎå

Shell½Å±¾¼°Æä³É·Ö
ShellÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄ±à³ÌÓïÑÔ¡£ÓÃShell±àдµÄÅú´¦ÀíÎļþ³ÆÎªShell½Å±¾¡¢
Shell½Å±¾µÄ³É·Ö
-×¢ÊͲ¿·Ö
 ÒÔ#¿ªÍ·µÄÐÐ
-ÃüÁî
 ÔÚShell½Å±¾ÖпÉÒÔ³öÏÖÈκÎÔÚ½»»¥·½Ê½Ï¿ÉÒÔʹÓõÄÃüÁî
-±äÁ¿
 ¼È¿ÉÒÔʹÓÃÓû§×Ô¶¨ÒåµÄ±äÁ¿£¬Ò²¿ÉÒÔʹÓÃϵͳ»·¾³±äÁ¿
-Á÷³Ì¿ØÖÆ
 ¶ÔÃüÁîµÄÖ´ÐÐÁ÷³ ......

LinuxÈëÃűʼÇÁù

´ÅÅÌ·ÖÇø¹¤¾ß--fdisk
fdisk /dev/hda
fdiskÃüÁîµÄ×ÓÃüÁî
-m   ÏÔʾ°ïÖú£¨ÃüÁîÇåµ¥£©
-a   ¼¤»î·ÖÇøµÄ¿ÉÒýµ¼±êÖ¾
-l   Áгö¿ÉÑ¡µÄ·ÖÇøÀàÐÍ
-n   Ìí¼ÓзÖÇø
-d   ɾ³ýÒѾ­´æÔڵķÖÇø
-p   ÏÔʾ·ÖÇø±í
-t   ¸Ä±ä·ÖÇøµÄÎļþÀàÐÍ
   ......

linux¾²Ì¬¿âºÍ¹²Ïí¿â

1.ʲôÊÇ¿â
ÔÚwindowsƽ̨ºÍlinuxƽ̨϶¼´óÁ¿´æÔÚ×ſ⡣
±¾ÖÊÉÏÀ´Ëµ¿âÊÇÒ»ÖÖ¿ÉÖ´ÐдúÂëµÄ¶þ½øÖÆÐÎʽ£¬¿ÉÒÔ±»²Ù×÷ÏµÍ³ÔØÈëÄÚ´æÖ´ÐС£
ÓÉÓÚwindowsºÍlinuxµÄ±¾Öʲ»Í¬£¬Òò´Ë¶þÕß¿âµÄ¶þ½øÖÆÊDz»¼æÈݵġ£
±¾ÎĽöÏÞÓÚ½éÉÜlinuxϵĿ⡣
2.¿âµÄÖÖÀà
linuxϵĿâÓÐÁ½ÖÖ£º¾²Ì¬¿âºÍ¹²Ïí¿â£¨¶¯Ì¬¿â£©¡£
¶þÕߵIJ»Í¬µãÔÚÓÚ´úÂë±» ......

Linux kernel ѧϰ±Ê¼Ç£¨1£© ·Ö¶Î·ÖÒ³±£»¤»úÖÆ

ʹÓÃ80x86´¦ÀíÆ÷½øÐÐÑ°Ö·Ê±Ç£Éæµ½ÈýÖÖ²»Í¬µÄµØÖ·£¬Æä¹ØÏµÈçÏÂËùʾ
Âß¼­µØÖ·------------------->ÏßÐÔµØÖ·-------------------------->ÎïÀíµØÖ·
                 £¨·Ö¶Î£©          ......

linuxÏÂmmapµÄʹÓÃ

http://blog.csdn.net/adcxf/archive/2009/03/14/3989725.aspx
¹² ÏíÄÚ´æ¿ÉÒÔ˵ÊÇ×îÓÐÓõĽø³Ì¼äͨÐÅ·½Ê½£¬Ò²ÊÇ×î¿ìµÄIPCÐÎʽ¡£Á½¸ö²»Í¬½ø³ÌA¡¢B¹²ÏíÄÚ´æµÄÒâ˼ÊÇ£¬Í¬Ò»¿éÎïÀíÄÚ´æ±»Ó³Éäµ½½ø³ÌA¡¢B¸÷×ԵĽø³ÌµØÖ·¿Õ ¼ä¡£½ø³ÌA¿ÉÒÔ¼´Ê±¿´µ½½ø³ÌB¶Ô¹²ÏíÄÚ´æÖÐÊý¾ÝµÄ¸üУ¬·´Ö®ÒàÈ»¡£ÓÉÓÚ¶à¸ö½ø³Ì¹²Ïíͬһ¿éÄÚ´æÇøÓò£¬±ØÈ»ÐèÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ