Page MenuHomeFreeBSD

pcm: centralize 32-bit ioctl compat
ClosedPublic

Authored by brooks on May 22 2024, 10:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 27, 7:54 PM
Unknown Object (File)
May 25 2024, 5:17 PM
Unknown Object (File)
May 23 2024, 4:34 PM
Unknown Object (File)
May 23 2024, 6:18 AM
Unknown Object (File)
May 23 2024, 3:54 AM
Unknown Object (File)
May 23 2024, 1:57 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This IMO simplifies the 32-bit compat by putting it all in one place.

Feel free to disregard.

The patch compiles, but is otherwise untested.

This revision is now accepted and ready to land.May 22 2024, 11:29 PM
This revision was automatically updated to reflect the committed changes.