logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

blkpg.h (904B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef __LINUX_BLKPG_H
  3. #define __LINUX_BLKPG_H
  4. #include <linux/ioctl.h>
  5. #define BLKPG _IO(0x12,105)
  6. /* The argument structure */
  7. struct blkpg_ioctl_arg {
  8. int op;
  9. int flags;
  10. int datalen;
  11. void *data;
  12. };
  13. /* The subfunctions (for the op field) */
  14. #define BLKPG_ADD_PARTITION 1
  15. #define BLKPG_DEL_PARTITION 2
  16. #define BLKPG_RESIZE_PARTITION 3
  17. /* Sizes of name fields. Unused at present. */
  18. #define BLKPG_DEVNAMELTH 64
  19. #define BLKPG_VOLNAMELTH 64
  20. /* The data structure for ADD_PARTITION and DEL_PARTITION */
  21. struct blkpg_partition {
  22. long long start; /* starting offset in bytes */
  23. long long length; /* length in bytes */
  24. int pno; /* partition number */
  25. char devname[BLKPG_DEVNAMELTH]; /* unused / ignored */
  26. char volname[BLKPG_VOLNAMELTH]; /* unused / ignore */
  27. };
  28. #endif /* __LINUX_BLKPG_H */