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

江苏省疫情防控最新文件企业seo网络推广

江苏省疫情防控最新文件,企业seo网络推广,洛阳霞光网络建站公司,wordpress的分享插件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://www.yidumall.com/news/66611.html

相关文章:

  • 网站是否含有seo收录功能网络推广方案设计
  • 招标网站哪个比较好全球搜索引擎市场份额
  • 网站做百度推广为什么没人咨询百度关键词优化服务
  • web网站怎么做超链接seo如何优化关键词排名
  • 腾讯风铃做的网站有期限吗淘宝seo是什么
  • 谁给个国外的黄色网站百度总部地址
  • 角门网站建设网站首页关键词如何优化
  • 北京市门头沟有没有做网站的厦门人才网手机版
  • 有做盆景的网站百度网站提交入口网址
  • 做网站退款怎么做会计分录足球世界排名国家
  • 做电影字幕的网站公司怎么建立自己的网站
  • 杭州网站建设seo优化兰州seo公司
  • 功能分类模块类型网站企业查询免费
  • 海口公司网站建设东莞专业网站推广工具
  • 百度推广开户多少钱一个月百度广告优化师
  • 深圳H5网站开发百度推广销售话术
  • 创建设计公司网站推广策略怎么写
  • c2c网站有哪些平台信息流优化师发展前景
  • wordpress怎么写网站关键词和描述现代营销手段有哪些
  • 做网站行业的动态十大搜索引擎神器
  • mediwiki 做网站广州营销seo
  • 做自由行的网站好广告最多的网站
  • 受欢迎的聊城网站建设全网整合营销推广方案
  • 网站建设公司应该怎么做推广成都网络推广优化
  • 免费建设网站平台天津seo网站推广
  • 广州网站改版领军企业网推平台有哪些比较好
  • 在百度做网站怎么做china东莞seo
  • 章丘网站优化百度网盘下载慢怎么解决
  • 那些网站是做生鲜的国外搜索引擎排名百鸣
  • wordpress 小图标许昌正规网站优化公司