LinuxʵÓôúÂë
LinuxʵÓôúÂë--Îļþϵͳ²Ù×÷
from cu
[size=13px]ÕâƪÎĵµÊµÓÃÐÔºÜÇ¿£¬Ëü²»Êǽ²Ä³¸öÃüÁîµÄ²ÎÊý¾ßÌ庬Ò壬¶øÊÇ´Óʵ¼Ê¹¤×÷µÄ½Ç¶ÈÀ´¿¼ÂÇ£¬Íê³Éʲô¹¤×÷ÐèҪʲôָÁî¡£
Îļþϵͳ²Ù×÷ÊÇ×î»ù±¾µÄ²Ù×÷£¬Ã»ÓÐÎļþϵͳ£¬²Ù×÷ϵͳ¸ù±¾¾ÍÔËÐв»ÁË¡£
ÏÂÃæÊÇÎÒÃǾ³£Òª×öµÄһЩÊÂÇé¡£ÔÚÏÂÃæ¾ßÌå²ÎÊýÒâÒå²»½âÊÍ£¬ÒªÁ˽âÕâЩ
¿ÉÒÔ²éѯ¸ÃÃüÁî°ïÖúÎĵµ
1. ´´½¨Ä¿Â¼
mkdir
NO1. ÔÚµ±Ç°Â·¾¶´´½¨Ò»¼¶Ä¿Â¼
[root@rehat root]# mkdir test
NO2. ÔÚµ±Ç°Â·¾¶´´½¨¶à¼¶Ä¿Â¼
[root@rehat root]# mkdir -p mytest/test1/test1_1
NO3. ÔÚ´´½¨Ä¿Â¼µÄͬʱ¸øн¨µÄĿ¼¸³È¨ÏÞ
[root@rehat root]# mkdir -m 777 testmod
ÕâÑùÈκÎÈ˶ԴËĿ¼¶¼ÓÐÈκÎȨÏÞ
2. ¸´ÖÆÎļþÓëÎļþ¼Ð
cp
NO1. ¸´ÖÆÖ¸¶¨Ä¿Â¼µÄÎļþµ½µ±Ç°Ä¿Â¼£¬²¢ÖØÃüÃû
[root@rehat root]# cp ~/.bashrc bashrc_bak
NO2. Ç¿ÖƸ´ÖÆÖ¸¶¨Ä¿Â¼µÄÎļþµ½µ±Ç°Ä¿Â¼£¬¶ø²»¹Üµ±Ç°Ä¿Â¼ÊÇ·ñº¬ÓиÃÎļþ
[root@rehat root]# cp -f ~/.bashrc bashrc
NO2. ¸´ÖÆÖ¸¶¨Ä¿Â¼µ½µ±Ç°Ä¿Â¼
[root@rehat root]# cp -r /root/test .
[root@rehat root]# cp -r /root/test/ .
Á½ÕßЧ¹ûÒ»Ñù£¬ÔÚ¸´ÖÆĿ¼ʱ£¬»á½«Ô´Â·¾¶µÄ×îºóÒ»¼¶Ä¿Â¼È«²¿¸´ÖƹýÈ¥£¬°üÀ¨Ëü±¾Éí¡£
NO3. ¸´ÖÆÖ¸¶¨Ä¿Â¼µÄÎļþµ½Ö¸¶¨Ä¿Â¼
[root@rehat root]# cp ~/.bashrc /bak/.bashrc
NO4. ÔÚ¸´ÖÆʱ½«Ô´ÎļþµÄÈ«²¿ÊôÐÔÒ²¸´ÖƹýÀ´¡£Èô²»Ö¸¶¨²ÎÊý£¬ÔòÄ¿±êÎļþÓëÔ´ÎļþÊôÐÔ¿ÉÄܲ»Ò»Ö¡£
[root@rehat root]# cp -a ~/.ba
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......
¹Ø¼ü´Ê£º Linux ϵͳ¹ÜÀí
1¡¢²é¿´Ä³Îļþ ......
Linux
Ô×Ó²Ù×÷µÄ·ÖÎö
±¾ÎÄÕë¶ÔLinuxÌṩµÄÔ×Ó²Ù×÷º¯Êý
atomic_dec_and_test
×öÁËÏêϸµÄʵÀý·ÖÎö£¬½âÊÍÁËÆäÔ×ÓÐԵı¾ÖÊÒâÒå¡£
²¢¶Ô
volatile
²úÉúµÄÎó½â×öÁ˽âÊÍ¡£
1.
atomic_dec_and_test
·ÖÎö
£¨
1
£©ÏÈÀ´¿´
atomic_dec_and_test
µÄ¶¨Ò壺
11 #ifdef CONFIG_SMP
12 #def ......
ÔÚlinuxÏÂÃ濪·¢c++µÄÓ¦ÓóÌÐò£¬Ê¹ÓÃstlµÄ¿â£¬·¢ÏÖ»¹ÊDz»ÊǺܷ½±ã£¬ÓÈÆäÊÇÆäµ÷ÊÔÆ÷¡£
ʹÓõÄÊÇkdevelop¼¯³É»·¾³£¬±à±à´úÂ뻹Ëã·½±ã£¬±àÒëÒ²ÐУ¬µ«Êǵ÷ÊԵĻ°¸Ð¾õÌر𲻷½±ã¡£Ëüµ÷ÓÃÁËgdb£¬µ«ÊÇΪÁ˵÷ÊÔ·½±ã×Ô¼ºÓÖ¼ÓÁ˺Ü
¶à¶îÍâµÄÃüÁîµ¼ÖºܶàÐÅÏ¢»á¿´²»µ½¡£×Ô¼ºÒ»Ö±ÓÃgdb£¬ÓÐÈËÓÃddd£¬ºóÕßÒ²Êǵ÷ÓÃgdb£¬µ«ÊÇ·¢ÏÖÈ ......