Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\shm.c Create Date:2022-07-28 16:47:15
Last Modify:2020-03-17 22:58:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Called with shm_ids.rwsem and ipcp locked.

Proto:static inline int shm_more_checks(struct kern_ipc_perm *ipcp, struct ipc_params *params)

Type:int

Parameter:

TypeParameterName
struct kern_ipc_perm *ipcp
struct ipc_params *params
719  shp = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(ipcp, structshmid_kernel, shm_perm)
720  If shm_segsz < for shared memories Then Return -EINVAL
723  Return 0