【现象复盘】
考虑到描述符已经写成了代码中的常量,USB枚举过程中实际上只有一些长度字段是多字节的。
长度字节颠倒后相当于向主机报告想要发送长达10000字节的描述符,主机显然不支持。
Linux直接报错-75,这个错误代码在 /usr/src/linux-headers-6.1.0-1035-oem/include/uapi/asm-generic/errno.h 定义: #define EOVERFLOW 75 /* Value too large for defined data type */