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

һƪ²»´íµÄ½éÉÜlinuxÏÂusbÇý¶¯µÄÎÄÕÂ

תÔØ×Ô http://www.builder.com.cn/2007/1015/556732.shtml
Linux»·¾³ÏÂUSBµÄÔ­Àí¡¢Çý¶¯ºÍÅäÖÃ
¿ª·¢ÕßÔÚÏß Builder.com.cn
¸üÐÂʱ¼ä:2007-10-15
×÷Õߣº±±¾©ÖпƺìÆìÈí¼þ¼¼ÊõÓÐÏÞ¹«Ë¾ ǶÈëʽ¹¤³Ìʦ Áº¹ú¾ü
À´Ô´:CSDN
±¾ÎĹؼü´Ê£º Linux
USB

×÷ÕßΪ±±¾©ÖпƺìÆìÈí¼þ¼¼ÊõÓÐÏÞ¹«Ë¾ ǶÈëʽ¹¤³Ìʦ Áº¹ú¾ü
Ëæ×ÅÉú»îˮƽµÄÌá¸ß£¬ÈËÃǶÔUSBÉ豸µÄʹÓÃÒ²Ô½À´Ô½¶à£¬¼øÓÚLinuxÔÚÓ²¼þÅäÖÃÉÏÉв»ÄÜÈ«²¿¼´²å¼´Óã¬Òò´Ë¹ØÓÚLinuxÈçºÎÅäÖúÍʹÓ㬳ÉΪÀ§ÈÅÎÒÃǵÄÒ»´óÎÊÌâ¡£
ʲôÊÇ
USB
£¿
USBÊÇÓ¢ÎÄUniversal Serial
BusµÄËõд£¬ÒâΪͨÓô®ÐÐ×ÜÏß¡£USB×î³õÊÇΪÁËÌæ´úÐí¶à²»Í¬µÄµÍËÙ×ÜÏߣ¨°üÀ¨²¢ÐС¢´®ÐкͼüÅÌÁ¬½Ó£©¶øÉè¼ÆµÄ£¬ËüÒÔµ¥Ò»ÀàÐ͵Ä×ÜÏßÁ¬½Ó¸÷ÖÖ²»Í¬µÄÀàÐÍ
µÄÉ豸¡£USBµÄ·¢Õ¹ÒѾ­³¬Ô½ÁËÕâЩµÍËÙµÄÁ¬½Ó·½Ê½£¬ËüÏÖÔÚ¿ÉÒÔÖ§³Ö¼¸ºõËùÓпÉÒÔÁ¬½Óµ½PCÉϵÄÉ豸¡£×îеÄUSB¹æ·¶ÐÞ¶©ÁËÀíÂÛÉϸߴï480MbpsµÄ
¸ßËÙÁ¬½Ó¡£LinuxÄÚºËÖ§³ÖÁ½ÖÖÖ÷ÒªÀàÐ͵ÄUSBÇý¶¯³ÌÐò£ºËÞÖ÷ϵͳÉϵÄÇý¶¯³ÌÐòºÍÉ豸ÉϵÄÇý¶¯³ÌÐò£¬´ÓËÞÖ÷µÄ¹ÛµãÀ´¿´£¨Ò»¸öÆÕͨµÄËÞÖ÷Ò²¾ÍÊÇÒ»¸öPC
»ú£©£¬ËÞÖ÷ϵͳµÄUSBÉ豸Çý¶¯³ÌÐò¿ØÖƲåÈëÆäÖеÄUSBÉ豸£¬¶øUSBÉ豸µÄÇý¶¯³ÌÐò¿ØÖƸÃÉ豸ÈçºÎ×÷Ϊһ¸öUSBÉ豸ºÍÖ÷»úͨÐÅ¡£
USB
µÄ¾ßÌå¹¹³É
ÔÚ¶¯ÊÖдUSBÇý¶¯³ÌÐòÕâÇ°£¬ÈÃÎÒÃÇÏÈ¿´¿´Ð´µÄUSBÇý¶¯³ÌÐòÔÚÄÚºËÖеĽṹ£¬ÈçÏÂͼ£º
USBÇý¶¯³ÌÐò´æÔÚÓÚ²»Í¬µÄÄÚºË×ÓϵͳºÍUSBÓ²¼þ¿ØÖÆÆ÷Ö®¼ä£¬USBºËÐÄΪUSBÇý¶¯³ÌÐòÌṩÁËÒ»¸öÓÃÓÚ·ÃÎʺͿØÖÆUSBÓ²¼þµÄ½Ó¿Ú£¬¶ø²»±Ø¿¼ÂÇ
ϵͳµ±Ç°´æÔڵĸ÷ÖÖ²»Í¬ÀàÐ͵ÄUSBÓ²¼þ¿ØÖÆÆ÷¡£USBÊÇÒ»¸ö·Ç³£¸´ÔÓµÄÉ豸£¬linuxÄÚºËΪÎÒÃÇÌṩÁËÒ»¸ö³ÆΪUSBµÄºËÐĵÄ×ÓϵͳÀ´´¦Àí´ó²¿·ÖµÄ¸´
ÔÓÐÔ£¬USBÉ豸°üÀ¨ÅäÖÃ(configuration)¡¢½Ó¿Ú£¨interface£©ºÍ¶Ëµã(endpoint)£¬USBÉ豸°ó¶¨µ½½Ó¿ÚÉÏ£¬¶ø²»ÊÇÕû¸ö
USBÉ豸¡£ÈçÏÂͼËùʾ£º
USBͨÐÅ×î»ù±¾µÄÐÎʽÊÇͨ¹ý¶Ëµã£¨USB¶Ëµã·ÖÖжϡ¢ÅúÁ¿¡¢µÈʱ¡¢¿ØÖÆËÄÖÖ£¬Ã¿ÖÖÓÃ;²»Í¬£©£¬USB¶ËµãÖ»ÄÜÍùÒ»¸ö·½Ïò´«ËÍÊý¾Ý£¬´ÓÖ÷»úµ½É豸»ò
Õß´ÓÉ豸µ½Ö÷»ú£¬¶Ëµã¿ÉÒÔ¿´×÷Êǵ¥ÏòµÄ¹ÜµÀ£¨pipe£©¡£ËùÒÔÎÒÃÇ¿ÉÒÔÕâÑùÈÏΪ£ºÉ豸ͨ³£¾ßÓÐÒ»¸ö»òÕ߸ü¶àµÄÅäÖã¬ÅäÖþ­³£¾ßÓÐÒ»¸ö»òÕ߸ü¶àµÄ½Ó¿Ú£¬½Ó¿Ú
ͨ³£¾ßÓÐÒ»¸ö»òÕ߸ü¶àµÄÉèÖ㬽ӿÚûÓлò¾ßÓÐÒ»¸öÒÔÉϵĶ˵㡣Çý¶¯³ÌÐò°ÑÇý¶¯³ÌÐò¶ÔÏó×¢²áµ½USB×ÓϵͳÖУ¬ÉÔºóÔÙʹÓÃÖÆÔìÉ̺ÍÉ豸±êʶÀ´ÅжÏÊÇ·ñÒѾ­°²
×°ÁËÓ²¼þ¡£USBºËÐÄʹÓÃÒ»¸öÁÐ±í£¨ÊÇÒ»¸ö°üº¬ÖÆÔìÉÌIDºÍÉ豸ºÅIDµÄÒ»¸ö½á¹¹Ì壩À´Åж϶Ô


Ïà¹ØÎĵµ£º

linux ÏÂwhich¡¢whereis¡¢locate¡¢findÇø±ð

µ±ÎÒÃÇÐèҪij¸öÎļþ»òĿ¼ʱ£¬¶øÓÖ²»ÖªµÀ¸ÃÎļþ·ÅÔÚʲôµØ·½£¬Ôõô°ì£¿
ÔÚwindowsÏÂÃ棬¿ÉÒÔͨ¹ý“ËÑË÷”¹¦ÄܽøÐвéÕÒ£¬¶øÔÚlinuxÏ£¬Í¬ÑùÓÐÏàͬµÄ¹¦ÄÜ£º
which       ²é¿´¿ÉÖ´ÐÐÎļþµÄλÖÃ
whereis     ²é¿´ÎļþµÄλÖÃ
locate    &n ......

iphone 3.1.2¿ª·¢»·¾³´î½¨——linuxƽ̨

Ò»¡¢Òý×Ó
Ç°¶Îʱ¼ä¿´µ½ÁËapple¹«Ë¾·¢²¼ÁËiphone os4.0µÄÔ¤ÀÀÊÓƵ£¬iphoneÖÕÓÚ´òËãÖ§³Ö¶àÈÎÎñÁË£¬ÓÈÆäÊǶÔÓÚÔ¤ÀÀÊÓƵÖеÄskypeÈí¼þµÄչʾÈÃÈËÓ¡ÏóÉî¿Ì¡£
Ò»°ãÀ´Ëµ£¬Ïë×öÒ»ÃûÕý¹æµÄiphoneÓ¦Óÿª·¢ÕßÓ¦µ±ÖÁÉÙ×¼±¸Èý¼þÊÂÇ飺
£¨1£©Ò»Ì¨appleµÄµçÄÔ
¿ÉÒÔÊÇmac book»òÕßmac mini£¬¹úÄڱȽϓ½Ú¼ó”µÄ¹«Ë¾´ó¶¼Ñ¡ ......

Linux ÐźÅsignal´¦Àí»úÖÆ ¶þ

¶þ¡¢ÐÅ ºÅ »ú ÖÆ
ÉÏ Ò»½ÚÖнéÉÜÁËÐźŵĻù±¾¸ÅÄÔÚÕâÒ»½ÚÖУ¬ÎÒÃǽ«½éÉÜÄÚºËÈçºÎʵÏÖÐźŻúÖÆ¡£¼´ÄÚºËÈçºÎÏòÒ»¸ö½ø³Ì·¢ËÍÐźš¢½ø³ÌÈçºÎ½ÓÊÕÒ»¸öÐźš¢½ø³ÌÔõÑù¿ØÖÆ×Ô¼º¶ÔÐÅ ºÅµÄ·´Ó¦¡¢ÄÚºËÔÚʲôʱ»ú´¦ÀíºÍÔõÑù´¦Àí½ø³ÌÊÕµ½µÄÐźš£»¹Òª½éÉÜÒ»ÏÂsetjmpºÍlongjmpÔÚÐźÅÖÐÆðµ½µÄ×÷Óá£
1¡¢Äں˶ÔÐźŵĻ ......

linux statº¯Êý½²½â

statº¯Êý½²½â£¨×ª£©
±íÍ·Îļþ:    #include <sys/stat.h>
            #include <unistd.h>
¶¨Ò庯Êý:    int stat(const char *file_name, struct stat *buf);
º¯Êý˵Ã÷:    ͨ¹ýÎļþÃûfilename»ñÈ¡ÎļþÐÅÏ¢ ......

[ת]Linux: ½áÊø²é¿´½ø³ÌÃüÁî

ÔÚubuntuÖУ¬ÖÕÖ¹Ò»¸ö½ø³Ì»òÖÕÖ¹Ò»¸öÕýÔÚÔËÐеijÌÐò£¬Ò»°ãÊÇͨ¹ý kill ¡¢killall¡¢pkill¡¢xkill µÈ½øÐС£
-------------------------------------------------------------------
ÏÈ¿´Á½¸öÀý×Ó£º
Àý×ÓÒ»£º½áÊøij¸ö³ÌÐò£¬ÈçFirefox    
¼üÈëÃüÁ
pkill firefox
Àý×Ó¶þ: ½áÊøij¸ö½ø³Ì£¬Èçfind&n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ