HomeFreeBSD

nvmecontrol: Create letoh to generically convert to host order

Description

nvmecontrol: Create letoh to generically convert to host order

Using _Generic, create letoh which will generically convert uintXX_t
types from little endian to host, regardless of the size. This name has
been floated as a possible addition to endian.h.

Sponsored by: Netflix
Discussed with: jhb
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D44649

(cherry picked from commit 67163bc485a56d960b72fb26f19685682b92dd6b)

Details

Provenance
impAuthored on Apr 16 2024, 10:35 PM
jhbCommitted on Aug 26 2024, 6:31 PM
Parents
rG4837e07cd2af: nvme: Add my copyright to logpage.c
Branches
Unknown
Tags
Unknown