函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-29 10:38:09
Last Modify:2020-03-18 19:19:59 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:init_special_inode

函数原型:void init_special_inode(struct inode *inode, umode_t mode, dev_t rdev)

返回类型:void

参数:

类型参数名称
struct inode *inode
umode_tmode
dev_trdev
2027  i_mode等于mode
2028  如果S_ISCHR(mode)则
2029  rmer ->i_op->default_file_ops 等于Dummy default file-operations: the only thing this does* is contain the open that then fills in the correct operations* depending on the special file...
2030  i_rdev等于rdev
2031  否则如果S_ISBLK(mode)则
2032  rmer ->i_op->default_file_ops 等于def_blk_fops
2033  i_rdev等于rdev
2034  否则如果S_ISFIFO(mode)则rmer ->i_op->default_file_ops 等于pipefifo_fops
2036  否则如果S_ISSOCK(mode)则否则
2039  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
调用者
名称描述
aa_mk_null_file
mknod_ptmx
devpts_pty_newdevpts_pty_new -- create a new inode in /dev/pts/*@ptmx_inode: inode of the master*@device: major+minor of the node to be created*@index: used as a name of the node*@priv: what's given back by devpts_get_priv* The created inode is returned
ramfs_get_inode