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

LINUX½ø³Ì¹ÜÀí

1. ½ø³ÌÊÇʲô?
Ò»¸ö½ø³Ì¾ÍÊdzöÓÚÖ´ÐÐÆڵijÌÐò, °üÀ¨:¿ÉÖ´ÐгÌÐò´úÂë(´úÂë¶Î), ´ò¿ªµÄÎļþ, ¹ÒÆðµÄÐźÅ, ÄÚºËÄÚ²¿Êý¾Ý, ´¦ÀíÆ÷״̬, µØÖ·¿Õ¼ä, Ò»¸ö»ò¶à¸öÖ´ÐÐÏß³Ì, µ±È»»¹°üÀ¨ÓÃÀ´´æ·ÅÈ«¾Ö±äÁ¿µÄÊý¾Ý¶Î, µÈµÈ.
 
2. ʲôÊÇÏß³Ì?ËüºÍ½ø³ÌµÄ¹ØϵÊÇʲôÑùµÄ? Ïß³ÌÔÚLINUXÖоßÌåÊÇÔõôÑùʵÏÖµÄ?
ÊÇÔÚ½ø³ÌÖлµÄ¶ÔÏó, ¶Ôlinux¶øÑÔ, Ïß³ÌÖ»²»¹ýÊÇÒ»ÖÖÌØÊâµÄ½ø³Ì.
Ïß³ÌÖ®¼ä¿ÉÒÔ¹²ÏíÐéÄâÄÚ´æ, µ«ÓµÓи÷×ÔµÄÐéÄâ´¦ÀíÆ÷.
 
3. ½ø³ÌÔÚÄÚºËÖеıíʾ.
3.1 ͨ¹ý´óÔ¼1.7K(ÔÚ32λµÄ»úÆ÷ÉÏ)µÄ½ø³ÌÃèÊö·ûtask_structÀ´±íʾ, ËùÓÐÕâЩ½á¹¹Ìå×é³ÉÒ»¸öË«ÏòµÄÑ­»·Áбí(±»³ÆΪtask list).
3.2 Õâ¸ötask_struct°üº¬ÁËÄں˹ÜÀíÒ»¸ö½ø³ÌËùÐèµÄËùÓÐÐÅÏ¢.
3.3. ÔÚ2.6ÒÔÇ°µÄÄÚºËÖÐ,¸÷¸ö½ø³ÌµÄtask_struct´æ·ÅÔÚËüÃÇÄÚºËÕ»µÄβ¶Ë; ÏÖÔÚÊÇÓÃslab·ÖÅäÆ÷À´¶¯Ì¬Éú³ÉµÄ, Ö»ÐèÔÚÕ»µ×(¶ÔÓÚÏòÏÂÔö³¤µÄÕ»À´Ëµ)»òÕ»¶¥(¶ÔÓÚÏòÉÏÔö³¤µÄÕ»À´Ëµ)´´½¨Ò»¸öеĽṹstruct_thread_info.
task_struct½á¹¹Ìå:
 
struct_thread_info½á¹¹Ìå:
 
3.4 ½ø³ÌÓÐÏÂÃæÕâЩ״̬:
 
4. ½ø³ÌµÄ´´½¨
 
 
5. ½ø³ÌµÄÖÕ½á¹ý³Ì
 
 
 
һЩ´óµÄ¸ÅÄî:
1. UNIX²Ù×÷ϵͳµÄÁ½¸ö»ù±¾³éÏó: ½ø³ÌºÍÎļþ.
2. ÔÚÏÖ´ú²Ù×÷ϵͳÖÐ, ½ø³ÌÌṩÁ½ÖÖÐéÄâ»úÖÆ: ÐéÄâ´¦ÀíÆ÷ºÍÐéÄâÄÚ´æ.
 
 


Ïà¹ØÎĵµ£º

ʵս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ϽâѹÃüÁî´óÈ«

.tar 
½â°ü£ºtar xvf FileName.tar
´ò°ü£ºtar cvf FileName.tar DirName
£¨×¢£ºtarÊÇ´ò°ü£¬²»ÊÇѹËõ£¡£©
———————————————
.gz
½âѹ1£ºgunzip FileName.gz
½âѹ2£ºgzip -d FileName.gz
ѹËõ£ºgzip FileName
.tar. ......

linuxÐÞ¸ÄÖ÷»úÃûµÄ·½·¨

Ô­ÎĵØÖ·£ºhttp://blog.csdn.net/wyzxg/archive/2007/10/23/1840110.aspx
 linuxÐÞ¸ÄÖ÷»úÃûµÄ·½·¨ 
linuxÐÞ¸ÄÖ÷»úÃûµÄ·½·¨
ÓÃhostnameÃüÁî¿ÉÒÔÁÙʱÐ޸ĻúÆ÷Ãû£¬µ«»úÆ÷ÖØÐÂÆô¶¯Ö®ºó¾Í»á»Ö¸´Ô­À´µÄÖµ¡£
#hostname   //²é¿´»úÆ÷Ãû
#hostname -i  //²é¿´±¾»úÆ÷Ãû¶ÔÓ¦µÄipµØÖ·
ÁíÍâÒ»ÖÖ·½·¨¾ÍÊÇ ......

Linux Ï´®¿Ú±à³ÌÈëÃÅ[IBM]

¼¶±ð£º ³õ¼¶
×ó½õ (zuo170@163.com), ¸±×ܲÃ, ÄÏɳ×ÊѶ¿Æ¼¼Ô°
2003 Äê 7 ÔÂ 03 ÈÕ
Linux ²Ù×÷ϵͳ´ÓÒ»¿ªÊ¼¾Í¶Ô´®ÐпÚÌṩÁ˺ܺõÄÖ§³Ö£¬±¾ÎÄ¾Í Linux ϵĴ®ÐпÚͨѶ±à³Ì½øÐмòµ¥µÄ½éÉÜ¡£
´®¿Ú¼ò½é
´®ÐпÚÊǼÆËã»úÒ»ÖÖ³£ÓõĽӿڣ¬¾ßÓÐÁ¬½ÓÏßÉÙ£¬Í¨Ñ¶¼òµ¥£¬µÃµ½¹ã·ºµÄʹÓᣳ£ÓõĴ®¿ÚÊÇ RS-232-C ½Ó¿Ú£¨ÓÖ³Æ EIA RS-2 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ