HomeFreeBSD

MFC r367302:

Description

MFC r367302:

sysvshm: pass relevant uap members as arguments

Alter shmget_allocate_segment and shmget_existing to take the values
they want from struct shmget_args rather than passing the struct
around. In general, uap structures should only be the interface to
sys_<foo> functions.

This makes one small functional change and records the allocated space
rather than the requested space. If this turns out to be a problem (e.g.
if software tries to find undersized segments by exact size rather than
using keys), we can correct that easily.

Reviewed by: kib
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D27077

Details

Provenance
brooksAuthored on
Reviewer
kib
Differential Revision
D27077: sysvshm: pass relavent uap members as arguments
Parents
rS367600: Make CTL nicer to increased MAXPHYS.
Branches
Unknown
Tags
Unknown