Skip to content

Hibernation: Clean up userland interface (rev. 2)

Rafael J. Wysocki linux-pm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Hibernation: Introduce SNAPSHOT_GET_IMAGE_SIZE ioctlDocumentation/power/userland-swsusp.txt kernel/power/power.h kernel/power/snapshot.c +1 more+28 -130 replies
2/5Hibernation: Rework platform support ioctls (rev. 2)Documentation/power/userland-swsusp.txt kernel/power/power.h kernel/power/user.c+38 -340 replies
3/5Hibernation: Mark SNAPSHOT_SET_SWAP_FILE ioctl as deprecated (rev. 2)Documentation/power/userland-swsusp.txt kernel/power/power.h kernel/power/user.c+7 -170 replies
4/5Hibernation: Correct definitions of some ioctls (rev. 2)Documentation/power/userland-swsusp.txt kernel/power/power.h kernel/power/user.c+34 -200 replies
5/5Hibernation: Introduce exportable suspend ioctls header (rev. 2)Documentation/power/userland-swsusp.txt include/linux/Kbuild include/linux/suspend_ioctls.h +1 more+39 -330 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchPavel Machek
1/5A-b
2/5A-b
3/5A-b
4/5A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Hibernation: Clean up userland interface (rev. 2)

Hi,

This series of patches is intended to eliminate some design problems with the hibernation userland interface.

It makes the following changes:
* allow the user space utilities to get the size of the image via ioctl
* introduce ioctls to be used instead of SNAPSHOT_PMOPS
* mark the SNAPSHOT_SET_SWAP_FILE ioctl as deprecated
* introduce new ioctl definitions to replace the wrongly defined ones
* move the definitions of hibernation ioctls to a separate header file located in include/linux/ and export them to the user space
(the details are in the changelogs).

Please add to the suspend branch.

Greetings,
Rafael