What did you expect to see?
It would be convenient to have MTD user space constants, utils and ioctl operations in the package.
An example use case is in Facebook's OpenBMC repo here.
The proposed addition entails:
- Adding
#include <mtd/mtd-user.h> in unix/mkerrors.sh with the sufficient regex changes
- Adding
#include <mtd/mtd-user.h> in unix/linux/types.go with the necessary bindings (C.struct_XXX for structs, constants for enum)
- Adding the necessary
ioctl functions in unix/ioctl.go for unique types.