函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:init\do_mounts.c Create Date:2022-07-27 15:19:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Prepare the namespace - decide what/where to mount, load ramdisks, etc.

函数原型:void __init prepare_namespace(void)

返回类型:void

参数:

643  如果root_delay
644  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
646  ssleep(root_delay)
656  wait_for_device_probe()
658  md_run_setup()
660  如果saved_root_name[0]则
661  root_device_name等于saved_root_name
665  转到:out
667  ROOT_DEV等于Convert a name into device number
668  如果字符串指定长度比较恒等于0则root_device_name加等于5
672  如果initrd_load()则转到:out
676  如果ROOT_DEV恒等于0且root_wait
677  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
679 driver_probe_done()不等于0或ROOT_DEV等于Convert a name into device number恒等于0循环
681  msleep - sleep safely even with waitqueue interruptions*@msecs: Time in milliseconds to sleep for
682  async_synchronize_full - synchronize all asynchronous function calls* This function waits until all asynchronous function calls have been done.
685  is_floppy等于MAJOR(ROOT_DEV)恒等于FLOPPY_MAJOR
687  如果is_floppy1 = load RAM disk, 0 = don't load rd_load_disk(0)则ROOT_DEV等于Root_RAM0
690  mount_root()
691  out :
692  devtmpfs_mount()
693  do_mount(".", "/", NULL, MS_MOVE, NULL)
694  ksys_chroot(".")
调用者
名称描述
kernel_init_freeable