Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\mqueue.c Create Date:2022-07-28 16:51:08
Last Modify:2020-03-17 23:00:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:prepare_open

Proto:static int prepare_open(struct dentry *dentry, int oflag, int ro, umode_t mode, struct filename *name, struct mq_attr *attr)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
intoflag
intro
umode_tmode
struct filename *name
struct mq_attr *attr
775  static const int oflag2acc[O_ACCMODE] = {MAY_READ, MAY_WRITE, MAY_READ | MAY_WRITE}
779  If d_really_is_negative - Determine if a dentry is really negative (ignoring fallthroughs)*@dentry: The dentry in question* Returns true if the dentry represents either an absent name or a name that* doesn't map to an inode (ie Then
780  If Not (oflag & O_CREAT) Then Return -ENOENT
782  If ro Then Return ro
784  audit_inode_parent_hidden(name, parent directory )
785  Return vfs_mkobj(dentry, mode & ~current_umask(), mqueue_create_attr, attr)
789  audit_inode(name, dentry, 0)
790  If (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) Then Return -EEXIST
792  If (oflag & O_ACCMODE) == (O_RDWR | O_WRONLY) Then Return -EINVAL
794  acc = oflag2acc[oflag & O_ACCMODE]
795  Return inode_permission(d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them., acc)
Caller
NameDescribe
do_mq_open