函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\util.c Create Date:2022-07-27 18:15:17
Last Modify:2022-05-23 18:05:07 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pc_update_perm - update the permissions of an ipc object*@in: the permission given as input.*@out: the permission of the ipc to set.

函数原型:int ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out)

返回类型:int

参数:

类型参数名称
struct ipc64_perm *in
struct kern_ipc_perm *out
655  uid等于make_kuid(current_user_ns(), uid)
656  gid等于make_kgid(current_user_ns(), gid)
657  如果非uid_valid(uid)或非gid_valid(gid)则返回:负EINVAL
660  uid等于uid
661  gid等于gid
662  mode等于mode按位与S_IRWXUGO的反按位或mode按位与S_IRWXUGO
665  返回:0
调用者
名称描述
msgctl_downThis function handles some msgctl commands which require the rwsem* to be held in write mode.* NOTE: no locks must be held, the rwsem is taken inside this function.
semctl_downThis function handles some semctl commands which require the rwsem* to be held in write mode.* NOTE: no locks must be held, the rwsem is taken inside this function.
shmctl_downThis function handles some shmctl commands which require the rwsem* to be held in write mode.* NOTE: no locks must be held, the rwsem is taken inside this function.