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

Linux 2.6Äں˵ÄÐÂËø»úÖÆ RCU

http://www.ibm.com/developerworks/cn/linux/l-rcu/
º¯ÊýÕªÒª£º
C´úÂë
/*¶ÁÕßÔÚ¶ÁÈ¡ÓÉRCU±£»¤µÄ¹²ÏíÊý¾ÝʱʹÓøú¯Êý±ê¼ÇËü½øÈë¶Á¶ËÁÙ½çÇø¡£*/ 
rcu_read_lock()  
/* 
¸Ãº¯ÊýÓërcu_read_lockÅä¶ÔʹÓã¬ÓÃÒÔ±ê¼Ç¶ÁÕßÍ˳ö¶Á¶ËÁÙ½çÇø¡£¼ÐÔÚÕâÁ½¸öº¯ÊýÖ®¼äµÄ´úÂëÇø³ÆΪ"¶Á¶ËÁÙ½çÇø"(read-side critical section)¡£¶Á¶ËÁÙ½çÇø¿ÉÒÔǶÌ×£¬Èçͼ3£¬ÁÙ½çÇø2±»Ç¶Ì×ÔÚÁÙ½çÇø1ÄÚ¡£ 
*/ 
rcu_read_unlock()  
 
/* 
¸Ãº¯ÊýÓÉRCUд¶Ëµ÷Óã¬Ëü½«×èÈûдÕߣ¬Ö±µ½¾­¹ýgrace periodºó£¬¼´ËùÓеĶÁÕßÒѾ­Íê³É¶Á¶ËÁÙ½çÇø£¬Ð´Õ߲ſÉÒÔ¼ÌÐøÏÂÒ»²½²Ù×÷¡£Èç¹ûÓжà¸öRCUд¶Ëµ÷Óøú¯Êý£¬ËûÃǽ«ÔÚÒ»¸ögrace periodÖ®ºóÈ«²¿±»»½ÐÑ¡£ 
*/ 
synchronize_rcu()  
/* 
º¯
Êý call_rcu Ò²ÓÉ RCU д¶Ëµ÷Óã¬Ëü²»»áʹдÕß×èÈû£¬Òò¶ø¿ÉÒÔÔÚÖжÏÉÏÏÂÎÄ»ò softirq ʹÓ㬶ø
synchronize_rcu¡¢synchronize_kernel ºÍsynchronize_shced
Ö»ÄÜÔÚ½ø³ÌÉÏÏÂÎÄʹÓ᣸ú¯Êý½«°Ñº¯Êý func ¹Ò½Óµ½ RCU»Øµ÷º¯ÊýÁ´ÉÏ£¬È»ºóÁ¢¼´·µ»Ø¡£Ò»µ©ËùÓÐµÄ CPU
¶¼ÒѾ­Íê³É¶ËÁÙ½çÇø²Ù×÷£¬¸Ãº¯Êý½«±»µ÷ÓÃÀ´ÊÍ·Åɾ³ýµÄ½«¾ø²»ÔÚ±»Ó¦ÓõÄÊý¾Ý¡£²ÎÊý head ÓÃÓڼǼ»Øµ÷º¯Êý func£¬Ò»°ã¸Ã½á¹¹»á×÷Ϊ±» RCU
±£»¤µÄÊý¾Ý½á¹¹µÄÒ»¸ö×ֶΣ¬ÒÔ±ãÊ¡È¥µ¥¶ÀΪ¸Ã½á¹¹·ÖÅäÄÚ´æµÄ²Ù×÷¡£ÐèÒªÖ¸³öµÄÊÇ£¬º¯Êý synchronize_rcu
µÄʵÏÖʵ¼ÊÉÏʹÓú¯Êýcall_rcu¡£ 
*/ 
void fastcall call_rcu(struct rcu_head *head,  
                                void (*func)(struct rcu_head *rcu))  
 
/* 
д¶Ëµ÷Ó㬰ÑÒ»¸öÖ¸Õëp¸³ÎªÖ¸Õëv¡£ 
*/ 
rcu_assign_pointer()  
typeof(p) rcu_assign_pointer(p, typeof(p) v);  
 
/* 
»ñµÃÖ¸ÕëpµÄ½âÒýÓÃÖµ 
*/ 
rcu_dereference()  
typeof(p) rcu_assign_pointer(p, typeof(p) v); 
http://group.ednchina.com/1036/21283.aspx
http://blog.chinaunix.net/u1/51562/showart_1341707.html
http://www.360doc.com/content/10/0106/17/701200_12820595.shtml


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

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

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

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

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

LinuxµÄÎå¸ö²éÕÒÃüÁî


×î½ü£¬ÎÒÔÚѧϰLinux£¬ÏÂÃæÊÇһЩ±Ê¼Ç¡£
ʹÓõçÄÔµÄʱºò£¬¾­³£ÐèÒª²éÕÒÎļþ¡£
ÔÚLinuxÖУ¬Óкܶ෽·¨¿ÉÒÔ×öµ½ÕâÒ»µã¡£¹úÍâÍøÕ¾LinuxHaxor×ܽáÁËÎåÌõÃüÁÄã¿ÉÒÔ¿´¿´×Ô¼ºÖªµÀ¼¸Ìõ¡£´ó¶àÊý³ÌÐòÔ±£¬¿ÉÄܾ­³£Ê¹ÓÃÆäÖеÄ2µ½3Ìõ£¬¶ÔÕâ5ÌõÃüÁºÜÊìϤµÄÈËÓ¦¸ÃÊDz»¶àµÄ¡£
1. find
findÊÇ×î³£¼ûºÍ×îÇ¿´óµÄ²éÕÒÃüÁÄã¿ÉÒÔÓà ......

[zz]ÔÚ linux ÏÂʹÓà CMake ¹¹½¨Ó¦ÓóÌÐò

Ô­ÎĵØÖ·£ºhttp://www.ibm.com/developerworks/cn/linux/l-cn-cmake/index.html
±¾ÎĽéÉÜÁËÒ»¸ö¿çƽ̨µÄ×Ô¶¯»¯¹¹½¨ÏµÍ³ CMake ÔÚ linux ÉϵÄʹÓ÷½·¨¡£ CMake ÊÇÒ»¸ö±È automake ¸ü¼ÓÈÝÒ×ʹÓõŤ¾ß£¬Äܹ»Ê¹³ÌÐòÔ±´Ó¸´ÔӵıàÒëÁ¬½Ó¹ý³ÌÖнâÍѳöÀ´¡£ÎÄÖÐͨ¹ýһЩÀý×Ó½éÉÜʹÓà CMake ´¦Àí¶àÔ´ÎļþĿ¼µÄ·½·¨¡¢²éÕÒ²¢Ê¹ÓÃÆäËû ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ