[LTP] newipc: Factor out generic get_ipc_idx_from_id() helper

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Thu Jul 30 23:13:44 CEST 2026


Hi Stephen,

On Thu, 30 Jul 2026, Stephen Bertram wrote:
> newipc: Factor out generic get_ipc_idx_from_id() helper

Both patches in this series were reviewed:

  [1/2] newipc: Factor out generic get_ipc_idx_from_id() helper
  [2/2] semctl01: fix SEM_STAT failures under parallel LTP runs

The extracted helper is a faithful move of shmctl01's SHM_STAT loop, the
kernel-doc on get_ipc_idx_from_id() is well formed, and the shmctl01
conversion is behavior-preserving.

For semctl01, the id-to-index lookup, the func_iinfo() and func_sstat()
adjustments, and the added -lltpnewipc link entry are all consistent, and
the per-index STAT calls correctly avoid the aborting SAFE_ wrappers.

Verdict - Reviewed

---
Note:

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer


More information about the ltp mailing list