Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\util.c Create Date:2022-07-28 16:40:05
Last Modify:2022-05-23 18:05:07 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:This routine locks the ipc structure found at least at position pos.

Proto:static struct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t pos, loff_t *new_pos)

Type:struct kern_ipc_perm

Parameter:

TypeParameterName
struct ipc_ids *ids
loff_tpos
loff_t *new_pos
760  total = 0
761  When id < pos && total < in_use cycle
762  ipc = dr_find() - Return pointer for given ID
763  If (ipc != NULL) Then total++
767  If total >= in_use Then Return NULL
770  When pos < ipc_mni cycle
771  ipc = dr_find() - Return pointer for given ID
772  If (ipc != NULL) Then
773  new_pos = pos + 1
776  Return ipc
781  Return NULL
Caller
NameDescribe
sysvipc_proc_next
sysvipc_proc_startFile positions: pos 0 -> header, pos n -> ipc id = n - 1.* SeqFile iterator: iterator value locked ipc pointer or SEQ_TOKEN_START.