HomeFreeBSD

Simplify compat shims for /dev/crypto.

Description

Simplify compat shims for /dev/crypto.

  • Make session handling always use the CIOGSESSION2 structure. CIOGSESSION requests use a thunk similar to COMPAT_FREEBSD32 session requests. This permits the ioctl handler to use the 'crid' field unconditionally.
  • Move COMPAT_FREEBSD32 handling out of the main ioctl handler body and instead do conversions in/out of thunk structures in dedicated blocks at the start and end of the ioctl function.

Reviewed by: markj (earlier version)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D26178

Details

Provenance
jhbAuthored on
Reviewer
markj
Differential Revision
D26178: Simplify compat shims for /dev/crypto.
Parents
rS364837: fuse: unbreak after r364814
Branches
Unknown
Tags
Unknown