HomeFreeBSD

uio: Use switch statements when handling UIO_READ vs UIO_WRITE

Description

uio: Use switch statements when handling UIO_READ vs UIO_WRITE

This is mostly to reduce the diff with CheriBSD which adds additional
constants to enum uio_rw, but also matches the normal style used for
uio_segflg.

Reviewed by: kib, emaste
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D45142

Details

Provenance
jhbAuthored on May 10 2024, 8:43 PM
Reviewer
kib
Differential Revision
D45142: uio: Use switch statements when handling UIO_READ vs UIO_WRITE
Parents
rGf75764fea34a: md: Merge two switch statements in mdstart_vnode
Branches
Unknown
Tags
Unknown