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

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

×ܽáÕ½ڣºµÚÒ»Õ É豸Çý¶¯³ÌÐò¼ò½é
          µÚ¶þÕ ¹¹ÔìºÍÔËÐÐÄ£¿é
Ìáµ½Çý¶¯³ÌÐò¾Í²»µÃ²»ÏÈ˵ÏÂÁ½¸öÃû´Ê£ºÄں˿ռäºÍÓû§¿Õ¼ä¡£Óû§¿Õ¼ä¼´Óû§Ó¦ÓÃËùÔËÐеĿռ䣬Äں˿ռäÖµµÃÊDzÙ×÷ϵͳÄÚºËÔËÐеĿռ䡣Óû§¿Õ¼ä²»ÄÜÖ±½ÓÒýÓûòÕß²Ù×÷Äں˿ռäµÄÊý¾Ý£¬Äں˿ռäÒ²²»ÄÜÖ±½ÓÒýÓÃÓû§¿Õ¼äµÄÊý¾Ý¡£²Ù×÷ϵͳÄں˶ÔÕû¸öϵͳ×ÊÔ´½øÐйÜÀí£¬ÕâЩ×ÊÔ´ÖÐÒ²°üÀ¨Ó²¼þ×ÊÔ´¡£ËùÒÔÓû§¿Õ¼äÒ²²»ÄÜÖ±½Ó·ÃÎÊÓ²¼þ×ÊÔ´¡£Çý¶¯ÎªÓû§·ÃÎÊÌض¨µÄÓ²¼þ×ÊÔ´Ìṩ½Ó¿Ú¡£Óû§¿Õ¼äÒª·ÃÎÊÓ²¼þ×ÊÔ´ÔòÖ»ÐèÒªµ÷ÓÃÇý¶¯ËùÌṩµÄ½Ó¿Ú¡£Çý¶¯ÍêÈ«ÆÁ±ÎÁËÄÚ²¿²Ù×÷¡£´Ó¶ø£¬Óû§¿Õ¼äͨ¹ýÇý¶¯Õâ²ãÌØÊâµÄÄں˼ä½ÓµÄ·ÃÎÊÓ²¼þ×ÊÔ´¡£
Çý¶¯µÄ×÷ÓÃÔÚÓÚÌṩ»úÖÆ£¬»úÖƼ´£ºÐèÒªÌṩʲô¹¦ÄÜ£¬¶ø²»ÊÇÌṩ²ßÂÔ£¬²ßÂÔ¼´£ºÈçºÎʹÓÃÕâЩ¹¦ÄÜ¡£Ìṩ»úÖÆÊÇÇý¶¯³ÌÐòµÄÈÎÎñ£¬¶ø²ßÂÔÔòÊÇÓ¦ÓóÌÐòËùÒªÍê³ÉµÄÈÎÎñ¡£ÓÉÓÚ²»Í¬µÄ»·¾³»áÓв»Í¬µÄ·½Ê½À´·ÃÎÊÓ²¼þ£¬×÷ΪÇý¶¯³ÌÐòµÄ±àдÕߣ¬Ó¦¸Ã¾¡Á¿×öµ½Ê¹Çý¶¯²»µ½²ßÂÔ£¬ÔÚ±àдÇý¶¯µÄʱºò£¬³ÌÐòÔ±»¹Ó¦¸ÃÌرð×¢Ò⣬±àд·ÃÎÊÓ²¼þµÄÄں˴úÂ룬²»Òª¸øÓû§Ç¿¼ÓÈκÎÌض¨²ßÂÔ¡£ÒòΪ²»Í¬µÄÓû§»áÓв»Í¬µÄÐèÇó¡£
Äں˵ŦÄÜ·ÖΪ£º½ø³Ì¹ÜÀí£¬ÄÚ´æ¹ÜÀí£¬Îļþϵͳ£¬É豸¿ØÖÆ£¬ÍøÂ繦ÄÜ¡£ËùÓÐÉ豸¿ØÖƲÙ×÷¶¼ÓÉÓë±»¿ØÖÆÉ豸Ïà¹Ø´úÂëÀ´Íê³É£¬Õâ¶Î´úÂë¾Í½ÐÇý¶¯³ÌÐò£¬³ä·Ö˵Ã÷Çý¶¯³ÌÐòÊÇÄں˵ÄÒ»²¿·Ö¡£
¼ÈÈ»Çý¶¯³ÌÐòÊÇÄں˵ÄÒ»²¿·Ö£¬ÄÇôÇý¶¯³ÌÐòµÄ±àд¾ÍÐèÒªÓõ½Äں˵ÄÍ·Îļþ£¬¶ÔÓÚLinux 2.6°æ±¾µÄÄÚºËÇý¶¯³ÌÐò»¹ÐèÒªÒÀÀµÄÚºËÔ´ÂëÊ÷¡£ËùÒÔÔÚ±àдÇý¶¯Ö®Ç°£¬ÒªÅªÇå³þ£¬×Ô¼º±àдµÄÇý¶¯Êµ¼Ê¾ÍÊÇÔÚ±àдÄںˣ¬ÄÇô³ÌÐòÖÐËùÓÐÓõ½µÄÍ·Îļþ¶¼ÊÇÄں˵ġ£
ÄÚºËÔ´ÂëÊ÷µÄ·¾¶¿ÉÒÔÓÃÒ»ÏÂÃüÁî²é¿´£º
# cd /lib/modules/$(uname -r)/build/
# pwd

ÏÖÔÚ±àдһ¸ö¼òµ¥µÄ
HelloWorld
³ÌÐòÀ´ËµÃ÷
#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE(“Dual MPL/GPL”);
static int hello_init(void)
{
printk(KERN_ALERT “Hello, world\n”);
return 0;
}
static void hello_exit(void)
{
printk(KERN_ALERT “Goodbye cruel world\n”);
}
module_init(hello_init);
module_exit(hello_exit);
ÏÂÃæÊÇ
Makefile
ÎļþÄÚÈÝ
obj-m = hello.o
KERNELDIR ?= /lib/modules/$(uname -r)/build
Makefile
´úÂë½âÊÍ£º
obj-m
ÊÇÄÚºËÒªÇóµÄ¡£Çý¶¯×îÖÕ
hello.ko
ÒÀÀ


Ïà¹ØÎĵµ£º

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

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

ÉîÈëÀí½â Linux ÄÚºË

³ÉΪһÃû¾«Í¨ Linux ³ÌÐòÉè¼ÆµÄ¸ß¼¶³ÌÐòÔ±Ò»Ö±ÊDz»ÉÙÅóÓÑ×Î×ÎÒÔÇóµÄÄ¿±ê¡£¸ù¾ÝÖлªÓ¢²ÅÍøͳ¼ÆÊý¾Ý£¬±±¾©µØÇø Linux ³ÌÐòÔ±ÔÂнƽ¾ùΪ Windows ³ÌÐòÔ±µÄ 1.8 ±¶¡¢Java ³ÌÐòÔ±µÄ 2.6 ±¶£¬ Linux ³ÌÐòÔ±ÄêÖÕ½±½ðƽ¾ùΪ Windows ³ÌÐòÔ±µÄ 2.9 ±¶¡£Í¬Ê±Êý¾ÝÏÔʾ£¬Ëæ׏¤×÷¾­ÑéµÄÔö³¤£¬ Linux ³ÌÐòÔ±Óë Windows ³ÌÐòÔ±µÄÊÕÈë²î¾à» ......

LinuxϵͳÐÂÊÖѧϰµÄ11µã½¨Ò飨תÔØ£©

Ëæ×ÅLinuxÓ¦ÓõÄÀ©Õ¹Ðí¶àÅóÓÑ¿ªÊ¼½Ó´¥Linux£¬¸ù¾ÝѧϰWindwosµÄ¾­ÑéÍùÍùÓÐһЩãȻµÄ¸Ð¾õ£º²»Öª´ÓºÎ´¦¿ªÊ¼Ñ§Æð¡£ÕâÀï½éÉÜѧϰLinuxµÄһЩ½¨Òé¡£
Ò»¡¢´Ó»ù´¡¿ªÊ¼£º³£³£ÓÐЩÅóÓÑÔÚLinuxÂÛ̳ÎÊһЩÎÊÌ⣬²»¹ý£¬ÆäÖдó¶àÊýµÄÎÊÌⶼÊǺܻù´¡µÄ¡£ÀýÈ磺ΪʲôÎÒʹÓÃÒ»¸öÃüÁîµÄʱºò£¬ÏµÍ³¸æËßÎÒÕÒ²»µ½¸ÃĿ¼£¬ÎÒÒªÈçºÎÏÞÖÆʹÓÃÕß ......

Linux¸÷·¢Ðа汾 ÓÅȱµã ¼ò½é


 
Linux¸÷·¢Ðа汾 ÓÅȱµã ¼ò½é
À´Ô´: ChinaUnix²©¿Í ¡¡ÈÕÆÚ£º 2008.01.21 13:43¡¡(¹²ÓÐ25ÌõÆÀÂÛ) ÎÒÒªÆÀÂÛ
 
Linux×îÔçÓÉLinus Benedict TorvaldsÔÚ1991Ä꿪ʼ±àд¡£ÔÚÕâ֮ǰ£¬Richard
Stallman´´½¨ÁËFree Software
Foundation£¨FSF£©×éÖ¯ÒÔ¼°GNUÏîÄ¿£¬²¢²»¶ÏµÄ±àд´´½¨GNU³ÌÐò£¨´ËÀà³ÌÐòµÄÐí¿É·½Ê½¾ùΪ ......

´Ólinux¹âÅÌ×öyumÔ´

Yum£¨È«³ÆΪ Yellow dog Updater, Modified£©ÊÇÒ»¸öÔÚFedoraÖеÄshellÇ°¶ËÈí¼þ°ü¹ÜÀíÆ÷¡£»ùÓÚrpm°ü¹ÜÀí£¬Äܹ»´ÓÖ¸¶¨µÄ·þÎñÆ÷×Ô¶¯ÏÂÔØRPM°ü²¢ÇÒ°²×°£¬¿ÉÒÔ×Ô¶¯´¦ÀíÒÀÀµÐÔ¹Øϵ£¬²¢ÇÒÒ»´Î°²×°ËùÓÐÒÀÀµµÄÈíÌå°ü£¬ÎÞÐë·±ËöµØÒ»´Î´ÎÏÂÔØ¡¢°²×°¡£
ÏÂÃæ½éÉÜÒ»¸ö´Ó¹âÅÌ×öyumÔ´µÄСʵÑé
±¾ÊÔÑéʹÓÃCentOS-5.4-i386-bin,DVD.isoÈí¼þ° ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ