pcm: centralize 32-bit ioctl compat
authorBrooks Davis <brooks@FreeBSD.org>
Thu, 23 May 2024 16:14:36 +0000 (17:14 +0100)
committerBrooks Davis <brooks@FreeBSD.org>
Thu, 23 May 2024 16:15:09 +0000 (17:15 +0100)
commitfb9013f215211f013eccc54786f299e39a1f8773
tree909bc3305c3898272976ac210a5440c0ced60665
parent61b07f8aa52844b21637ac264ea134c1aef48cb7
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
sys/dev/sound/pcm/sndstat.c