函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This routine locks the ipc structure found at least at position pos.

函数原型:static struct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t pos, loff_t *new_pos)

返回类型:struct kern_ipc_perm

参数:

类型参数名称
struct ipc_ids *ids
loff_tpos
loff_t *new_pos
760  total等于0
761 id小于postotal小于in_use循环
762  ipc等于dr_find() - Return pointer for given ID
763  如果(ipc != NULL)则total自加
767  如果total大于等于in_use则返回:NULL
770 pos小于ipc_mni循环
771  ipc等于dr_find() - Return pointer for given ID
772  如果(ipc != NULL)则
773  new_pos等于pos加1
776  返回:ipc
781  返回:NULL
调用者
名称描述
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.