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

£¨×ªÔØ£©linuxÏÂloop deviceµÄʹÓÃ

http://en.wikipedia.org/wiki/Loop_device
In Unix-like operating systems, a loop device, vnd (vnode disk), or lofi (loopback file interface) is a pseudo-device that makes a file accessible as a block device.
Ëùνloop deviceÖ¸µÄ¾ÍÊÇÄÃÎļþÀ´Ä£Äâ¿éÉ豸¡£
Albert WoodhullÓ"The Linux loop device can be used to handle this - it makes a file look like a filesystem, and the file can be defined as a byte offset from the beginning of a primary partition"¡£
losetup Óà À´ ½« loop device Óë µµ °¸ »ò block device Áª½á ¡¢ ·Ö Àë . ÒÔ ¼° ²é ѯ loop device Ä¿ ǰ µÄ ×´ ¿ö , Èç Ö»¸ø ¶¨ loop_device µÄ ²Î Êý . Ôò Ðã ³ö loop device Ä¿ ǰ µÄ×´ ¿ö . 
×î½üÔÚ¿´<> ( ¼ûhttp://www.oldlinux.org/index_cn.html)£¬¶ÔLinuxÏÂloopbackÉ豸µÄʹÓÃ×ÁÄ¥ÁËÒ»¶Îʱ¼ä¡£
¼Ç¼ÈçÏ£º
Ò»¡¢imag ÎļþµÄÉú³É
1. ¿ÉÒÔͨ¹ýbochsÌṩµÄbximage.exeÉú³É¡£
2. ÔÚFC3ÏÂͨ¹ýÃüÁîdd if=/dev/zero of=test.img bs=512 count=524160 ÃüÁîÉú³É¡£
¶þ¡¢¶ÔÉú³ÉµÄÎļþ½øÐзÖÇø
     1¡¢¿ÉÒÔ½«Éú³ÉµÄimageÎļþ¹ÒÔØÔÚbochsÏ£¬µ±×÷´ÓÊôÓ²ÅÌ
          fdisk /dev/hdb ÃüÁî¶ÔÓ²ÅÌ·ÖÇø
     2¡¢ÔÚFC3ÏÂ
          losetup /dev/loop0 test.img
          fdisk /dev/loop0 ²»¹ý·¢ÏÖÔÚÕâÖÖ·½Ê½ÏµÄfdiskÔÚ±£´æµÄʱºò»áÌáʾ²ÎÊý´íÎó¡£
Èý¡¢´´½¨Îļþϵͳ
¾­²âÊÔÖ»ÄÜÔÚbochsÏ´´½¨Îļþϵͳ£¬ÎÞ·¨ÔÚloopbackÉ豸ÉÏ´´½¨Îļþϵͳ¡£
Èç  mkfs /dev/hdb1  64000
ËÄ¡¢Fdisk·ÖÇø±íÏÔʾ²ÎÊý(±¾Îľ«»ª£©
ÔÚnormalģʽϰ´pÏÔʾ·ÖÇø±í£¬ÁÐÃû˵Ã÷
           start       end          blocks                                   id              s


Ïà¹ØÎĵµ£º

ʵս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 2.6Ô´´úÂëÇé¾°·ÖÎö±Ê¼Ç֮ϵͳÆô¶¯2

linux/arch/i386/boot/compressed/head.S
ÔÚsetup()½áÊøºó£¬´Ëº¯Êý¾Í±»Òƶ¯µ½ÎïÀíµØÖ·0x00100000´¦»òÕß0x00001000´¦£¬ÕâÈ¡¾öÓÚÄÚºËÓ³ÏñÊDZ»¸ß×°ÔØµ½ramÖл¹ÊǵÍ×°ÔØµ½ramÖС£
½â¶Áº¯Êý£º
startup_32:
        cld
        cli
  &n ......

Linuxѧϰ ѰÕÒ³ÌÐòÈȵ㣨һ£©£ºgprof

gprof½éÉÜ
gprofÊÇGNU profiler¹¤¾ß£¬´æÔÚÓÚbinutils¹¤¾ß°ü¡£¿ÉÒÔÏÔʾ³ÌÐòÔËÐеēflat profile”£¬°üÀ¨Ã¿¸öº¯ÊýµÄµ÷ÓôÎÊý£¬Ã¿¸öº¯ÊýÏûºÄµÄ´¦ÀíÆ÷ʱ¼ä¡£Ò²¿ÉÒÔÏÔʾ“µ÷ÓÃͼ”£¬°üÀ¨º¯ÊýµÄµ÷ÓùØÏµ£¬Ã¿¸öº¯Êýµ÷Óû¨·ÑÁ˶àÉÙʱ¼ä¡£»¹¿ÉÒÔÏÔʾ“×¢Ê͵ÄÔ´´úÂ딣¬ÊdzÌÐòÔ´´úÂëµÄÒ»¸ö¸´±¾£¬±ê¼Ç ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ