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

¡¶LINUXÉ豸Çý¶¯³ÌÐò¡·Ñ§Ï°Ôý¼Ç£¨¶þ£©

×ܽáÕ½ڣºµÚÈý½Ú ×Ö·ûÉ豸Çý¶¯
ÕâÒ»ÕÂÖ÷ÒªÊǽ²Ò»Ð©×Ö·ûÉ豸Çý¶¯³ÌÐòµÄÏà¹Ø֪ʶ¡£ÔÚ½øÐÐ×Ö·ûÉ豸Çý¶¯³ÌÐòѧϰ֮ǰ£¬ÎÒÃDZØÐëµÃŪÃ÷°×Ò»¸öÎÊÌ⣺Çý¶¯³ÌÐòʱ¸øË­Óõġ£
ºÜ¶àÇý¶¯³ÌÐòµÄ³õѧÕߣ¬°´ÕÕÒ»°ã±à³ÌÓïÑÔ£¨C£¬javaµÈµÈ£©±àдӦÓóÌÐòµÄ¾­Ñ飬º¯Êý¾ÍÊÇÓÃÀ´µ÷Óõġ£ÕâÖÖµ÷ÓùØϵ£¬ÔÚÓ¦ÓÿռäÀ´¿´£¬ÏÞÖƲ»ÊǺÜÃ÷ÏÔ¡£ºÜ¶à³õѧÕ߶¼»áÎóÈÏΪ£¬ÔÚÇý¶¯³ÌÐòÖÐдµÄº¯ÊýÊÇΪÁËÒÔºóÓ¦ÓóÌÐòÀ´µ÷Ó㬱ÈÈ磺ÔÚÇý¶¯ÖгÌÐòÖÐʵÏÖÁËswitch£¨£©º¯ÊýµÄ¹¦ÄÜ£¬°´ÕÕÓ¦ÓóÌÐòµÄ¹ÛÄÔÚÓ¦ÓóÌÐòÖÐÓ¦¸Ã¿ÉÒÔµ÷ÓÃswitch£¨£©º¯Êý£¬´Ó¶øÀ´ÊµÏÖijÖÖ¹¦ÄÜ¡£ÕâÖÖ´íÎóµÄ˼άÔÚ´ÓÓû§¿Õ¼äÓ¦ÓóÌÐò³ÌÐòÔ±µ½Çý¶¯³ÌÐò³ÌÐòÔ±µÄת±ä¹ý³ÌÖУ¬¾­³£»áÓöµ½ÕâÖÖÎÊÌâ¡£ÕâÆäʵÊǶÔÇý¶¯³ÌÐòµÄ±¾ÖÊÊôÐÔûÓÐŪ͸³¹¡£Çý¶¯³ÌÐò£¬¾ÍÊÇÄں˵ÄÒ»²¿·Ö£¬Çý¶¯³ÌÐòµÄ´úÂëÊÇÄں˴úÂëµÄÒ»²¿·Ö¡£Ó¦ÓóÌÐò²»ÄÜÖ±½ÓÀûÓÃÇý¶¯³ÌÐòÀ´´ïµ½·ÃÎÊÓ²¼þµÄÄ¿µÄ£¬ÎÒÃÇÓ¦¸ÃÃ÷°×£¬Ó¦ÓóÌÐòÊÇͨ¹ý·ÃÎÊ/dev/ϵÄÉ豸Îļþ£¬À´¼ä½ÓµÄ·ÃÎÊÓ²¼þ£¬Çý¶¯³ÌÐòͨ¹ýϵͳµ÷ÓÃÀ´ÊµÏÖ½«ÐÅÏ¢´«µÝ¸ø/dev/ϵÄÉ豸Îļþ¡£ÎÞÂÛÇý¶¯³ÌÐòÖж¨ÒåÁËʲôº¯Êý£¬Ó¦Óÿռ䶼²»ÄÜʹÓã¬ÄÄÅÂÊǺ¯ÊýÐÎ̬һÑù£¬Èç¹û¿ÉÒÔ·ÃÎʵĻ°£¬ÄǾÍΣÏÕÁË¡£Çý¶¯³ÌÐòÖеĺ¯ÊýÓÀÔ¶¶¼ÊÇÌṩ¸øϵͳÄÚºËʹÓõģ¬ÓÉϵͳÀ´×Ô¶¯µ÷Ó㬲»ÐèÒªÓ¦ÓóÌÐò¸ÉÔ¤¡£
¸ãÇå³þÉÏÃæµÄÎÊÌâÖ®ºó£¬À´¿´¿´×Ö·ûÉ豸Çý¶¯µÄһЩÖØÒªµÄ¸ÅÄîºÍÊý¾Ý½á¹¹¡£
1.    É豸ºÅ
ÔÚlinux 2.6ÄÚºËÖУ¬ÓÃ32λµÄdev_tÀàÐ͵ÄÊý¾ÝÀ´±íʾ£¬ÆäÖÐ12λÓÃÀ´±íʾÖ÷É豸ºÅ£¬ÆäÓà20λÓÃÀ´±íʾ´ÎÉ豸ºÅ¡£Ö÷É豸ºÅÊÇÓÃÀ´±íʾÉ豸Ëù¶ÔÓ¦µÄÇý¶¯³ÌÐòµÄ£¬Ò²¾ÍÊÇ˵£¬Èç¹ûÉ豸µÄÖ÷É豸ºÅÏàͬ£¬ÄÇôÕâЩÉ豸µÄÇý¶¯³ÌÐòÊÇͬһ¸ö¡£´ÎÉ豸ºÅÊǸøÄÚºËʹÓõģ¬ÓÃÀ´È·¶¨É豸ÎļþËùÖ¸ÏòµÄÉ豸¡£¾¡¹ÜÖ÷É豸ºÅºÍ´ÎÉ豸ºÅµÄλÊý¶¼¹Ì¶¨ÁË£¬µ«ÊÇ£¬ÎÒÃDz»Ó¦×ö³öÈκμÙÉ裬Èç¹ûÎÒÃÇÐèÒª´ÓÒ»¸ödev_t  dev£¨ÒÔºóµÄʹÓÃÖУ¬É豸ºÅ¶¼ÊÇÖ¸dev_tÀàÐ͵ÄÉ豸ºÅ£©Öеõ½Ö÷É豸ºÅºÍ´ÎÉ豸ºÅ£¬Ó¦¸ÃʹÓÃÏÂÃæµÄºê£º
                       MAJOR(dev_t dev);
                       MINOR(dev_t dev);
Èç¹ûÎÒÃÇÏëÓÃÖ÷É豸ºÅºÍ´ËÉ豸ºÅÀ´µÃµ½dev_tÀàÐ͵ÄÉ豸ºÅ£¬Ó¦¸Ãʹ
2.    ·ÖÅäÉ豸ºÅ


Ïà¹ØÎĵµ£º

Linux Ï C++ Òì³£´¦Àí¼¼ÇÉ

http://www.ibm.com/developerworks/cn/linux/l-cppexcep.html
´¦Àí¹ÌÓÐÓïÑÔ¾ÖÏÞÐÔµÄËÄÖÖ¼¼Êõ
´¦Àí C++ ÖеÄÒì³£»áÔÚÓïÑÔ¼¶±ðÉÏÓöµ½ÉÙÐíÒþº¬ÏÞÖÆ£¬µ«ÔÚijЩÇé¿öÏ£¬Äú¿ÉÒÔÈƹýËüÃÇ¡£Ñ§Ï°¸÷ÖÖÀûÓÃÒì³£µÄ·½·¨£¬Äú¾Í¿ÉÒÔÉú²ú¸ü¿É¿¿µÄÓ¦ÓóÌÐò¡£
±£ÁôÒì³£À´Ô´ÐÅÏ¢
ÔÚ C++ÖУ¬ÎÞÂÛºÎʱÔÚ´¦Àí³ÌÐòÄÚ²¶»ñÒ»¸öÒì³££¬¹ØÓÚ¸ÃÒì³£À ......

java ²¶×½ÐźÅ(linuxϵÄkill,ctrl+c)

import sun.misc.Signal;
import sun.misc.SignalHandler;
/***
* javaÐźŴ¦Àídemo
* @author jiang_qh
*
*/
public class SignalHandlerExample implements SignalHandler{
private SignalHandler oldHandler;
public void handle(Signal signal) {
System.out.println("Signal handler called for signal " ......

[Ô­´´]linuxϵͳ£¬ltib¹¤¾ß¿ª·¢powerpc

¹¤×÷Ä¿±ê£º¿ª·¢°åÉϵÄÎļþϵͳͨ¹ýnfsÍøÂç¹ÒÔØ£¬µ÷ÊÔpowerpc 8315»ò5121
PC»ú»·¾³£º(1)ubuntu 8.04 linux OS  »òÕß (2)ÐéÄâ»úVMware£¨ubuntu 8.04£© + Windows XP OS
¿ª·¢°å£ºFreescaleµÄpowerpc¿ª·¢°å8315»ò5121µÈµÈ
PC»úÐèÒªµÄ´®¿Úµ÷ÊÔ¹¤¾ß:
£¨1£©ubuntu linux OS : minicom
£¨2£©Windows XP OS: ¸½¼ ......

linuxÃüÁîµÄÈ«³Æ~~~·

תÔØ×Ô£ºhttp://www.91linux.com/html/article/go/20090205/15634.html
bin = BINaries £¨binary)
/dev = devices
/etc = ETCetera
etcetera¸½¼ÓµÄÈË, ¸½¼ÓÎï, ÒÔ¼°ÆäËü, µÈµÈ
/lib = LIBrary
/proc = PROCesses
/sbin
= Superuser BINaries
/tmp = TeMPorary
/usr = Unix Shared
Resources
/var = ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ