函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Create a simple rootfs that is similar to the default initramfs

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

返回类型:int

参数:

20  err等于ksys_mkdir((constchar__user__force * )"/dev", 0755)
21  如果err小于0则转到:out
24  err等于ksys_mknod((constchar__user__force * )"/dev/console", S_IFCHR | S_IRUSR | S_IWUSR, new_encode_dev(MKDEV(5, 1)))
27  如果err小于0则转到:out
30  err等于ksys_mkdir((constchar__user__force * )"/root", 0700)
31  如果err小于0则转到:out
34  返回:0
36  out :
37  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
38  返回:err