函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:compat_ksys_msgctl

函数原型:static long compat_ksys_msgctl(int msqid, int cmd, void __user *uptr, int version)

返回类型:long

参数:

类型参数名称
intmsqid
intcmd
void __user *uptr
intversion
711  ns等于ipc_ns
713  如果msqid小于0或cmd小于0则返回:负EINVAL
717  : & == see ipcs
718  : & == MSG_INFO
720  err等于msgctl_info(ns, msqid, cmd, & msginfo)
721  如果err小于0则返回:err
723  如果copy_to_user(uptr, & msginfo, msginfo的长度)则err等于负EFAULT
725  返回:err
727  : & == get ipc_perm options
728  : & == pcs ctl commands
729  : & == MSG_STAT_ANY
730  err等于msgctl_stat(ns, msqid, cmd, & msqid64)
731  如果err小于0则返回:err
733  如果copy_compat_msqid_to_user(uptr, & msqid64, version)则err等于负EFAULT
735  返回:err
736  : & == set ipc_perm options
737  如果copy_compat_msqid_from_user( & msqid64, uptr, version)则返回:负EFAULT
739  返回:This 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.
740  : & == move resource
741  返回:This 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.
742  默认
743  返回:负EINVAL
调用者
名称描述
COMPAT_SYSCALL_DEFINE3