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)
Sun, Nov 17, 10:39 AM
Unknown Object (File)
Fri, Oct 25, 10:33 PM
Unknown Object (File)
Oct 7 2024, 10:42 AM
Unknown Object (File)
Oct 7 2024, 10:42 AM
Unknown Object (File)
Oct 7 2024, 10:41 AM
Unknown Object (File)
Oct 7 2024, 10:17 AM
Unknown Object (File)
Oct 3 2024, 3:24 PM
Unknown Object (File)
Oct 3 2024, 1:24 PM
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.