LINUXµÄÈȲå°Î»úÖÆ£¨¾µäÎÄÕ£©
linuxµÄÈȲå°ÎÊÇGreg Kroah-Hartmanά»¤£¬ËùÒÔÕâÊÇƪ¾µäÎÄÕ¡£Èç¹ûÄãÓÐUSB»òÕßPCIÉ豸Çý¶¯¿ª·¢»ù´¡£¬Ò»¶Á¾Í¿ÉÒÔÀí½â¡£
Hot-pluggable devices have been created to solve a number of user needs. On laptop computers, PCMCIA devices were designed to allow the user to swap cards while the computer was still running. This allowed people to change network adaptors, memory cards and even disk drives without shutting down the machine.
The success of this led to the creation of the USB and IEEE1394 (FireWire) buses. These designs allow for peripherals to be attached and removed at any point. They also were created to try to move systems away from the ISA bus to a full Plug-and-Play-type system.
from the operating system's point of view, there are many problems with hot plugging devices. In the past, the operating system only had to search for the various devices connected to it on power-up, and once seen, the device would never go away. from the view of the device driver, it never expects to have the hardware that it is trying to control disappear. But with hot-pluggable devices, all of this changes.
Now the operating system has to have a mechanism that constantly detects if a new device appears. This usually is done by a bus-specific manager. This manager handles the scanning for new devices and recognizes this disappearance. It must be able to create system resources for the new device and pass control off to a specific driver. The device driver for a hot-pluggable device has to be able to recover gracefully when the hardware is removed and be able to bind itself to new hardware at any moment. Not only does the kernel need to know when devices are removed or added, but the user also should be notified when this happens. Other kinds of kernel events, such as the creation of network devices or the insertion of a laptop into a docking station, also would be useful for the user to know about.
This article describes the new framework in the Linux kernel for supporting USB and
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍ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 ......
1 ÒýÑÔ
¡¡¡¡
Ị̈߳¨thread£©¼¼ÊõÔçÔÚ60Äê´ú¾Í±»Ìá³ö£¬µ«ÕæÕýÓ¦ÓöàÏ̵߳½²Ù×÷ϵͳÖÐÈ¥£¬ÊÇÔÚ80Äê´úÖÐ
ÆÚ£¬solarisÊÇÕâ·½ÃæµÄٮٮÕß¡£´«Í³µÄUnixÒ²Ö§³ÖÏ̵߳ĸÅÄµ«ÊÇÔÚÒ»¸ö½ø³Ì£¨process£©ÖÐÖ»ÔÊÐíÓÐÒ»¸öỊ̈߳¬ÕâÑù¶àÏ߳̾ÍÒâζ×Ŷà½ø
³Ì¡£ÏÖÔÚ£¬¶àÏ̼߳¼ÊõÒѾ±»Ðí¶à²Ù×÷ϵͳËùÖ§³Ö£¬°üÀ¨Windows/NT£¬µ±È»£¬Ò²°üÀ¨Li ......
getenv£¨È¡µÃ»·¾³±äÁ¿ÄÚÈÝ£©
Ïà¹Øº¯Êý putenv£¬setenv£¬unsetenv
±íÍ·Îļþ #include<stdlib.h>
¶¨Ò庯Êý char * getenv(const char *name);
º¯Êý˵Ã÷ getenv()ÓÃÀ´È¡µÃ²ÎÊýname»·¾³±äÁ¿µÄÄÚÈÝ¡£²ÎÊýnameΪ»·¾³±äÁ¿µÄÃû³Æ£¬Èç¹û¸Ã±äÁ¿´æÔÚÔò»á·µ»Ø ......
LinuxÁ÷Á¿¿ØÖÆ1--ÅŶӹæÔò
2008-07-31 15:26
Linux²Ù×÷ϵͳÖеÄÁ÷Á¿¿ØÖÆ¿ò¼Ü´´½¨ÁËÒ»¸öͨÓû·¾³£¬Ëü¼¯³ÉÁËËùÓÐÓÃÓÚÏÞÖƺÍÁ÷Á¿ÕûÐεĿÉÒÔ»¥ÁªµÄ²»Í¬ÔªËØ¡£ÔÚʵ¼Ê²Ù×÷ÖÐÕâЩԪËØÉõÖÁ¿ÉÒÔ×÷Ϊһ¸öÄ£¿é¶¯Ì¬µØ¼ÓÔغÍжÔØ¡£
TC£¨Traffic Control£©¹¤¾ßÌṩÁËÒ»¸öÃüÁîÐÐÓû§½Ó¿ÚÀ´ÅäÖÃLinuxÁ÷Á¿¿ØÖÆ¡£¸Ã¹¤¾ßÈÃÓû§¿ÉÒÔÉ ......
~ µ±Ç°Óû§Ä¿Â¼µÄËõд
cd ~
cd /home/<user-name>/
--help »ñÈ¡°ïÖú
vi --help
tab ×Ô¶¯²¹È«¡£Ë«»÷tab¸ø³ö²¹È«Ìáʾ¡£
Èôµ±Ç°ÃüÁîÎÞÆçÒ壬ÔòÍêÕû²¹È«¡£ÈôÓÐÆçÒåË«»÷¿ÉÁгöÌáʾѡÏî¡£
cd /e [tab], ²¹È«Îªcd /etc/
cd /b [tab-tab], ÁгöÑ¡Ïîbin/ bo ......