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

Àí½âLinuxµÄÐÔÄÜ


ÏîÄ¿Öг£Óöµ½ÐèÒª¶ÔÄ¿Ç°ÔËÐеÄϵͳ½øÐÐЧÂÊ·ÖÎö£¬»òÅöµ½¿Í»§×ÉѯÈçºÎÓÅ»¯ÏµÍ³µÄЧÂÊÎÊÌâ¡£¸ü¶àµÄÇé¿öÊÇ£¬ÔÚϵͳ³öÏÖÎÊÌâµÄʱºò£¬ÐèÒª·ÖÎöÔ­Òò£¬¶¨Î»ÏµÍ³ ¹ÊÕÏ»òÆ¿¾±£¬µ±È»£¬×îºÃÊÇ¿ÉÒÔÒ»²¢½â¾ö¹ÊÕÏ¡£µ«Êµ¼ÊÉÏ£¬²Ù×÷ϵͳÓÅ»¯ÊÇÒ»¸ö·Ç³£¸´ÔÓµÄÎÊÌ⣬¿öÇÒlinuxÓÐ×Ô¼ºÒ»Ì×ÓбðÓÚÆäËû²Ù×÷ϵͳ¹ÜÀíµÄ»úÖÆ£¬ÓÉ´Ë »áÒýÆðºÜ¶à²»±ØÒªµÄÎó½âºÍÂé·³¡£×ÔÎÊÎÒÊÇд²»´íÌõÀíÐÔµÄÎÄÕÂÁË£¬Ö»ÄÜתһ·Ý¸ßÈËдµÄÎĵµ¹©²Î¿¼¡££¨ÎÄÕ¸ù¾Ýʵ¼Ê½øÐÐÁËÒ»¶¨µÄ²Ã¼õ£¬²¢¶ÔÈÝÒ×Åöµ½µÄÎÊÌâ×öÁ˱êʶ£©
Ò»¡¢Ç°Ìá
     ÎÒ ÃÇ¿ÉÒÔÔÚÎÄÕµĿªÊ¼¾ÍÁгöÒ»¸öÁÐ±í£¬Áгö¿ÉÄÜÓ°ÏìLinux²Ù×÷ϵͳÐÔÄܵÄһЩµ÷ÓŲÎÊý£¬µ«ÕâÑù×öÆäʵ²¢Ã»ÓÐʲô¼ÛÖµ¡£ÒòΪÐÔÄܵ÷ÓÅÊÇÒ»¸ö·Ç³£À§ÄѵÄÈÎ Îñ£¬ËüÒªÇó¶ÔÓ²¼þ¡¢²Ù×÷ϵͳ¡¢ºÍÓ¦Óö¼ÓÐ×ÅÏ൱ÉîÈëµÄÁ˽⡣Èç¹ûÐÔÄܵ÷Óŷdz£¼òµ¥µÄ»°£¬ÄÇЩÎÒÃÇÒªÁгöµÄµ÷ÓŲÎÊýÔç¾ÍдÈëÓ²¼þµÄ΢Âë»òÕß²Ù×÷ϵͳÖÐÁË£¬ÎÒ ÃǾÍûÓбØÒªÔÙ¼ÌÐø¶ÁÕâƪÎÄÕÂÁË¡£ÕýÈçÏÂͼËùʾ£¬·þÎñÆ÷µÄÐÔÄÜÊܵ½ºÜ¶àÒòËصÄÓ°Ïì¡£
     µ±Ãæ¶ÔÒ»¸öʹÓõ¥¶ÀIDEÓ²Å̵ģ¬ÓÐ20000Óû§µÄÊý¾Ý¿â·þÎñÆ÷ʱ£¬¼´Ê¹ÎÒÃÇʹÓÃÊýÖÜʱ¼äÈ¥µ÷ÕûI/O×ÓϵͳҲÊÇͽÀÍÎÞ¹¦µÄ£¬Í¨³£Ò»¸öеÄÇý¶¯»òÕßÓ¦ÓóÌÐòµÄÒ»¸ö¸üУ¨ÈçSQLÓÅ»¯£©È´¿ÉÒÔʹÕâ¸ö·þÎñÆ÷µÄÐÔÄܵõ½Ã÷ÏÔµÄÌáÉý¡£ÕýÈçÎÒÃÇÇ°ÃæÌáµ½µÄ£¬²»ÒªÍü¼ÇϵͳµÄÐÔÄÜÊÇÊܶ෽ÃæÒòËØÓ°ÏìµÄ¡£Àí½â²Ù×÷ϵͳ¹ÜÀíϵͳ×ÊÔ´µÄ·½·¨½«°ïÖúÎÒÃÇÔÚÃæ¶ÔÎÊÌâʱ¸üºÃµÄÅжÏÓ¦¸Ã¶ÔÄĸö×Óϵͳ½øÐе÷Õû¡£
¶þ¡¢LinuxµÄCPUµ÷¶È
     ÈÎ ºÎ¼ÆËã»úµÄ»ù±¾¹¦Äܶ¼Ê®·Ö¼òµ¥£¬ÄǾÍÊǼÆË㡣ΪÁËʵÏÖ¼ÆËãµÄ¹¦ÄܾͱØÐëÓÐÒ»¸ö·½·¨È¥¹ÜÀí¼ÆËã×ÊÔ´¡¢´¦ÀíÆ÷ºÍ¼ÆËãÈÎÎñ£¨Ò²±»½Ð×öÏ̻߳òÕß½ø³Ì£©¡£·Ç³£¸Ðл Ingo Molnar£¬ËûΪLinuxÄں˴øÀ´ÁËO£¨1£©CPUµ÷¶ÈÆ÷£¬Çø±ðÓÚ¾ÉÓеÄO£¨n£©µ÷¶ÈÆ÷£¬Ðµĵ÷¶ÈÆ÷ÊǶ¯Ì¬µÄ£¬¿ÉÒÔÖ§³Ö¸ºÔؾùºâ£¬²¢ÒԺ㶨µÄËٶȽøÐÐ ²Ù×÷¡£
е÷¶ÈÆ÷µÄ¿ÉÀ©Õ¹ÐԷdz£ºÃ£¬ÎÞÂÛ½ø³ÌÊýÁ¿»òÕß´¦ÀíÆ÷ÊýÁ¿£¬²¢ÇÒµ÷¶ÈÆ÷±¾ÉíµÄϵͳ¿ªÏú¸üÉÙ¡£Ðµ÷È¡Æ÷µÄË㷨ʹÓÃÁ½¸öÓÅÏȼ¶¶ÓÁС£
ÒýÓÃ
·»î¶¯ÔËÐжÓÁÐ
·¹ýÆÚÔËÐжÓÁÐ
     µ÷ ¶ÈÆ÷µÄÒ»¸öÖØҪĿ±êÊǸù¾ÝÓÅÏȼ¶È¨ÏÞÓÐЧµØΪ½ø³Ì·ÖÅäCPU ʱ¼äƬ£¬µ±·ÖÅäÍê³ÉºóËü±»ÁÐÔÚCPUµÄÔËÐжÓÁÐÖУ¬³ýÁË CPU µÄÔËÐжÓÁÐÖ®Í⣬»¹ÓÐÒ»¸ö¹ýÆÚÔËÐжÓÁС£µ±»î¶¯ÔËÐжÓÁÐÖеÄÒ»¸öÈÎÎñÓùâ×Ô¼ºµÄʱ¼äƬ֮ºó£¬Ëü¾Í±»Òƶ¯µ½¹ýÆÚÔËÐжÓÁÐÖС£ÔÚÒƶ¯¹ý³ÌÖУ¬»á¶ÔÆäʱ¼äƬÖØР½øÐм


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

ʵս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 Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

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

Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......

LinuxÏÂgetsockopt/setsockopt º¯Êý˵Ã÷

¹¦ÄÜÃèÊö£º
        »ñÈ¡»òÕßÉèÖÃ
Óëij¸öÌ×½Ó×Ö¹ØÁªµÄÑ¡ ÏѡÏî¿ÉÄÜ´æÔÚÓÚ¶à²ãЭÒé
ÖУ¬ËüÃÇ×Ü»á³öÏÖÔÚ×îÉÏÃæµÄÌ×½Ó×ֲ㡣µ±²Ù×÷Ì×½Ó×ÖÑ¡Ïîʱ£¬Ñ¡ÏîλÓڵIJãºÍÑ¡ÏîµÄÃû³Æ±ØÐë¸ø³ö¡£ÎªÁ˲Ù×÷Ì×½Ó×Ö²ãµÄÑ¡ÏӦ¸Ã ½«²ãµÄÖµÖ¸¶¨ÎªSOL_SOCKET¡£ÎªÁ˲Ù×÷ÆäËü²ãµÄÑ¡Ï¿ØÖÆÑ¡ÏîµÄºÏÊÊÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ