£¨×ªÔØ£©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
Ïà¹ØÎĵµ£º
£¨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 ......
linux/arch/i386/boot/compressed/head.S
ÔÚsetup()½áÊøºó£¬´Ëº¯Êý¾Í±»Òƶ¯µ½ÎïÀíµØÖ·0x00100000´¦»òÕß0x00001000´¦£¬ÕâÈ¡¾öÓÚÄÚºËÓ³ÏñÊDZ»¸ß×°ÔØµ½ramÖл¹ÊǵÍ×°ÔØµ½ramÖС£
½â¶Áº¯Êý£º
startup_32:
cld
cli
&n ......
gprof½éÉÜ
gprofÊÇGNU profiler¹¤¾ß£¬´æÔÚÓÚbinutils¹¤¾ß°ü¡£¿ÉÒÔÏÔʾ³ÌÐòÔËÐеēflat profile”£¬°üÀ¨Ã¿¸öº¯ÊýµÄµ÷ÓôÎÊý£¬Ã¿¸öº¯ÊýÏûºÄµÄ´¦ÀíÆ÷ʱ¼ä¡£Ò²¿ÉÒÔÏÔʾ“µ÷ÓÃͼ”£¬°üÀ¨º¯ÊýµÄµ÷ÓùØÏµ£¬Ã¿¸öº¯Êýµ÷Óû¨·ÑÁ˶àÉÙʱ¼ä¡£»¹¿ÉÒÔÏÔʾ“×¢Ê͵ÄÔ´´úÂ딣¬ÊdzÌÐòÔ´´úÂëµÄÒ»¸ö¸´±¾£¬±ê¼Ç ......