Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\pipe.c Create Date:2022-07-28 20:04:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_pipe_inode

Proto:static struct inode *get_pipe_inode(void)

Type:struct inode

Parameter:Nothing

843  inode = new_inode_pseudo( pointer to superblock )
846  If Not inode Then Go to fail_inode
849  Stat data, not accessed from path walking = get_next_ino()
851  pipe = alloc_pipe_info()
852  If Not pipe Then Go to fail_iput
855  i_pipe = pipe
856  files = 2
857  readers = writers = 1
858  rmer ->i_op->default_file_ops = pipe.c
866  Misc = I_DIRTY
867  i_mode = S_IFIFO | S_IRUSR | S_IWUSR
868  i_uid = current_fsuid()
869  i_gid = current_fsgid()
870  i_atime = i_mtime = i_ctime = current_time(inode)
872  Return inode
874  fail_iput :
875  put an inode
877  fail_inode :
878  Return NULL
Caller
NameDescribe
create_pipe_files