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

22.1.1 LinuxÆô¶¯µÄ»ù±¾²½Öè

22.1.1  LinuxÆô¶¯µÄ»ù±¾²½Öè
ÒªÍêÕû½²ÊöLinuxµÄÆô¶¯¹ý³Ì£¬ÐèҪ׷Ëݵ½°´ÏµçÔ´¿ª¹ØµÄÄÇÒ»¿Ì¡£PCÒýµ¼µÄµÚÒ»²½ÊÇÖ´Ðд洢ÔÚROM£¨Ö»¶Á´æ´¢Æ÷£©ÖдúÂ룬ÕâÖÖÒýµ¼´úÂëͨ³£±»³ÆΪBIOS£¨»ù±¾ÊäÈëÊä³öϵͳ£¬Basic Input/Ouput System£©¡£BIOSÖªµÀºÍÒýµ¼ÓйصÄÓ²¼þÉ豸µÄÐÅÏ¢£¬°üÀ¨´ÅÅÌ¡¢¼üÅÌ¡¢´®Ðпڡ¢²¢Ðпڵȣ¬²¢¸ù¾ÝÉèÖÃÑ¡Ôñ´ÓÄÄÒ»¸öÉ豸Òýµ¼¡£
È·¶¨Òýµ¼É豸ºó£¨Í¨³£ÊǵÚÒ»¿éÓ²ÅÌ£©£¬¼ÆËã»ú¾Í³¢ÊÔ¼ÓÔظÃÉ豸¿ªÍ·512¸ö×Ö½ÚµÄÐÅÏ¢£¬°üº¬Õâ512¸ö×ֽڵĶα»³Æ×÷MBR£¨Master Boot Record£¬Ö÷Òýµ¼¼Ç¼£©¡£MBRµÄÖ÷ÒªÈÎÎñÊǸæËß¼ÆËã»ú´ÓʲôµØ·½¼ÓÔØÏÂÒ»¸öÒýµ¼³ÌÐò£¬“ÏÂÒ»¸ö”Òýµ¼³ÌÐò±»³ÆΪ“Òýµ¼¼ÓÔØÆ÷£¨Boot Loader£©”¡£Òýµ¼¼ÓÔØÆ÷¸ºÔð¼ÓÔزÙ×÷ϵͳµÄÄںˣ¬GrubºÍLILO¾ÍÊÇLinuxÉÏ×îÖøÃûµÄÁ½¸öÒýµ¼¼ÓÔØÆ÷¡£
½ÓÏÂÀ´·¢ÉúµÄÊÂÇé¾ÍËæ²Ù×÷ϵͳµÄ²»Í¬¶ø²»Í¬ÁË¡£¶ÔÓÚLinux¶øÑÔ£¬»ù±¾µÄÒýµ¼²½Öè°üÀ¨ÒÔϼ¸¸ö½×¶Î¡£
£¨1£©¼ÓÔز¢³õʼ»¯LinuxÄںˡ£
£¨2£©ÅäÖÃÓ²¼þÉ豸¡£
£¨3£©Äں˴´½¨×Ô·¢½ø³Ì¡£
£¨4£©ÓÉÓû§¾ö¶¨ÊÇ·ñ½øÈëÊÖ¹¤Òýµ¼Ä£Ê½¡£
£¨5£©£¨ÓÉinit½ø³Ì£©Ö´ÐÐϵͳÆô¶¯½Å±¾¡£
£¨6£©½øÈë¶àÓû§Ä£Ê½¡£
¿É¼û£¬LinuxÄÚºË×ÜÊǵÚÒ»¸ö±»¼ÓÔصĶ«Î÷¡£ÄÚºËÖ´ÐаüÀ¨Ó²¼þ¼ì²âÔÚÄÚµÄÒ»Çлù´¡²Ù×÷£¬È»ºó´´½¨¼¸¸ö½ø³Ì¡£ÕâЩÄں˼¶±ðµÄ½ø³Ì±»³Æ×ö“×Ô·¢”½ø³Ì¡£±¾Õ£¨»òÐíÒ²ÊÇÕû¸öϵͳ£©×îÖØÒªµÄinit½ø³Ì¾ÍÊÇÔÚÕâ¸ö½×¶Î´´½¨µÄ¡£
ÊÂÇéµ½ÕâÀﻹûÓÐÍê¡£Äں˴´½¨µÄ½ø³ÌÖ»ÄÜÖ´ÐÐ×î»ù±¾µÄÓ²¼þ²Ù×÷ºÍµ÷¶È£¬¶øÄÇЩִÐÐÓû§¼¶²Ù×÷µÄ½ø³Ì£¨ÖîÈç½ÓÊܵǼ£©»¹Ã»Óд´½¨¡£ÕâЩÈÎÎñ×îºó¶¼±»Äں˓Ï·Ŕ¸øinit½ø³ÌÀ´Íê³É£¬Òò´Ë£¬init½ø³ÌÊÇϵͳÉϳýÁ˼¸¸öÄÚºË×Ô·¢½ø³ÌÖ®ÍâËùÓнø³ÌµÄ×æÏÈ¡£


Ïà¹ØÎĵµ£º

ʵս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 Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

LinuxÖ÷ÒªshellÃüÁîÏê½â

 shellÊÇÓû§ºÍLinux²Ù×÷ϵͳ֮¼äµÄ½Ó¿Ú¡£LinuxÖÐÓжàÖÖshell£¬ÆäÖÐȱʡʹÓõÄÊÇBash¡£±¾Õ½²ÊöÁËshellµÄ¹¤×÷Ô­Àí£¬shellµÄÖÖÀ࣬shellµÄÒ»°ã²Ù×÷¼°BashµÄÌØÐÔ¡£
¡¡Ê²Ã´ÊÇshell
LinuxϵͳµÄshell×÷Ϊ²Ù×÷ϵͳµÄÍâ¿Ç£¬ÎªÓû§ÌṩʹÓòÙ×÷ϵͳµÄ½Ó¿Ú¡£ËüÊÇÃüÁîÓïÑÔ¡¢ÃüÁî½âÊͳÌÐò¼°³ÌÐòÉè¼ÆÓïÑÔµÄͳ³Æ¡£
shellÊÇÓû§º ......

ÖйúΨһһ¼ÒרעLinux C++Èí¼þ¿ª·¢¼¼ÊõÅàѵµÄÆóÒµ!!!

Linux C++¸ß¼¶Èí¼þ¹¤³ÌʦѵÁ·Óª
ÖйúΨһһ¼ÒרעLinux C++Èí¼þ¿ª·¢¼¼ÊõÅàѵµÄÆóÒµ!!!
ÎÒÃǵÄÆóÒµ£º
  ¹«Ë¾Ö÷ÓªÈí¼þ¼¼Êõ·þÎñ—ÌرðÕë¶Ô¸öÈ˼°ÆóÒµÌṩרҵµÄ¸ß¼¶Èí¼þ¹¤³ÌʦÅàѵ£¬ÊÇÖйúΨһһ¼ÒרעLinux C++Èí¼þ¿ª·¢¼¼ÊõÅàѵµÄÆóÒµ£¡£¡£¡ÎªÆóÒµ´òÔìÓÅÐãµÄÈí¼þ¿ª·¢¼¼ÊõÈ˲ÅÊÇÎÒÃǵÄÔðÈÎ.
ÎÒÃǵÄʦ×ÊÁ¦Á¿£º Ò» ......

Linux UDP¼òµ¥·â×°


//CUdp.h
#ifndef MY_CUDP
#define MY_CUDP
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
class CUdp{
public:
CUdp(const char* destIP, unsigned short localPort, unsigned short destPort);
CUdp(unsigned int destIP, unsig ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ