函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_mount_root

函数原型:static int __init do_mount_root(const char *name, const char *fs, const int flags, const void *data)

返回类型:int

参数:

类型参数名称
const char *name
const char *fs
const intflags
const void *data
394  struct page * p = NULL
395  char * data_page = NULL
398  如果data
400  p等于alloc_page(GFP_KERNEL)
401  如果非p则返回:负ENOMEM
403  data_page等于page_address(p)
405  strncpy(data_page, data, PAGE_SIZE)
408  ret等于do_mount(name, "/root", fs, flags, data_page)
409  如果ret则转到:out
412  ksys_chdir("/root")
413  s等于d_sb
414  ROOT_DEV等于 search index; _not_ kdev_t
415  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
421  out :
422  如果pput_page(p)
424  返回:ret
调用者
名称描述
mount_block_root