函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mount_block_root

函数原型:void __init mount_block_root(char *name, int flags)

返回类型:void

参数:

类型参数名称
char *name
intflags
429  page等于alloc_page(GFP_KERNEL)
430  fs_names等于page_address(page)
438  get_fs_names(fs_names)
439  retry :
440 p循环
441  err等于do_mount_root(name, p, flags, root_mount_data)
443  :err恒等于0
444  转到:out
445  :err恒等于负EACCES
446  :err恒等于负EINVAL
447  继续下一循环
455  __bdevname(ROOT_DEV, b)
457  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
459  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
461  printk_all_partitions()
466  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
468  如果非flags按位与Mount read-only 的值则
469  flags或等于Mount read-only
470  转到:retry
473  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
474  printk_all_partitions()
475  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
476 p循环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
478  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
480  __bdevname(ROOT_DEV, b)
482  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
483  out :
484  put_page(page)
调用者
名称描述
mount_root
prepare_namespacePrepare the namespace - decide what/where to mount, load ramdisks, etc.
handle_initrd