Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mlock.c Create Date:2022-07-28 14:46:07
Last Modify:2022-05-23 14:12:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:user_shm_unlock

Proto:void user_shm_unlock(size_t size, struct user_struct *user)

Type:void

Parameter:

TypeParameterName
size_tsize
struct user_struct *user
869  spin_lock( & Objects with different lifetime than processes (SHM_LOCK and SHM_HUGETLB* shm segments) get accounted against the user_struct instead.)
870  How many pages of mlocked shm ? -= size + PAGE_SIZE - 1 >> PAGE_SHIFT determines the page size
871  spin_unlock( & Objects with different lifetime than processes (SHM_LOCK and SHM_HUGETLB* shm segments) get accounted against the user_struct instead.)
872  free_uid(user)
Caller
NameDescribe
newsegwseg - Create a new shared memory segment*@ns: namespace*@params: ptr to the structure that contains key, size and shmflg* Called with shm_ids.rwsem held as a writer.