ioctl_userfaultfd.2: Add comments to structure definitions

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-01-09 08:48:35 +13:00
parent b8838c257f
commit 7cb4a3d66e
1 changed files with 14 additions and 14 deletions

View File

@ -85,9 +85,9 @@ structure, defined as:
.nf
struct uffdio_api {
__u64 api;
__u64 features;
__u64 ioctls;
__u64 api; /* Requested API version (input) */
__u64 features; /* Must be zero */
__u64 ioctls; /* Available ioctl() operations (output) */
};
.fi
@ -171,14 +171,14 @@ structure, defined as:
.nf
struct uffdio_range {
__u64 start;
__u64 len;
__u64 start; /* Start of range */
__u64 len; /* Length of rnage (bytes) */
};
struct uffdio_register {
struct uffdio_range range;
__u64 mode;
__u64 ioctls;
__u64 mode; /* Desired mode of operation (input) */
__u64 ioctls; /* Available ioctl() operations (output) */
};
.fi
@ -300,11 +300,11 @@ structure pointed to by
.in +4n
.nf
struct uffdio_copy {
__u64 dst;
__u64 src;
__u64 len;
__u64 mode;
__s64 copy;
__u64 dst; /* Source of copy */
__u64 src; /* Destinate of copy */
__u64 len; /* Number of bytes to copy */
__u64 mode; /* Flags controlling behavior of copy */
__s64 copy; /* Number of bytes copied, or negated error */
};
.fi
.in
@ -389,8 +389,8 @@ structure pointed to by
.nf
struct uffdio_zeropage {
struct uffdio_range range;
__u64 mode;
__s64 zeropage;
__u64 mode; /* Flags controlling behavior of copy */
__s64 zeropage; /* Number of bytes zeroed, or negated error */
};
.fi
.in