Import linux/liveupdate.h UAPI header from 7.2-rc1
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
* Pasha Tatashin <pasha.tatashin@soleen.com>
|
||||
*/
|
||||
|
||||
#ifndef _LIVEUPDATE_H
|
||||
#define _LIVEUPDATE_H
|
||||
#ifndef _UAPI_LIVEUPDATE_H
|
||||
#define _UAPI_LIVEUPDATE_H
|
||||
|
||||
#include <linux/ioctl.h>
|
||||
#include <linux/types.h>
|
||||
@@ -59,6 +59,7 @@ enum {
|
||||
LIVEUPDATE_CMD_SESSION_PRESERVE_FD = LIVEUPDATE_CMD_SESSION_BASE,
|
||||
LIVEUPDATE_CMD_SESSION_RETRIEVE_FD = 0x41,
|
||||
LIVEUPDATE_CMD_SESSION_FINISH = 0x42,
|
||||
LIVEUPDATE_CMD_SESSION_GET_NAME = 0x43,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -168,7 +169,9 @@ struct liveupdate_session_preserve_fd {
|
||||
* associated with the token and populates the @fd field with a new file
|
||||
* descriptor referencing the restored resource in the current (new) kernel.
|
||||
* This operation must be performed *before* signaling completion via
|
||||
* %LIVEUPDATE_IOCTL_FINISH.
|
||||
* %LIVEUPDATE_IOCTL_FINISH. If a retrieve of a token fails, subsequent
|
||||
* attempts to retrieve the token fail with the same error code. Failed
|
||||
* retrieves are not retried.
|
||||
*
|
||||
* Return: 0 on success, negative error code on failure (e.g., invalid token).
|
||||
*/
|
||||
@@ -213,4 +216,24 @@ struct liveupdate_session_finish {
|
||||
#define LIVEUPDATE_SESSION_FINISH \
|
||||
_IO(LIVEUPDATE_IOCTL_TYPE, LIVEUPDATE_CMD_SESSION_FINISH)
|
||||
|
||||
#endif /* _LIVEUPDATE_H */
|
||||
/**
|
||||
* struct liveupdate_session_get_name - ioctl(LIVEUPDATE_SESSION_GET_NAME)
|
||||
* @size: Input; sizeof(struct liveupdate_session_get_name)
|
||||
* @reserved: Input; Must be zero. Reserved for future use.
|
||||
* @name: Output; A null-terminated string with the full session name.
|
||||
*
|
||||
* Retrieves the full name of the session associated with this file descriptor.
|
||||
* This is useful because the kernel may truncate the name shown in /proc.
|
||||
*
|
||||
* Return: 0 on success, negative error code on failure.
|
||||
*/
|
||||
struct liveupdate_session_get_name {
|
||||
__u32 size;
|
||||
__u32 reserved;
|
||||
__u8 name[LIVEUPDATE_SESSION_NAME_LENGTH];
|
||||
};
|
||||
|
||||
#define LIVEUPDATE_SESSION_GET_NAME \
|
||||
_IO(LIVEUPDATE_IOCTL_TYPE, LIVEUPDATE_CMD_SESSION_GET_NAME)
|
||||
|
||||
#endif /* _UAPI_LIVEUPDATE_H */
|
||||
|
||||
Reference in New Issue
Block a user