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

一个微信可以做两个网站支付sem推广计划

一个微信可以做两个网站支付,sem推广计划,济宁网站建设 水木,如何分析一个网站做的怎么样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.bjxfkj.com.cn/article/103245.html

相关文章:

  • 页面设计代码网站优化排名哪家好
  • 高端设计网站制作最近一周新闻热点回顾
  • 宁波网站推广厂家排名码迷seo
  • 网站建设服务费属于什么费用网站维护工程师
  • 网站建设公司做网站要多少费用怎样做线上销售
  • 微信机器人 wordpress广州seo公司官网
  • 重庆官方网站查询系统培训机构加盟
  • 2003iis网站建设错误网站外链工具
  • 旅游网站建设的方法必应搜索推广
  • 韩国风格网站windows7优化大师
  • 摄影网站采用照片做宣传_版权费是多少?指数型基金怎么买
  • 做网站不给维护属于诈骗吗小程序怎么开发
  • 都昌网站建设百度手机助手官网下载
  • 丰顺网站建设网络推广好做吗?
  • 新东方研学网站那家公司做的windows优化软件排行
  • 沈阳网站制作费用网站推广排名收费
  • 奶茶店做网站好处seo搜索引擎优化方法
  • 月嫂网站建设方案广州seo推广培训
  • 江南网盟-专注中小企业网站建设服务百度浏览器官网
  • 厦门有什么网站制作公司电子报刊的传播媒体是什么
  • 网站建设 大公司小公司长春seo公司
  • 武汉制作网站的公司推广新产品最好的方法
  • 外贸网站推广开个网站平台要多少钱
  • 完整网站模板下载网站优化公司开始上班了
  • 做任务的兼职网站郑州网站推广培训
  • 南京电子商务网站开发公司百度竞价个人开户
  • 企业网站定制公司windows优化大师卸载
  • 做的精美的门户网站推荐平台推广
  • 网站开发都是模板直通车推广
  • seo网站关键词优化报价网络营销工具的特点