LinuxÄÚºËÒÔ¼°Çý¶¯¼¼Êõ—¼òµ¥
ÎÞÂÛÊÇVC»¹ÊÇVB£¬»¹ÊÇC#£¬»¹ÊÇJSP PHPµÈµÈÓïÑÔ£¬ÔÚѧϰËûÃÇ֮ǰ×ÜÊÇÏÈÀ´Ò»¸öHELLO
WORLDµÄÀý×Ó£¬Õâ¸öºÃÏñ³ÉÁËÎÒÃdzÌÐòÈëÃŵıؾ֮·¡£ËùÒÔÔÚÇý¶¯³ÌÐòµÄѧϰÉÏ£¬Ò²Àë²»¿ªÕâ¸ö²½Öè¡£µ«ÊÇÇý¶¯³ÌÐòµÄ¿ª·¢ÊÇÔËÐÐÔÚÄں˿ռäµÄ£¬¶øÓ¦ÓóÌÐò
ÊÇÔËÐÐÔÚÓû§¿Õ¼äµÄ£¬ËùÒÔÇý¶¯³ÌÐòµÄ¿ª·¢ºÐµ÷ÊÔºÍÓ¦ÓóÌÐòµÄ¿ª·¢¶¼ÓкܴóµÄÇø±ð¡£¶ÔÓÚÕâ¸öhello worldµÄ³ÌÐòÎÒÒ²»¯Á˲»ÉÙʱ¼ä²Å¸ãÇå³þ¡£
Çý¶¯³ÌÐò×÷ΪϵͳÄں˵ÄÒ»²¿·Ö£¬Ëü¹¤×÷ÔÚºËÐÄ̬£¬¶øÓ¦ÓóÌÐò¹¤×÷ÔÚÓû§Ì¬¡£Ò²¾ÍÊÇ˵£¬²»ÄÜÖ±½Óͨ¹ýÖ¸Õ룬°ÑÓû§¿Õ¼äµÄÊý¾ÝµØÖ·´«µÝ¸øÄںˣ¨ÒòΪMMUÓ³Éä
µÄµØÖ·¸ù±¾²»Ò»Ñù£©¡£ÒªÏëÔÚÓ¦ÓóÌÐòºÍÇý¶¯³ÌÐòÖ®¼ä´«µÝÊý¾Ý£¨Ö¸Õ룩£¬¾ÍÐèÒª¾¹ýת»»¡£°ÑÓû§Ì¬“¿´µ½”µÄ¿Õ¼äµØַת»»³ÉÄÚºË̬¿É·ÃÎʵĵØÖ·¡£
LinuxϵͳÌṩÁËһϵÁз½±ãµÄº¯ÊýʵÏÖÕâÖÖת»»£¬Èçget_user¡¢put_user¡¢copy_from_user¡¢copy_to_userµÈ£¬ËüÃÇ×Ô¼º¸ºÔð·ÃÎÊȨÏ޵ļì²é£¬Ê¹ÓÃʱ£¬²»ÐèÒª¹Øϵ¸ü¶àµÄÎÊÌâ¡£
LinuxÄں˰ÑÇý¶¯³ÌÐò»®·ÖΪ3ÖÖÀàÐÍ£º×Ö·ûÉ豸¡¢¿éÉ豸ºÍÍøÂçÉ豸¡£×Ö·ûÉ豸ºÍ¿éÉ豸¿ÉÒÔÏñÎļþÒ»Ñù±»·ÃÎÊ¡£ËüÃǵÄÖ÷ÒªÇø±ð²»ÔÚÓÚÄÜ·ñseek£¬¶øÊÇ
ÔÚÓÚϵͳ¶ÔÓÚÕâÁ½ÖÖÀàÐÍÉ豸µÄ¹ÜÀí·½Ê½¡£Ó¦ÓóÌÐò¶ÔÓÚ×Ö·ûÉ豸µÄÿһ¸öI/O²Ù×÷£¬¶¼»áÖ±½Ó´«µÝ¸øϵͳÄں˶ÔÓ¦µÄÇý¶¯³ÌÐò£»¶øÓ¦ÓóÌÐò¶ÔÓÚ¿éÉ豸µÄ²Ù×÷£¬
Òª¾¹ýϵͳµÄ»º³åÇø¹ÜÀí£¬¼ä½Ó´«µÝ¸øÇý¶¯³ÌÐò´¦Àí¡£¿éÉ豸µÄÕâÖÖ¹ÜÀí·½Ê½ÊÇΪ´æ´¢ÌṩÓÅ»¯µÄ£»¶ø×Ö·ûÉ豸µÄ¹ÜÀí·½Ê½ÊÇΪ²Ù×÷ÌṩÓÅ»¯µÄ¡£
ÖÁ
ÓÚÍøÂçÉ豸£¬ËüÔÚLinuxϵͳÖÐÊÇÒ»Àà±È½ÏÌØÊâµÄÉ豸Ëü²»Ïñ×Ö·ûÉ豸»ò¿éÉ豸ÄÇÑùͨ¹ý¶ÔÓ¦µÄÉ豸Îļþ½ÚµãÈ¥·ÃÎÊ£¬ÄÚºËÒ²²»ÔÙͨ¹ýreadºÍwriteµÈ
µ÷ÓÃÈ¥·ÃÎÊÍøÂçÉ豸¡£LinuxµÄÍøÂçϵͳÖ÷ÒªÊÇ»ùÓÚBSD
UNIXµÄÌ×½Ó×Ö»úÖÆ£¬ÔÚϵͳºÍÇý¶¯³ÌÐòÖ®¼äÓÐרÃŵÄÊý¾Ý½á¹¹½øÐÐÊý¾Ý´«Ê䣬ϵͳ֧³Ö¶ÔÊý¾Ý·¢ËͺÍÊý¾Ý½ÓÊÕ»º´æ£¬ÌṩÁ÷Á¿¿ØÖÆ»úÖÆ£¬Ìṩ¸ü¶àµÄÐÒéÖ§³Ö¡£
ÔÚlinuxϵͳÖУ¬Çý¶¯³ÌÐò¶¼×ö³ÉÄ£¿éµÄÐÎʽ£¬Ò²¾ÍÊÇmodule¡£¼òµ¥µÄ˵£¬Ò»¸öÄ£¿éÌṩһ¸ö¹¦ÄÜ£¬ÕâЩģ¿éÊÇ¿ÉÒÔ°´ÕÕÐèÒªËæʱװÈëÄں˿ռäºÍ´ÓÄں˿ռäжÔصġ£Òò´Ë£¬ÄÚºËÄ£¿éÊÇΪÁ˸øÄں˶¯Ì¬Ôö¼õ¹¦ÄܶøÉè¼ÆµÄ£¬²¢²»½ö½öÊÇÏÞÓÚÇý¶¯³ÌÐò¡£
ÒòΪÄÚºËÄ£¿éÐèÒª¼ÓÔص½Äں˿ռ䣬ËùÒÔÆä³ÌÐòµÄ±àдÓëÒ»°ãÓ¦ÓóÌÐò²»Í¬£¬ÔÚÀïÃæÔÙÒ²ÕÒ²»µ½ÀàËÆmain()ÕâÑùµÄÈë¿Úº¯Êý£¬ÏÂÃæ¶ÔÓ¦º¯ÊýÏàÓ¦µÄÔ´´úÂëhello.c£¬·ÖÎöÒ»¸öÇý¶¯Ä£¿éµÄд·¨¡£
#ifndef __KERNEL__
Ïà¹ØÎĵµ£º
ÔÀíÆäʵºÜ¼òµ¥£¬ÄǾÍÊǹ㲥һ¸öarp°ü£¬È»ºórecv£¬Èç¹ûûÓÐÊý¾Ý(ÕâÀïÒªÉèÖÃÑÓʱ)£¬ÄÇô˵Ã÷Õâ¸öipÊÇ¿ÉÓõģ¬·ñÔò¾Í¼ì²âÕâ¸öÊý¾ÝÊÇ·ñΪ»Ø¸´ÎÒÃÇ·¢³öµÄarpµÄÓ¦´ð°ü.Èç¹ûÊÇÔòÖ¤Ã÷ipÒѱ»Ê¹Ó㬷ñÔò¼ÌÐøµÈ´ý.
ÕâÀï¿ÉÒÔ¿´ÏÂbusyboxµÄdhcpÖеļì²â³ÌÐò¡£
networking/udhcp/arpping.c
C´úÂë
/* vi: set sw=4 ......
ÒëÕߣº¹ùÉÙ±¯
2009/12/02
ÔÎÄ£ºlinux/Documentation/driver-model/device.txt
»ù±¾µÄÉ豸Êý¾Ý½á¹¹
~~~~~~~~~~~~~~~~~~
struct device {
struct list_head g_list;
struct list_head node;
......
˵Ã÷1£º
ÎÄ×ÖÖеÄY±íʾѡÔñ½øÄںˡ£M±íʾ±à³ÉÄ£¿é¡£N±íʾ²»Ñ¡Ôñ¡£ÓеÄÖ»ÄÜÑ¡Y£¬ÓеÄÖ»ÄÜÑ¡M¡£
ÔÚmake menuconfig Ï£¬£ª±íʾY£¬M±íʾM£¬¿Õ°×±íʾN¡£
make xconfigÏ£¬√ ±íʾY£¬? ±íʾM£¬¿Õ°×±íʾN¡£
˵Ã÷2£º
²Ëµ¥ÖУ¬ÓеÄÑ¡ÏîÄãÑ¡ÁËY²Å³öÏÖ£¬ÓеÄÑ¡ÁËY£¬Ëü·´¶ø²»»á³öÏÖ¡£ÓеÄÑ¡Ïî¸ù±¾²»»áÌṩѡÔñ¡£ËùÒÔÎÒÌṩµ ......
×î½ü¶¨ÖÆÁËÒ»¸öubuntuµÄ°²×°½çÃæ,¸Ð¾õ±È½ÏÓÐÒâ˼,дÉÏÀ´,ÓÐÐËȤµÄÅóÓÑ¿ÉÒÔʵ¼ùÒ»ÏÂ...
ÏȽéÉÜÒ»ÏÂgrubºÍisolinux,ÒÔ¼°Ò»Ð©¿ª»úÒýµ¼³ÌÐò...
1)BIOS:basic input output system,Ò»°ãµÄÇé¿öÏÂÊǹé½áÓÚfirmwareÕâÒ»ÀàµÄ.ÕâÀïÊÇΪÁËÁ¬½Óͨ˳,¾Í¼òµ¥µÄ˵һÏÂbios.BIOSÊÇÓû§ÔÚ°´ÏµçÔ´µÄÄÇÒ»¿Ì,¸ºÔðºÍÓ²¼þ¹µÍ¨²¢³ÊÏÖµ½Óû§ÃæÇ°µ ......
DB2 °²×°Íê³Éºó×¼±¸Æô¶¯Ê±£¬ÏµÍ³±¨´í£¬ÏêϸÐÅÏ¢ÈçÏÂ
[db2inst1@localhost ~]$ db2start
db2start: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
Ö´ÐÐÏÂÃæ¼ì²éÃüÁî
[db2inst1@localhost lib]$ cd /usr/lib
[db2inst1@localhost lib]$ ls -la libaio ......