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

dzÎölinuxÏÂÊó±êÇý¶¯µÄʵÏÖ

¶ÔÓÚÊó±êÇý¶¯ºÍÇ°Ãæ·ÖÎö¹ýµÄ¼üÅÌÇý¶¯¶¼Êǹ²ÓÃinputÄ£ÐÍ,ËùÒÔ,¶ÔÓÚʼþÉϱ¨ºÍ´¦ÀíµÄ·½Ê½¶¼Ã»ÓÐÇø±ð,Ö»ÊÇmouseÊó±êÇý¶¯µ±Éϱ¨Íêdx,dy,left,middle,rightÖ®ºó,ÐèÒªµ÷ÓÃinput_sync(),½«Ç°ÃæÉϱ¨µÄ½ö½öÌî³äÔÚ»º³åÇøÖеÄÊý¾Ý,ͨ¹ýmousedev_notify_readers()·¢Ë͸øopenÁ˵ĹҽÓÔÚmousedev->client_listÁ´±íÉϵȴý»ñÈ¡Êó±êÐÅÏ¢µÄclientÃÅ,Êó±êÉ豸ºÍ¼üÅÌÉ豸ÀàËƶ¼ÊÇÔÚ/dev/input/Ŀ¼Ï´´½¨ÁËÒ»¸öcharÀàÐ͵ÄÉ豸½Úµã,ÓÉÓ¦ÓóÌÐòʹÓÃread»òÕßpollÀ´×èÈûµ÷ÓÃ,¶ÔÓÚ¼üÅÌÉ豸Ϊ/dev/input/event0,...,/dev/input/eventx,¶ÔÓÚÊó±êÉ豸Ϊ/dev/input/mouse0,...,/dev/input/mousex,¿ÉÒÔʹÓÃsudo cat /dev/input/event0À´´ÓÖÕ¶ËÉϽػñÏÔʾ°´¼üµÄÐÅÏ¢,ʹÓÃsudo cat /dev/input/mouse0À´²¶×½Êó±êµÄÐÅÏ¢.
  ÈÃÎÒÃÇÀ´¿´¿´Çý¶¯Ô´Â롾gliethttp.Leith¡¿£º
============drivers\input\mouse\amimouse.c============
    input_report_rel(amimouse_dev, REL_X, dx);
    input_report_rel(amimouse_dev, REL_Y, dy);
    input_report_key(amimouse_dev, BTN_LEFT, ciaa.pra & 0x40);
    input_report_key(amimouse_dev, BTN_MIDDLE, potgor & 0x0100);
    input_report_key(amimouse_dev, BTN_RIGHT, potgor & 0x0400);
    input_sync(amimouse_dev);// ¿½±´µ½openÁ˵Äÿ¸öclientµÄclient->packets[16]»·Ðλº³åÇø,ÿ¸öÓ¦ÓóÌÐòÔÚµ÷ÓÃopen ʱ,mousedev_open¶¼»áµ÷ÓÃkzallocÀ´ÉêÇëÒ»¸ö¶ÀÁ¢µÄmousedev_client½á¹¹Ìå,È»ºó½«¸Ãclient¹Ò½Óµ½ mousedev->client_listÁ´±í,×îºóÓÉmousedev_notify_readersÏò mousedev->client_listÁ´±íÉϹҽӵÄÿ¸öclient¿½±´Êó±êÐÅÏ¢,×îºówake_up»½ÐÑread»òpoll.
============drivers\input\mousedev.c============
mousedev_read=>mousedev_packet=>Èç¹ûdx,dy,dzͬʱ¶¼Îª0,˵Ã÷Êó±êÍ£Ö¹ÁË,ÄÇôclient->ready = 0;
mousedev_event(dev, EV_SYN, SYN_REPORT, 0)=>mousedev_notify_readers=>Èç¹ûdx,dy,dzÓÐÒ»¸ö·¢ÉúÁËÒƶ¯»òÕßÊó±ê°´¼üÉÏÒ»´ÎµÄ°´¼ü²»Í¬,ÄÇôclient->ready = 1;¿½±´Êý¾Ýµ½mousedev->client_listÁ´±íÉϹҽӵÄÿ¸öclientµÄ»·Ðλº³åÇø,×îºóµ÷ÓÃwake_up_interruptible(&mousedev->wait);»½ÐÑÒòΪread»òÕßpoll²Ù×÷¶ø±»pendingסµÄÓ¦Ó


Ïà¹ØÎĵµ£º

ÓÃLinuxÏÂPerl½Å±¾Á¬½ÓSQLServer

×¼±¸¹¤×÷:
¡¡¡¡Óõ½µÄperl À©Õ¹×é¼þ(modules)ÔÚÉÏƪÌù³ö.( win32::odbc Ä£¿é
)ÏÂÔØ×é¼þºó°´ÕÕReadmeÎļþ°²×°µ¹ÏìӦĿ¼.ÅäÖúÃÏàÓ¦µÄodbcÊý¾ÝÔ´.
¡¡¡¡
¡¡¡¡³ÌÐòʵÏÖ:
¡¡¡¡Ê¹ÓÃ
¡¡¡¡use
Win32::ODBC;
¡¡¡¡
¡¡¡¡Óï¾ä°üº¬Ó¦Ê¹ÓõÄÄ£¿éÊÇwin32::odbc,д³öÊý¾Ý¿â
Á¬½Ó×Ö·û´®
¡¡¡¡
¡¡¡¡$DSN = "DSN =
My DSN ......

¹ØÓÚǶÈëʽLinuxϵͳµÄÆô¶¯(ת)

#1
 ¹ØÓÚǶÈëʽϵͳµÄÆô¶¯
(SHARE FOR ALL)
ǶÈëʽ
Linux
Æô¶¯·ÖΪÁ½¸ö²¿·Ö£¬ÏµÍ³Òýµ¼Óë
Linux
Æô¶¯¡£ÏµÍ³Òýµ¼½«Íê³É
Linux
×°ÈëÄÚ´æÇ°£¬³õʼ»¯
CPU
ºÍÏà¹Ø
IO
É豸£¬²¢½«
Linux
µ÷ÈëÄÚ´æµÄ¹¤×÷¡£ÏµÍ³Òýµ¼Ö÷ÒªÓÉ
BootLoader
ʵÏÖ¡£ÔÚ
BootLoader
½«
Linux
Äں˵÷ÈëÄÚ´æÖ®ºó£¬½«È¨Á¦½»¸ø
LinuxK ......

Ubuntu LinuxÏÂËÑË÷ÎļþºÍÎļþÄÚÈÝ

whereis <³ÌÐòÃû³Æ>
²éÕÒÈí¼þµÄ°²×°Â·¾¶
-b Ö»²éÕÒ¶þ½øÖÆÎļþ
-m Ö»²éÕÒ°ïÖúÎļþ
-s Ö»²éÕÒÔ´´úÂë
-u ÅųýÖ¸¶¨ÀàÐÍÎļþ
-f Ö»ÏÔʾÎļþÃû
-B <Ŀ¼> ÔÚÖ¸¶¨Ä¿Â¼Ï²éÕÒ¶þ½øÖÆÎļþ
-M <Ŀ¼> ÔÚÖ¸¶¨Ä¿Â¼Ï²éÕÒ°ïÖúÎļþ
-S <Ŀ¼> ÔÚÖ¸¶¨Ä¿Â¼Ï²éÕÒÔ´´úÂë
locate <ÎļþÃû³Æ>
ÔÚÎļþË÷ ......

LinuxÖÐKillÃüÁîµÄ½ø³Ìµ÷¶È½²½â_ת

¡¡¡¡killÃüÁî
µ±ÐèÒªÖжÏÒ»¸öǰ̨½ø³ÌµÄʱºò£¬Í¨³£ÊÇʹÓÃ< Ctrl+c >×éºÏ¼ü£»µ«ÊǶÔÓÚÒ»¸öºǫ́½ø³Ì¿ÖžͲ»ÊÇÒ»¸ö×éºÏ¼üËùÄܽâ¾öµÄÁË£¬Õâʱ¾Í±ØÐëÇóÖúÓÚkillÃüÁî¡£¸ÃÃüÁî¿ÉÒÔÖÕÖ¹ºǫ́½ø³Ì¡£ÖÁÓÚÖÕÖ¹ºǫ́½ø³ÌµÄÔ­ ÒòºÜ¶à£¬»òÐíÊǸýø³ÌÕ¼ÓõÄCPUʱ¼ä¹ý¶à£»»òÐíÊǸýø³ÌÒѾ­¹ÒËÀ¡£×ÜÖ®ÕâÖÖÇé¿öÊǾ­³£·¢ÉúµÄ¡£
killÃü ......

Linuxϵͳ¿ÉжÔØÄÚºËÄ£¿éÍêÈ«Ö¸ÄÏ_ÖÐ

µÚ¶þ²¿·Ö ½¥Èë¼Ñ¾³
2.1 ÈçºÎ½Ø»ñϵͳµ÷ÓÃ
ÏÖÔÚÎÒÃÇ¿ªÊ¼ÈëÇÖLKM£¬ÔÚÕý³£Çé¿öÏÂLKMsÊÇÓÃÀ´À©Õ¹Äں˵Ä(ÌرðÊÇÄÇЩӲ¼þÇý¶¯)¡£È»¶øÎÒÃǵđHacks’×öһЩ²»Ò»ÑùµÄÊÂÇé¡£ËûÃÇ»á½Ø»ñϵͳµ÷Óò¢ÇÒ¸ü¸ÄËûÃÇ£¬ÎªÁ˸ıäϵͳijЩÃüÁîµÄÏìÓ¦·½Ê½¡£
ÏÂÃæµÄÕâ¸öÄ£¿é¿ÉÒÔʹµÃÈκÎÓû§¶¼²»ÄÜ´´½¨Ä¿Â¼¡£ÕâÖ»²»¹ýÊÇÎÒÃÇËæºó·½·¨µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ