binderfs.h 808 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Copyright (C) 2018 Canonical Ltd.
  4. *
  5. */
  6. #ifndef _UAPI_LINUX_BINDER_CTL_H
  7. #define _UAPI_LINUX_BINDER_CTL_H
  8. #include <linux/android/binder.h>
  9. #include <linux/types.h>
  10. #include <linux/ioctl.h>
  11. #define BINDERFS_MAX_NAME 255
  12. /**
  13. * struct binderfs_device - retrieve information about a new binder device
  14. * @name: the name to use for the new binderfs binder device
  15. * @major: major number allocated for binderfs binder devices
  16. * @minor: minor number allocated for the new binderfs binder device
  17. *
  18. */
  19. struct binderfs_device {
  20. char name[BINDERFS_MAX_NAME + 1];
  21. __u8 major;
  22. __u8 minor;
  23. };
  24. /**
  25. * Allocate a new binder device.
  26. */
  27. #define BINDER_CTL_ADD _IOWR('b', 1, struct binderfs_device)
  28. #endif /* _UAPI_LINUX_BINDER_CTL_H */