SNAPSHOT_IOC_MAGIC 17 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_FREEZE _IO(SNAPSHOT_IOC_MAGIC, 1) SNAPSHOT_IOC_MAGIC 18 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_UNFREEZE _IO(SNAPSHOT_IOC_MAGIC, 2) SNAPSHOT_IOC_MAGIC 19 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_ATOMIC_RESTORE _IO(SNAPSHOT_IOC_MAGIC, 4) SNAPSHOT_IOC_MAGIC 20 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_FREE _IO(SNAPSHOT_IOC_MAGIC, 5) SNAPSHOT_IOC_MAGIC 21 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_FREE_SWAP_PAGES _IO(SNAPSHOT_IOC_MAGIC, 9) SNAPSHOT_IOC_MAGIC 22 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_S2RAM _IO(SNAPSHOT_IOC_MAGIC, 11) SNAPSHOT_IOC_MAGIC 23 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_SET_SWAP_AREA _IOW(SNAPSHOT_IOC_MAGIC, 13, \ SNAPSHOT_IOC_MAGIC 25 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_GET_IMAGE_SIZE _IOR(SNAPSHOT_IOC_MAGIC, 14, __kernel_loff_t) SNAPSHOT_IOC_MAGIC 26 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_PLATFORM_SUPPORT _IO(SNAPSHOT_IOC_MAGIC, 15) SNAPSHOT_IOC_MAGIC 27 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_POWER_OFF _IO(SNAPSHOT_IOC_MAGIC, 16) SNAPSHOT_IOC_MAGIC 28 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_CREATE_IMAGE _IOW(SNAPSHOT_IOC_MAGIC, 17, int) SNAPSHOT_IOC_MAGIC 29 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_PREF_IMAGE_SIZE _IO(SNAPSHOT_IOC_MAGIC, 18) SNAPSHOT_IOC_MAGIC 30 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_AVAIL_SWAP_SIZE _IOR(SNAPSHOT_IOC_MAGIC, 19, __kernel_loff_t) SNAPSHOT_IOC_MAGIC 31 include/uapi/linux/suspend_ioctls.h #define SNAPSHOT_ALLOC_SWAP_PAGE _IOR(SNAPSHOT_IOC_MAGIC, 20, __kernel_loff_t) SNAPSHOT_IOC_MAGIC 209 kernel/power/user.c if (_IOC_TYPE(cmd) != SNAPSHOT_IOC_MAGIC)