LinuxÖеÄÄÚ´æ·ÖÅäºÍÊÍ·ÅÖ®mem_init()º¯Êý·ÖÎö
void __init mem_init(void)
{
unsigned int codepages, datapages, initpages;
int i, node;
codepages = &_etext - &_text;//Äں˴úÂë¶ÎµÄ´óС¡£
datapages = &_end - &__data_start;//ÄÚºËÊý¾Ý¶ÎµÄ´óС¡£
initpages = &__init_end - &__init_begin;//Äں˳õʼ»¯Ïà¹Øº¯ÊýÖ¸Õë¿Õ¼ä¶ÎµÄ´óС¡£
#ifndef CONFIG_DISCONTIGMEM//Èç¹ûϵͳÄÚ´æ¿Õ¼äÁ¬ÐøµÄ»°¡£
max_mapnr = virt_to_page(high_memory) - mem_map;//max_mapnr±£´æ×Å×î´óµÍ¶ËÄÚ´æÒ³Êý¡£
#endif
if (meminfo.nr_banks != 1)//Èç¹ûbank²»Ö¹Ò»¸ö£¬ËµÃ÷¿ÉÄÜ´æÔÚÄÚ´æ¿×¶´¡£
create_memmap_holes(&meminfo);//¶Ôÿ¸önodeµÄbank½øÐмì²é£¬Ö»Òª·¢ÏÖǰºóÊôÓÚÕâ¸önodeµÄÏàÁÚbankµÄÊÕβҳºÅ²»Ò»
//ÑùµÄʱºò£¬ÎÒÃǾ͵÷ÓÃfree_memmap(),Õâ¸öº¯ÊýÊ×ÏÈͨ¹ýÒ³ºÅת»»³ÉÕâÁ½¸öÒ³¶ÔÓ¦µÄ
//struct pageËùÔÚµÄÐéÄâµØÖ·£¬È»ºóʹÕâÁ½¸öÐéÄâת»»³ÉÎïÀíµØÖ·£¬²¢ÇÒ½øÐа´Ò³¶ÔÆë£¬
&nbs
Ïà¹ØÎĵµ£º
ÄãÊÇ·ñÏë½øÈëǶÈëʽ¸ßнÁìÓò£¬È´¸Ð¾õÎÞ´ÓÏÂÊÖ£¿
ÄãÊÇ·ñÔÚ¿´Êé¡¢²é×ÊÁÏ¡¢ÂÛ̳ÌáÎÊÖлºÂý¶ø³ÔÁ¦µÄǰÐУ¿
ʱ¼ä±ãÊdzɱ¾£¡Ñ§Ï°µÄ·ÉÏ£¬ÎÒÃǸüÐèҪר¼ÒϵͳµÄÖ¸Òý£¬ÕâÑù»áʰ빦±¶£¡
»ªÇåÔ¶¼û—ǶÈëʽLinuxÈëÃÅʵսÃâ·ÑÌåÑéÈÕ£¬Ò»ÌìµÄʱ¼ä£¬½â¾öÄúµÄ·³ÄÕ£¬¾ø¶Ô³¬ÖµµÄ»Ø±¨£¡
ÓÅÊÆ/ÌØÉ«£º
¡ñ ÄÚÈÝ£¬´«ÊÚ×îϵͳ£¬×îʵÓÃµÄ ......
±¾ÎĽéÉÜÔÚGNU/Linux»·¾³ÏÂÒ»¸öC³ÌÐòÓÉÔ´´úÂëµ½³ÌÐò£¬µ½¼ÓÔØÔËÐУ¬×îºóÖÕÖ¹µÄ¹ý³Ì¡£Í¬Ê±ÒԴ˹ý³ÌÎªÔØÌ壬½éÉÜGNU/Linuxƽ̨ÏÂÈí¼þ¿ª·¢¹¤¾ßµÄʹÓá£
±¾ÎÄÒÔÎÒÃÇ×î³£¼ûµÄhello, world!ΪÀý£º
#include <stdio.h>
main ()
{
printf(“hello, world!\n” ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
Linux
·¢ÐаæÓжàÉÙ£¿ÊDz»ÊÇÌ«¶àÁË£¿Êµ¼ÊÇé¿ö¾¿¾¹ÔõÑù£¿
×òÌìÉÏÎ磬Îһص½ÈËÃñ´óѧУ԰£¬¼ûµ½¼¸Î»
20
¶àÄêǰµÄÀÏͬÊ£¬ËûÃÇÈÔÈ»¼áÊØ¹¤×÷¸Úλ ......
ʲôÊÇϵͳµ÷ÓÃ
¹ËÃû˼Ò⣬ϵͳµ÷ÓÃ˵µÄÊDzÙ×÷ϵͳÌṩ¸øÓû§³ÌÐòµ÷ÓõÄÒ»×é“ÌØÊ┽ӿڡ£Óû§³ÌÐò¿ÉÒÔͨ¹ýÕâ×é“ÌØÊ┽ӿÚÀ´»ñµÃ²Ù×÷ϵͳÄÚºËÌṩµÄ·þÎñ£¬±ÈÈçÓû§¿ÉÒÔͨ¹ýÎļþϵͳÏà¹ØµÄµ÷ÓÃÇëÇóϵͳ´ò¿ªÎļþ¡¢¹Ø±ÕÎļþ»ò¶ÁдÎļþ£¬¿ÉÒÔͨ¹ýʱÖÓÏà¹ØµÄϵͳµ÷ÓûñµÃϵͳʱ¼ä»òÉèÖÃÏµÍ ......
ifconfig eth0 ÐÂIP
È»ºó±à¼/etc/sysconfig/network-scrIPts/ifcfg- eth0£¬ÐÞ¸ÄIP
Ò»¡¢ÐÞ¸ÄIPµØÖ·
[aeolus@db1 network-scrIPts]$ vi ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=219.136.241.211
NETMASK=255.255.255.128
GATEWAY=219.136.241.254
¶þ¡¢ÐÞ¸ÄÍø¹Ø
vi /etc/sysconfig/network
N ......