Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:init\do_mounts.c Create Date:2022-07-28 13:57:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mount_block_root

Proto:void __init mount_block_root(char *name, int flags)

Type:void

Parameter:

TypeParameterName
char *name
intflags
429  page = alloc_page(GFP_KERNEL)
430  fs_names = page_address(page)
438  get_fs_names(fs_names)
439  retry :
440  When p cycle
441  err = do_mount_root(name, p, flags, root_mount_data)
443  Case err == 0
444  Go to out
445  Case err == -EACCES
446  Case err == -EINVAL
447  Continue
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  If Not (flags & Mount read-only ) Then
469  flags |= Mount read-only
470  Go to 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  When p cycle 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)
Caller
NameDescribe
mount_root
prepare_namespacePrepare the namespace - decide what/where to mount, load ramdisks, etc.
handle_initrd