vhost: fix VHOST_*_OWNER documentation
Subsystems (5)
PATCH 1/1 vhost: fix VHOST_*_OWNER documentation
VHOST_OWNER_SET and VHOST_OWNER_RESET are used in the documentation instead of VHOST_SET_OWNER and VHOST_RESET_OWNER respectively.
To avoid confusion, let's use the right names in the documentation. No change to the API, only the documentation is involved.
--- include/uapi/linux/vhost.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/uapi/linux/vhost.h +2 -2
@@ -28,10 +28,10 @@/* Set current process as the (exclusive) owner of this file descriptor. This * must be called before any other vhost command. Further calls to -* VHOST_OWNER_SET fail until VHOST_OWNER_RESET is called. */ +* VHOST_SET_OWNER fail until VHOST_RESET_OWNER is called. */ #define VHOST_SET_OWNER _IO(VHOST_VIRTIO, 0x01)/* Give up ownership, and reset the device to default values. -* Allows subsequent call to VHOST_OWNER_SET to succeed. */ +* Allows subsequent call to VHOST_SET_OWNER to succeed. */ #define VHOST_RESET_OWNER _IO(VHOST_VIRTIO, 0x02)/* Set up/modify memory layout */
Signature · 1 line
2.48.1
Quoted 7 lines · Stefano Garzarella
VHOST_OWNER_SETandVHOST_OWNER_RESETare used in the documentation instead ofVHOST_SET_OWNERandVHOST_RESET_OWNERrespectively.To avoid confusion, let's use the right names in the documentation. No change to the API, only the documentation is involved.
Quoted 25 lines
Signed-off-by Stefano Garzarella <[email protected]>--- include/uapi/linux/vhost.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)include/uapi/linux/vhost.h +2
-3@@ -28,10 +28,10 @@/* Set current process as the (exclusive) owner of this file descriptor. This * must be called before any other vhost command. Further calls to -* VHOST_OWNER_SET fail until VHOST_OWNER_RESET is called. */ +* VHOST_SET_OWNER fail until VHOST_RESET_OWNER is called. */ #define VHOST_SET_OWNER _IO(VHOST_VIRTIO, 0x01)/* Give up ownership, and reset the device to default values. -* Allows subsequent call to VHOST_OWNER_SET to succeed. */ +* Allows subsequent call to VHOST_SET_OWNER to succeed. */ #define VHOST_RESET_OWNER _IO(VHOST_VIRTIO, 0x02)/* Set up/modify memory layout */ --2.48.1
Jason Wang
Acked-byQuoted 12 lines · Eugenio Perez Martin
Quoted 7 lines · Stefano Garzarella
VHOST_OWNER_SETandVHOST_OWNER_RESETare used in the documentation instead ofVHOST_SET_OWNERandVHOST_RESET_OWNERrespectively.To avoid confusion, let's use the right names in the documentation. No change to the API, only the documentation is involved.
Reviewed-by Eugenio Pérez <[email protected]>
Thanks