函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\mqueue.c Create Date:2022-07-27 18:26:20
Last Modify:2020-03-17 23:00:47 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:prepare_open

函数原型:static int prepare_open(struct dentry *dentry, int oflag, int ro, umode_t mode, struct filename *name, struct mq_attr *attr)

返回类型:int

参数:

类型参数名称
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  如果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
780  如果非oflag按位与O_CREAT的值则返回:负ENOENT
782  如果ro则返回:ro
784  audit_inode_parent_hidden(name, parent directory )
785  返回:vfs_mkobj(dentry, mode & ~current_umask(), mqueue_create_attr, attr)
789  audit_inode(name, dentry, 0)
790  如果oflag按位与O_CREAT按位或O_EXCL的值的值恒等于O_CREAT按位或O_EXCL的值则返回:负EEXIST
792  如果oflag按位与O_ACCMODE的值恒等于O_RDWR按位或O_WRONLY的值则返回:负EINVAL
794  acc等于oflag2acc[oflag & O_ACCMODE]
795  返回:inode_permission(获得目录项的索引节点, acc)
调用者
名称描述
do_mq_open