LinuxÉϵÄÐéÄ⻯¼¼Êõ
ÐéÄ⻯¼¼ÊõµÄ·½·¨, ¼Ü¹¹ºÍʵÏÖ¸ÅÀÀ
¼¶±ð: Öм¶
M. Tim Jones [mtj@mtjones.com], ¹ËÎʹ¤³Ìʦ, Emulex
ÔÎÄ: Virtual Linux
Òë: ÕÔçæ cn.zhaoke.com
http://blog.zhaoke.com/45.html
2006Äê12ÔÂ29ÈÕ
ÐéÄ⻯¼¼ÊõµÄÓ¦ÓÃÊ®·Ö¹ã·º. µ±Ç°ÐéÄ⻯¼¼ÊõÖ÷Òª¹Ø×¢ÓÚ·þÎñÆ÷µÄÐéÄ⻯, »òÔÚµ¥¸öÖ÷»úÉϼĴæ¶à¸ö¶ÀÁ¢µÄ²Ù×÷ϵͳ. ±¾ÎÄÊ×ÏȽéÉÜÐéÄ⻯¼¼ÊõµÄÔÀí, È»ºóÌÖÂÛ¶à¸öÐéÄ⻯¼¼ÊõµÄʵÏÖ·½·¨. ÁíÍâ½éÉÜÁËһЩÆäËüµÄÐéÄ⻯¼¼Êõ, ±ÈÈçLinuxÉϲÙ×÷ϵͳ¼¶µÄÐéÄ⻯¼¼Êõ.
ÐéÄ⻯°ÑÊÂÎï´ÓÒ»ÖÖÐÎʽ¸Ä±äΪÁíÒ»ÖÖÐÎʽ. ¼ÆËã»úµÄÐéÄ⻯ʹµ¥¸ö¼ÆËã»ú¿´ÆðÀ´Ïñ¶à¸ö¼ÆËã»ú»òÍêÈ«²»Í¬µÄ¼ÆËã»ú.
ÐéÄ⻯¼¼ÊõÒ²¿ÉÒÔʹ¶ą̀¼ÆËã»ú¿´ÆðÀ´Ïñһ̨¼ÆËã»ú. Õâ½Ð×ö·þÎñÆ÷¾ÛºÏ(server aggregation)»òÍø¸ñ¼ÆËã(grid computing).
Ê×ÏÈÎÒÃǻعËÒ»ÏÂÐéÄ⻯¼¼ÊõµÄÀúÊ·.
ÐéÄ⻯¼¼ÊõµÄÀúÊ·
ÐéÄ⻯¼¼Êõ²»ÊÇÒ»¸öеÄÖ÷Ìâ; ʵ¼ÊÉÏ, ËüÒÑÓÐ40ÄêµÄÀúÊ·. ×îÔçʹÓÃÐéÄ⻯¼¼ÊõµÄÊÇIBM 7044¼ÆËã»ú,
ËüÊÇ»ùÓÚMIT(ÂéÊ¡Àí¹¤Ñ§Ôº)ΪIBM704¼ÆËã»ú¿ª·¢µÄ·ÖʱϵͳCTSS(Compatible Time Sharing System),
ºÍÂü³¹Ë¹ÌØ´óѧµÄAtlasÏîÄ¿(ÊÀ½ç×îÔçµÄ³¬¼¶¼ÆËã»úÖ®Ò»), Ê×´ÎʹÓÃÁËÇëÇóµ÷Ò³ºÍϵͳ¹ÜÀí³ÌÐòµ÷ÓÃ.
Ó²¼þÐéÄ⻯
IBMÔçÔÚ1960Äê¾ÍÈÏʶµ½ÐéÄ⻯¼¼ÊõµÄÖØÒªÐÔ, ÓÚÊÇ¿ª·¢ÁËÐͺÅΪModel 67µÄSystem/360Ö÷»ú. Model
67Ö÷»úͨ¹ýÐéÄâ»ú¼àÊÓÆ÷(VMM, Virtual Machine Monitor)ÐéÄâËùÓеÄÓ²¼þ½Ó¿Ú. ÔÚÔçÆڵļÆËãÖÐ,
²Ù×÷ϵͳ±»³Æ×öSupervisor. Äܹ»ÔËÐÐÔÚÆäËü²Ù×÷ϵͳ֮ÉϵIJÙ×÷ϵͳ±»³Æ×öhypervisor(Ãû³ÆÊ״γöÏÖÔÚ1970Äê).
VMMÖ±½ÓÔËÐÐÔڵײãÓ²¼þÉÏ, ÔÊÐíÖ´Ðжà¸öÐéÄâ»ú(VMs). ÿһ¸öVM(ÐéÄâ»ú)ÔËÐÐ×Ô¼ºµÄ²Ù×÷ϵͳʵÀý — ÔçÆÚʱºò³ÆΪCMS,
»ò»á»°¼àÊÓϵͳ(CMS, Conversational Monitor System). È»ºóVM¼ÌÐø·¢Õ¹. ½ñÌìÄãÄܹ»ÔÚSystem
z9Ö÷»úÉÏ·¢ÏÖVM, ËüÄܹ»Ïòºó¼æÈÝ, ÉõÖÁÊÇSystem/360.
´¦ÀíÆ÷ÐéÄ⻯
ÁíÍâÒ»¸öÔçÆÚʹÓõÄÐéÄ⻯¼¼Êõ, ·ÂÕæ´¦ÀíÆ÷, Ò²½Ð×öP-code(or pseudo-code)»ú. P-codeÊÇÒ»ÖÖ»úÆ÷ÓïÑÔ,
ÔËÐÐÔÚÐéÄâ»úÉ϶ø²»ÊÇʵ¼ÊµÄÓ²¼þ. ÖªÃûµÄP-codeÓïÑÔÔÚ1970ÄêÓɼÓÖÝ´óѧʥµØÑǸç·ÖУµÄPascalϵͳÏîÄ¿×鿪·¢.
Ëü¿ÉÒÔ°ÑPascal³ÌÐò±àÒë³ÉP-code´úÂë, È»ºóÔÚ¾ßÓÐP-code¹¦ÄܵÄÐéÄâ»úÉÏÔËÐÐ. P-code³ÌÐò¾ßÓи߶ȿÉÒÆÖ²ÐÔ,
Äܹ»ÔËÐÐÔÚÈκξßÓÐP-code¹¦ÄܵÄÐéÄâ»úÉÏ.
1960ÄêµÄBCPLÓïÑÔ(»ù±¾×éºÏ³ÌÐòÉè¼ÆÓïÑÔ, Basic Combined Programming
Language)ҲʹÓÃÁËͬÑùµÄ¸ÅÄî, ËüÊÇCÓïÑÔµÄÇ°Éí. ±àÒëÆ÷
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ 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 ......
˵Ã÷1£º
ÎÄ×ÖÖеÄY±íʾѡÔñ½øÄںˡ£M±íʾ±à³ÉÄ£¿é¡£N±íʾ²»Ñ¡Ôñ¡£ÓеÄÖ»ÄÜÑ¡Y£¬ÓеÄÖ»ÄÜÑ¡M¡£
ÔÚmake menuconfig Ï£¬£ª±íʾY£¬M±íʾM£¬¿Õ°×±íʾN¡£
make xconfigÏ£¬√ ±íʾY£¬? ±íʾM£¬¿Õ°×±íʾN¡£
˵Ã÷2£º
²Ëµ¥ÖУ¬ÓеÄÑ¡ÏîÄãÑ¡ÁËY²Å³öÏÖ£¬ÓеÄÑ¡ÁËY£¬Ëü·´¶ø²»»á³öÏÖ¡£ÓеÄÑ¡Ïî¸ù±¾²»»áÌṩѡÔñ¡£ËùÒÔÎÒÌṩµ ......