Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:populate_rootfs

Proto:static int __init populate_rootfs(void)

Type:int

Parameter:Nothing

657  err = unpack_to_rootfs(__initramfs_start, __initramfs_size)
658  If err Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
661  If Not _initrd_mem always gets called with the next two as arguments.. || IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_INITRAMFS_FORCE) Then Go to done
664  If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_BLK_DEV_RAM) Then 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
666  Else 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
669  err = unpack_to_rootfs((char * )_initrd_mem always gets called with the next two as arguments.. , _initrd_mem always gets called with the next two as arguments.. - _initrd_mem always gets called with the next two as arguments.. )
670  If err Then
671  clean_rootfs()
672  populate_initrd_image(err)
675  done :
680  If Not do_retain_initrd && _initrd_mem always gets called with the next two as arguments.. && Not kexec_free_initrd() Then free_initrd_mem(_initrd_mem always gets called with the next two as arguments.. , _initrd_mem always gets called with the next two as arguments.. )
682  _initrd_mem always gets called with the next two as arguments.. = 0
683  _initrd_mem always gets called with the next two as arguments.. = 0
685  flush_delayed_fput()
686  Return 0