Page MenuHomeFreeBSD

posixshm: Report output truncation from kern.ipc.posix_shm_list
ClosedPublic

Authored by markj on Jan 16 2022, 10:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 19, 8:39 AM
Unknown Object (File)
Wed, Aug 19, 6:04 AM
Unknown Object (File)
Sat, Aug 15, 1:36 AM
Unknown Object (File)
Tue, Aug 11, 1:54 PM
Unknown Object (File)
Sat, Aug 1, 5:05 AM
Unknown Object (File)
Thu, Jul 30, 7:56 PM
Unknown Object (File)
Mon, Jul 27, 7:41 PM
Unknown Object (File)
Jul 21 2026, 5:33 AM
Subscribers

Details

Summary

PR: 240573
MFC after: 1 week

Test Plan

posixshmcontrol ls still seems to work.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43945
Build 40833: arc lint + arc unit

Event Timeline

kib added inline comments.
sys/kern/uipc_shm.c
2057

Or you could assign ENOMEN to error and break still. For oldptr != NULL you would do unneeded work, but this arguably does not matter.

This revision is now accepted and ready to land.Jan 16 2022, 10:41 PM
sys/kern/uipc_shm.c
2057

I wrote it that way first, but it seems nicer to keep the common case simple.