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

Linux¹Ø»úÃüÁîÏê½â

 ÔÚlinuxÏÂһЩ³£ÓõĹػú/ÖØÆôÃüÁîÓÐshutdown¡¢halt¡¢reboot¡¢¼°init£¬ËüÃǶ¼
¿ÉÒÔ´ïµ½ÖØÆôϵͳµÄÄ¿µÄ£¬µ«Ã¿¸öÃüÁîµÄÄÚ²¿¹¤×÷¹ý³ÌÊDz»Í¬µÄ£¬Í¨¹ý±¾ÎĵĽéÉÜ£¬Ï£
ÍûÄã¿ÉÒÔ¸ü¼ÓÁé»îµÄÔËÓø÷ÖֹػúÃüÁî¡£
¡¡¡¡ 1.shutdown
   shutdownÃüÁȫµØ½«ÏµÍ³¹Ø»ú¡£ ÓÐЩÓû§»áʹÓÃÖ±½Ó¶ÏµôµçÔ´µÄ·½Ê½À´¹Ø±Õlinux£¬
ÕâÊÇÊ®·ÖΣÏյġ£ÒòΪlinuxÓëwindows²»Í¬£¬Æäºǫ́ÔËÐÐ×ÅÐí¶à½ø³Ì£¬ËùÒÔÇ¿Öƹػú¿ÉÄÜ
»áµ¼Ö½ø³ÌµÄÊý¾Ý¶ªÊ§﹐ʹϵͳ´¦ÓÚ²»Îȶ¨µÄ״̬﹐ÉõÖÁÔÚÓеÄϵͳÖлáËð»µÓ²¼þÉ豸¡£
    ¶øÔÚϵͳ¹Ø»úǰʹÓÃshutdownÃüÁî﹐ϵͳ¹ÜÀíÔ±»á֪ͨËùÓеǼµÄÓû§ÏµÍ³½«Òª¹Ø±Õ¡£
²¢ÇÒloginÖ¸Áî»á±»¶³½á﹐¼´ÐµÄÓû§²»ÄÜÔٵǼ¡£Ö±½Ó¹Ø»ú»òÕßÑÓ³ÙÒ»¶¨µÄʱ¼ä²Å¹Ø»ú
¶¼ÊÇ¿ÉÄܵÄ﹐»¹¿ÉÄÜÖØÆô¡£ÕâÊÇÓÉËùÓнø³Ì¡²process¡³¶¼»áÊÕµ½ÏµÍ³ËùËÍ´ïµÄÐźš²signal¡³
¾ö¶¨µÄ¡£ÕâÈÃÏñviÖ®ÀàµÄ³ÌÐòÓÐʱ¼ä´¢´æÄ¿Ç°ÕýÔڱ༭µÄÎĵµ﹐¶øÏñ´¦ÀíÓʼþ¡²mail¡³ºÍ
ÐÂÎÅ¡²news¡³µÄ³ÌÐòÔò¿ÉÒÔÕý³£µØÀ뿪µÈµÈ¡£
    shutdownÖ´ÐÐËüµÄ¹¤×÷ÊÇËÍÐźš²signal¡³¸øinit³ÌÐò﹐ÒªÇóËü¸Ä±ärunlevel¡£
Runlevel 0±»ÓÃÀ´Í£»ú¡²halt¡³﹐runlevel 6ÊÇÓÃÀ´ÖØм¤»î¡²reboot¡³ÏµÍ³﹐
¶ørunlevel 1ÔòÊDZ»ÓÃÀ´ÈÃϵͳ½øÈë¹ÜÀí¹¤×÷¿ÉÒÔ½øÐеÄ״̬﹔ÕâÊÇÔ¤ÉèµÄ﹐¼Ù¶¨Ã»ÓÐ-hÒ²
ûÓÐ-r²ÎÊý¸øshutdown¡£ÒªÏëÁ˽âÔÚÍ£»ú¡²halt¡³»òÕßÖØпª»ú¡²reboot¡³¹ý³ÌÖÐ×öÁËÄÄЩ
¶¯×÷﹐Äã¿ÉÒÔÔÚÕâ¸öÎļþ/etc/inittabÀï¿´µ½ÕâЩrunlevelsÏà¹ØµÄ×ÊÁÏ¡£
¡¡¡¡ shutdown ²ÎÊý˵Ã÷:
¡¡¡¡ [-t] Ôڸı䵽ÆäËürunlevel֮ǰ﹐¸æËßinit¶à¾ÃÒÔºó¹Ø»ú¡£
¡¡¡¡ [-r] ÖØÆô¼ÆËãÆ÷¡£
¡¡¡¡ [-k] ²¢²»ÕæÕý¹Ø»ú﹐Ö»ÊÇË;¯¸æÐźŸøÿλµÇ¼Õß¡²login¡³¡£
¡¡¡¡ [-h] ¹Ø»úºó¹Ø±ÕµçÔ´¡²halt¡³¡£
¡¡¡¡ [-n] ²»ÓÃinit﹐¶øÊÇ×Ô¼ºÀ´¹Ø»ú¡£²»¹ÄÀøʹÓÃÕâ¸öÑ¡Ïî﹐¶øÇÒ¸ÃÑ¡ÏîËù²úÉúµÄºó¹ûÍù
Íù²»×ÜÊÇÄãËùÔ¤Æڵõ½µÄ¡£
¡¡¡¡ [-c] cancel current processÈ¡ÏûÄ¿Ç°ÕýÔÚÖ´ÐеĹػú³ÌÐò¡£ËùÒÔÕâ¸öÑ¡ÏȻûÓÐ
ʱ¼ä²ÎÊý﹐µ«ÊÇ¿ÉÒÔÊäÈëÒ»¸öÓÃÀ´½âÊ͵ÄѶϢ﹐¶øÕâÐÅÏ¢½«»áË͵½Ã¿Î»Ê¹ÓÃÕß¡£
¡¡¡¡ [-f] ÔÚÖØÆô¼ÆËãÆ÷¡²r


Ïà¹ØÎĵµ£º

ʵս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 Ï¿´pps

 
ÈçºÎ°²×°:
ÏÈ°Ñ Mingming µÄ Launchpad PPA Ìí¼Óµ½ÄãµÄÈí¼þÔ´£º
½«ÏÂÃæÁ½ÐÐÌí¼Óµ½ /etc/apt/sources.list/totem-pps.list
deb http://ppa.launchpad.net/portis25/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/portis25/ppa/ubuntu karmic main
ÔÚÖÕ¶ËÖÐÖ´ÐÐÏÂÃæµÄÃüÁîÀ´»ñÈ¡ÉÏÊö PPA Ô´µÄÃÜÔ¿¡£ ......

linuxÏÂÉú²úÕßÏû·ÑÕßµÄʵÏÖ

 #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <semaphore.h>
#define M 10 // »º³åÊýÄ¿
int in = 0;   // Éú²úÕß·ÅÖòúÆ·µÄλÖÃ
int out = 0; // Ïû·ÑÕßÈ¡²úÆ·µÄλÖÃ
int buff[M] = {0}; // »º³å³õʼ»¯Îª0£¬ ¿ªÊ¼Ê±Ã ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ