函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:populate_rootfs

函数原型:static int __init populate_rootfs(void)

返回类型:int

参数:

657  err等于unpack_to_rootfs(__initramfs_start, __initramfs_size)
658  如果errpanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
661  如果非_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)则转到:done
664  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_BLK_DEV_RAM)则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  否则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  如果err
671  clean_rootfs()
672  populate_initrd_image(err)
675  done :
680  如果非do_retain_initrd_initrd_mem always gets called with the next two as arguments.. 且非kexec_free_initrd()则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  返回:0