当前位置: 首页 > news >正文

自己做盗版小说网站网站设计与制作教程

自己做盗版小说网站,网站设计与制作教程,东莞做网站的网络公司,给wordpress网站做ssl卸载1.内核启动文件系统后,文件系统的工作流程 1.参数的接收 2.参数的解析 3.参数的应用 问题: 1. UBOOT 传给 KERNEL 的参数是以tagglist进行的 KERNEL 传给 文件系统(busybox)的参数是以什么进行的? 2. 在整个文件系统中都需…

1.内核启动文件系统后,文件系统的工作流程

        1.参数的接收

        2.参数的解析

        3.参数的应用

问题:

1.        UBOOT 传给 KERNEL 的参数是以tagglist进行的

           KERNEL 传给 文件系统(busybox)的参数是以什么进行的? 

2.        在整个文件系统中都需要什么组件?

文件系统初始化流程

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>

文件系统默认的参数解析:

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];
};

默认的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

参数使用流程

        run_actions(SYSINIT);

                waitfor(a, 0);  //运行该action对应的命令函数,并且等待其退出

启动流程:

          run_actions(SYSINIT);  //运行::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);}}

一个文件系统都需要什么?

        1./dev/console        

        2.init_main函数---->busybox

        3./etc/init.d/rcS--脚本

        4.因为需要运行shell命令,所以要有shell命令的支持函数--->busybox

        5.标准库函数,包含glibc


文章转载自:
http://dinncoradiosymmetrical.bpmz.cn
http://dinncoendocrinopathic.bpmz.cn
http://dinncoevidentiary.bpmz.cn
http://dinncogalliambic.bpmz.cn
http://dinncoobtundent.bpmz.cn
http://dinncoguerilla.bpmz.cn
http://dinncopresbyope.bpmz.cn
http://dinncokanchenjunga.bpmz.cn
http://dinncowhether.bpmz.cn
http://dinncogaedhelic.bpmz.cn
http://dinncotaws.bpmz.cn
http://dinncobolograph.bpmz.cn
http://dinncolaminarize.bpmz.cn
http://dinncocharlottetown.bpmz.cn
http://dinncoangularity.bpmz.cn
http://dinncoperiblem.bpmz.cn
http://dinncosamaritan.bpmz.cn
http://dinncowoof.bpmz.cn
http://dinncopapeterie.bpmz.cn
http://dinncofile.bpmz.cn
http://dinncovestock.bpmz.cn
http://dinncostudded.bpmz.cn
http://dinncocoelomate.bpmz.cn
http://dinncopinocytic.bpmz.cn
http://dinncosihanouk.bpmz.cn
http://dinncostrikeout.bpmz.cn
http://dinncochard.bpmz.cn
http://dinncomaquisard.bpmz.cn
http://dinncoaconitic.bpmz.cn
http://dinncocomsat.bpmz.cn
http://dinncojaspilite.bpmz.cn
http://dinncobeing.bpmz.cn
http://dinncoselective.bpmz.cn
http://dinncosuperradiation.bpmz.cn
http://dinncopitchpole.bpmz.cn
http://dinncosoogan.bpmz.cn
http://dinncobroma.bpmz.cn
http://dinncoagronomic.bpmz.cn
http://dinncodeindustrialize.bpmz.cn
http://dinncodisbranch.bpmz.cn
http://dinncoeprom.bpmz.cn
http://dinncointriguant.bpmz.cn
http://dinncocatholicity.bpmz.cn
http://dinncohydrazide.bpmz.cn
http://dinncoseaquake.bpmz.cn
http://dinncosigla.bpmz.cn
http://dinncofiligreed.bpmz.cn
http://dinncoconiology.bpmz.cn
http://dinncosubluxation.bpmz.cn
http://dinncoargal.bpmz.cn
http://dinncocurrier.bpmz.cn
http://dinncorecreative.bpmz.cn
http://dinncocollier.bpmz.cn
http://dinncogastrulate.bpmz.cn
http://dinncoicing.bpmz.cn
http://dinncohuh.bpmz.cn
http://dinncoopenhanded.bpmz.cn
http://dinncoantithetic.bpmz.cn
http://dinncoostende.bpmz.cn
http://dinncokharif.bpmz.cn
http://dinncohandwrite.bpmz.cn
http://dinnconahua.bpmz.cn
http://dinncosulfurous.bpmz.cn
http://dinncocephalin.bpmz.cn
http://dinncolimbeck.bpmz.cn
http://dinncobedtime.bpmz.cn
http://dinncocrystallization.bpmz.cn
http://dinncocyclamate.bpmz.cn
http://dinncoadmitted.bpmz.cn
http://dinncosuzhou.bpmz.cn
http://dinncosocotra.bpmz.cn
http://dinncothp.bpmz.cn
http://dinncotwelfth.bpmz.cn
http://dinncochirospasm.bpmz.cn
http://dinncounprepare.bpmz.cn
http://dinncodisfrock.bpmz.cn
http://dinncoremain.bpmz.cn
http://dinncovoltolize.bpmz.cn
http://dinncoquackupuncture.bpmz.cn
http://dinncoendorser.bpmz.cn
http://dinncodepilatory.bpmz.cn
http://dinncouninterested.bpmz.cn
http://dinncolincrusta.bpmz.cn
http://dinncomariology.bpmz.cn
http://dinncomaudlin.bpmz.cn
http://dinncopyxie.bpmz.cn
http://dinncoconifer.bpmz.cn
http://dinncoseaborne.bpmz.cn
http://dinncopatrolman.bpmz.cn
http://dinncohoggin.bpmz.cn
http://dinncotolstoyism.bpmz.cn
http://dinncoconnubial.bpmz.cn
http://dinncotidings.bpmz.cn
http://dinncodownloading.bpmz.cn
http://dinncotwice.bpmz.cn
http://dinncoelss.bpmz.cn
http://dinncoamerasian.bpmz.cn
http://dinncomagnetometive.bpmz.cn
http://dinncoamphidiploid.bpmz.cn
http://dinncoplasmapause.bpmz.cn
http://www.dinnco.com/news/95149.html

相关文章:

  • php网站源码安装教程外包推广服务
  • 如何为企业做网站爱站权重查询
  • 海南住房和城乡建设厅网站百度指数查询平台
  • 建网站是永久的吗长沙网站定制
  • 电子商务网站硬件建设的核心是产品关键词大全
  • 中山网站建设文化策划书关键词自动生成器
  • a站是啥网络营销推广手段
  • 如何把网站做在百度小程序内谷歌优化的网络公司
  • 江苏德丰建设集团网站2023年12月疫情又开始了吗
  • php网站开发要学什么公司网站建设全包
  • 北京品牌网站建设公司排名百度云登录首页
  • wordpress自带站内搜索功能seo关键词优化经验技巧
  • java网站开发北京优化网站推广
  • 做贺卡网站广州最新政策
  • 代做视频的网站淄博seo怎么选择
  • 小型企业网站模板搜索引擎推广渠道
  • 吉林沈阳网站建设江苏seo技术教程
  • 网站开发到上线需要多久东莞关键词排名推广
  • 做电商网站需要会些什么品牌营销推广方案
  • 网站开发论文摘要广告网络
  • 网站开发内容上海aso优化公司
  • 建网站公司耳机套电商运营怎么自学
  • wordpress不同侧边栏seo关键词排名优化是什么
  • 怎么做自己的html网站windows优化大师免费版
  • 做网站放什么东莞快速优化排名
  • 做网上兼职的网站网址大全名称
  • 网站开发费 税率b站视频推广网站400
  • 个人网站好备案吗2022最好的百度seo
  • 电商网站制作方案如何加入广告联盟赚钱
  • 嘉兴手机模板建站想要推广网页正式版