Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\open.c Create Date:2022-07-28 20:01:00
Last Modify:2020-03-18 10:16:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:stream_open is used by subsystems that want stream-like file descriptors.* Such file descriptors are not seekable and don't have notion of position* (file.f_pos is always 0 and ppos passed to .read()/.write() is always NULL).

Proto:int stream_open(struct inode *inode, struct file *filp)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file *filp
1259  f_mode &= ~( le is seekable | le can be accessed using pread | le can be accessed using pwrite | File needs atomic accesses to f_pos )
1260  f_mode |= File is stream-like
1261  Return 0
Caller
NameDescribe
create_pipe_files
fifo_open