国产亚洲精品福利在线无卡一,国产精久久一区二区三区,亚洲精品无码国模,精品久久久久久无码专区不卡

當(dāng)前位置: 首頁(yè) > news >正文

亞馬遜虛擬主機(jī)做網(wǎng)站最新清遠(yuǎn)發(fā)布

亞馬遜虛擬主機(jī)做網(wǎng)站,最新清遠(yuǎn)發(fā)布,產(chǎn)品設(shè)計(jì)大師作品,山東起訴網(wǎng)站服務(wù)平臺(tái)1.內(nèi)核啟動(dòng)文件系統(tǒng)后,文件系統(tǒng)的工作流程 1.參數(shù)的接收 2.參數(shù)的解析 3.參數(shù)的應(yīng)用 問(wèn)題: 1. UBOOT 傳給 KERNEL 的參數(shù)是以tagglist進(jìn)行的 KERNEL 傳給 文件系統(tǒng)(busybox)的參數(shù)是以什么進(jìn)行的? 2. 在整個(gè)文件系統(tǒng)中都需…

1.內(nèi)核啟動(dòng)文件系統(tǒng)后,文件系統(tǒng)的工作流程

? ? ? ? 1.參數(shù)的接收

? ? ? ? 2.參數(shù)的解析

? ? ? ? 3.參數(shù)的應(yīng)用

問(wèn)題:

1.????????UBOOT 傳給 KERNEL 的參數(shù)是以tagglist進(jìn)行的

? ? ? ? ? ?KERNEL 傳給 文件系統(tǒng)(busybox)的參數(shù)是以什么進(jìn)行的??

2.? ? ? ? 在整個(gè)文件系統(tǒng)中都需要什么組件?

文件系統(tǒng)初始化流程

parse_inittab()

????????file = fopen(INITTAB, "r");? ? ? ? //#define INITTAB ? ? ?"/etc/inittab"

????????if (file == NULL) {

? ? ? ????????? /* Reboot on Ctrl-Alt-Del */

? ? ? ????????? new_init_action(CTRLALTDEL, "reboot", "");

? ? ? ????????? /* Umount all filesystems on halt/reboot */

? ? ? ? ????????new_init_action(SHUTDOWN, "umount -a -r", "");

? ? ? ????????? /* Swapoff on halt/reboot */

? ? ? ????????? if (ENABLE_SWAPONOFF) new_init_action(SHUTDOWN, "swapoff -a", "");

? ? ? ? ????????/* Prepare to restart init when a HUP is received */

? ? ? ????????? new_init_action(RESTART, "init", "");

? ? ? ????????? /* Askfirst shell on tty1-4 */

? ? ? ? ????????new_init_action(ASKFIRST, bb_default_login_shell, "");

? ? ? ????????? new_init_action(ASKFIRST, bb_default_login_shell, VC_2);

? ? ? ? ????????new_init_action(ASKFIRST, bb_default_login_shell, VC_3);

? ? ? ????????? new_init_action(ASKFIRST, bb_default_login_shell, VC_4);

? ? ? ? ????????/* sysinit */

? ? ? ????????? new_init_action(SYSINIT, INIT_SCRIPT, "");

inittab的格式:

????????????????Format for each entry: <id>:<runlevels>:<action>:<process>

文件系統(tǒng)默認(rèn)的參數(shù)解析:

static void new_init_action(int action, const char *command, const char *cons)
{struct init_action *new_action, *a, *last;if (strcmp(cons, bb_dev_null) == 0 && (action & ASKFIRST))return;/* Append to the end of the list */for (a = last = init_action_list; a; a = a->next) {/* don't enter action if it's already in the list,* but do overwrite existing actions */if ((strcmp(a->command, command) == 0)&& (strcmp(a->terminal, cons) == 0)) {a->action = action;return;}last = a;}new_action = xzalloc(sizeof(struct init_action));if (last) {last->next = new_action;} else {init_action_list = new_action;}strcpy(new_action->command, command);new_action->action = action;strcpy(new_action->terminal, cons);messageD(L_LOG | L_CONSOLE, "command='%s' action=%d tty='%s'\n",new_action->command, new_action->action, new_action->terminal);
}struct init_action {struct init_action *next;int action;pid_t pid;char command[INIT_BUFFS_SIZE];char terminal[CONSOLE_NAME_SIZE];
};

默認(rèn)的inittab:? ?

::ctrlaltdel:/sbin/reboot

::shutdown:/sbin/swapoff -a

::shutdown:/bin/umount -a -r

::restart:/sbin/init

::askfirst:/bin/sh

tty2::askfirst:/bin/sh

tty3::askfirst:/bin/sh

tty4::askfirst:/bin/sh

::SYSINIT:/etc/init.d/rcS

參數(shù)使用流程

????????run_actions(SYSINIT);

????????????????waitfor(a, 0);? //運(yùn)行該action對(duì)應(yīng)的命令函數(shù),并且等待其退出

啟動(dòng)流程:

??????????run_actions(SYSINIT);? //運(yùn)行::SYSINIT:/etc/init.d/rcS腳本,并且等待退出

? ? ? ? ??run_actions(WAIT);

? ? ? ? ? run_actions(ONCE);

	while (1) {/* run the respawn stuff */run_actions(RESPAWN);/* run the askfirst stuff */run_actions(ASKFIRST);//:/bin/sh/* Don't consume all CPU time -- sleep a bit */sleep(1);/* Wait for a child process to exit */wpid = wait(NULL);while (wpid > 0) {/* Find out who died and clean up their corpse */for (a = init_action_list; a; a = a->next) {if (a->pid == wpid) {/* Set the pid to 0 so that the process gets* restarted by run_actions() */a->pid = 0;message(L_LOG, "process '%s' (pid %d) exited. ""Scheduling it for restart.",a->command, wpid);}}/* see if anyone else is waiting to be reaped */wpid = waitpid(-1, NULL, WNOHANG);}}

一個(gè)文件系統(tǒng)都需要什么?

? ? ? ? 1./dev/console????????

? ? ? ? 2.init_main函數(shù)---->busybox

? ? ? ? 3./etc/init.d/rcS--腳本

? ? ? ? 4.因?yàn)樾枰\(yùn)行shell命令,所以要有shell命令的支持函數(shù)--->busybox

? ? ? ? 5.標(biāo)準(zhǔn)庫(kù)函數(shù),包含glibc

http://aloenet.com.cn/news/34177.html

相關(guān)文章:

  • 怎么給自己的網(wǎng)站做模版全網(wǎng)營(yíng)銷推廣平臺(tái)有哪些
  • 羅湖網(wǎng)站建設(shè)羅湖網(wǎng)站設(shè)計(jì)seo是什么意思為什么要做seo
  • 網(wǎng)站要咋做2022年最新熱點(diǎn)素材
  • 免費(fèi)做h5的網(wǎng)站展示型網(wǎng)站有哪些
  • 做室內(nèi)設(shè)計(jì)的網(wǎng)站有哪些內(nèi)容數(shù)字營(yíng)銷服務(wù)商seo
  • 日本設(shè)計(jì)創(chuàng)意網(wǎng)站web網(wǎng)站設(shè)計(jì)
  • 萊蕪網(wǎng)站優(yōu)化招聘網(wǎng)seo搜索如何優(yōu)化
  • 學(xué)用mvc做網(wǎng)站重慶seo網(wǎng)絡(luò)推廣優(yōu)化
  • vue做移動(dòng)端網(wǎng)站與pc端有什么區(qū)別網(wǎng)站推廣軟件免費(fèi)版下載
  • 網(wǎng)站開(kāi)發(fā)的項(xiàng)目開(kāi)發(fā)網(wǎng)站開(kāi)發(fā)公司排行榜
  • 品牌廣告設(shè)計(jì)制作公司網(wǎng)站源碼班級(jí)優(yōu)化大師的功能有哪些
  • wordpress使用兩個(gè)主題如何推廣seo
  • 獨(dú)立站都有哪些百度快速排名提升
  • 網(wǎng)站投票活動(dòng)怎么做百度域名注冊(cè)查詢
  • 沒(méi)有網(wǎng)站怎么做seob站推廣平臺(tái)
  • 網(wǎng)站報(bào)名怎么做市場(chǎng)營(yíng)銷培訓(xùn)
  • 網(wǎng)站目錄鏈接怎么做天津百度推廣電話
  • 粉色做網(wǎng)站背景圖片競(jìng)價(jià)推廣是什么意思
  • 臨汾哪做網(wǎng)站seo關(guān)鍵詞優(yōu)化推廣哪家好
  • 京東淘寶網(wǎng)站是怎么做的360免費(fèi)做網(wǎng)站
  • 微信鏈接網(wǎng)頁(yè)網(wǎng)站制作網(wǎng)站seo優(yōu)化推廣
  • wordpress quizzin網(wǎng)站怎樣優(yōu)化關(guān)鍵詞好
  • 大興智能網(wǎng)站建設(shè)哪家好企業(yè)營(yíng)銷策劃
  • 吉林省住房城鄉(xiāng)建設(shè)廳網(wǎng)站首頁(yè)什么是搜索推廣
  • 設(shè)計(jì)網(wǎng)站價(jià)格鄭州seo軟件
  • 湖南網(wǎng)絡(luò)公司網(wǎng)站建設(shè)seo教學(xué)平臺(tái)
  • 網(wǎng)站如何運(yùn)營(yíng)賺錢線下推廣方式都有哪些
  • 慈溪做網(wǎng)站網(wǎng)站打開(kāi)速度優(yōu)化
  • 公安網(wǎng)站建設(shè)公司網(wǎng)站與推廣
  • 莆田做網(wǎng)站的公司住房和城鄉(xiāng)建設(shè)部官網(wǎng)