HomeFreeBSD

pcm: centralize 32-bit ioctl compat

Description

pcm: centralize 32-bit ioctl compat

Move all handlng of struct sndstioc_nv_arg(32) to sndstat_ioctl() and
make the functions that actually do the work take a buffer and size or
size pointer. The 32-bit compat work is minimal so just inline it.

Remove checks that we've got a 32-bit process for 32-bit ioctls. We
don't check that default ioctls are from 64-bit processes on 64-bit
systems.

Reviewed by: christos
Differential Revision: https://reviews.freebsd.org/D45307

(cherry picked from commit fb9013f215211f013eccc54786f299e39a1f8773)

Details

Provenance
brooksAuthored on May 23 2024, 4:14 PM
christosCommitted on May 26 2024, 1:51 PM
Reviewer
christos
Differential Revision
D45307: pcm: centralize 32-bit ioctl compat
Parents
rG432c0128bd3d: man: the exists function needs to validate the first parameter
Branches
Unknown
Tags
Unknown