Skip to content

x/sys/unix: add consts, structs and ioctl calls from <mtd/mtd-user.h> #46063

@lhl2617

Description

@lhl2617

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions