From: Cornelia Huck <cohuck@redhat.com>
To: "Ricardo Cañuelo" <ricardo.canuelo@collabora.com>,
linux-doc@vger.kernel.org
Cc: virtualization@lists.linux-foundation.org, mst@redhat.com,
jasowang@redhat.com, kernel@collabora.com, bagasdotme@gmail.com,
"Ricardo Cañuelo" <ricardo.canuelo@collabora.com>
Subject: Re: [PATCH v2 1/2] virtio: kerneldocs fixes and enhancements
Date: Mon, 08 Aug 2022 14:14:07 +0200 [thread overview]
Message-ID: <87edxrdjao.fsf@redhat.com> (raw)
In-Reply-To: <20220804105914.3707389-2-ricardo.canuelo@collabora.com>
On Thu, Aug 04 2022, Ricardo Cañuelo <ricardo.canuelo@collabora.com> wrote:
> Fix variable names in some htmldocs, naming in others.
> Add htmldocs for struct vring_desc and vring_interrupt.
Isn't that "kerneldoc"? But maybe I'm a bit behind on the current
terminology.
>
> Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
> ---
> drivers/virtio/virtio_ring.c | 8 ++++++++
> include/linux/virtio.h | 6 +++---
> include/linux/virtio_config.h | 6 +++---
> include/uapi/linux/virtio_ring.h | 16 +++++++++++-----
> 4 files changed, 25 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
> index a5ec724c01d8..e2091345c5c2 100644
> --- a/drivers/virtio/virtio_ring.c
> +++ b/drivers/virtio/virtio_ring.c
> @@ -2147,6 +2147,14 @@ static inline bool more_used(const struct vring_virtqueue *vq)
> return vq->packed_ring ? more_used_packed(vq) : more_used_split(vq);
> }
>
> +/**
> + * vring_interrupt - notify a virtqueue on an interrupt
> + * @irq: the IRQ number
This is being ignored, however. Append "(ignored)"?
(I think it is only there so that this function can be used as an
irq_handler_t.)
> + * @_vq: the struct virtqueue to notify
> + *
> + * Calls the callback function of @_vq to process the virtqueue
> + * notification.
> + */
> irqreturn_t vring_interrupt(int irq, void *_vq)
> {
> struct vring_virtqueue *vq = to_vvq(_vq);
(...)
> diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h
> index b47c2e7ed0ee..997801018ae4 100644
> --- a/include/linux/virtio_config.h
> +++ b/include/linux/virtio_config.h
> @@ -225,7 +225,7 @@ int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs,
>
> /**
> * virtio_synchronize_cbs - synchronize with virtqueue callbacks
> - * @vdev: the device
> + * @dev: the device
As you're touching this anyway: maybe s/device/virtio device/ ?
> */
> static inline
> void virtio_synchronize_cbs(struct virtio_device *dev)
> @@ -244,7 +244,7 @@ void virtio_synchronize_cbs(struct virtio_device *dev)
>
> /**
> * virtio_device_ready - enable vq use in probe function
> - * @vdev: the device
> + * @dev: the device
Same here.
> *
> * Driver must call this to use vqs in the probe function.
> *
WARNING: multiple messages have this Message-ID (diff)
From: Cornelia Huck <cohuck@redhat.com>
To: "Ricardo Cañuelo" <ricardo.canuelo@collabora.com>,
linux-doc@vger.kernel.org
Cc: mst@redhat.com, virtualization@lists.linux-foundation.org,
bagasdotme@gmail.com, kernel@collabora.com
Subject: Re: [PATCH v2 1/2] virtio: kerneldocs fixes and enhancements
Date: Mon, 08 Aug 2022 14:14:07 +0200 [thread overview]
Message-ID: <87edxrdjao.fsf@redhat.com> (raw)
In-Reply-To: <20220804105914.3707389-2-ricardo.canuelo@collabora.com>
On Thu, Aug 04 2022, Ricardo Cañuelo <ricardo.canuelo@collabora.com> wrote:
> Fix variable names in some htmldocs, naming in others.
> Add htmldocs for struct vring_desc and vring_interrupt.
Isn't that "kerneldoc"? But maybe I'm a bit behind on the current
terminology.
>
> Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
> ---
> drivers/virtio/virtio_ring.c | 8 ++++++++
> include/linux/virtio.h | 6 +++---
> include/linux/virtio_config.h | 6 +++---
> include/uapi/linux/virtio_ring.h | 16 +++++++++++-----
> 4 files changed, 25 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
> index a5ec724c01d8..e2091345c5c2 100644
> --- a/drivers/virtio/virtio_ring.c
> +++ b/drivers/virtio/virtio_ring.c
> @@ -2147,6 +2147,14 @@ static inline bool more_used(const struct vring_virtqueue *vq)
> return vq->packed_ring ? more_used_packed(vq) : more_used_split(vq);
> }
>
> +/**
> + * vring_interrupt - notify a virtqueue on an interrupt
> + * @irq: the IRQ number
This is being ignored, however. Append "(ignored)"?
(I think it is only there so that this function can be used as an
irq_handler_t.)
> + * @_vq: the struct virtqueue to notify
> + *
> + * Calls the callback function of @_vq to process the virtqueue
> + * notification.
> + */
> irqreturn_t vring_interrupt(int irq, void *_vq)
> {
> struct vring_virtqueue *vq = to_vvq(_vq);
(...)
> diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h
> index b47c2e7ed0ee..997801018ae4 100644
> --- a/include/linux/virtio_config.h
> +++ b/include/linux/virtio_config.h
> @@ -225,7 +225,7 @@ int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs,
>
> /**
> * virtio_synchronize_cbs - synchronize with virtqueue callbacks
> - * @vdev: the device
> + * @dev: the device
As you're touching this anyway: maybe s/device/virtio device/ ?
> */
> static inline
> void virtio_synchronize_cbs(struct virtio_device *dev)
> @@ -244,7 +244,7 @@ void virtio_synchronize_cbs(struct virtio_device *dev)
>
> /**
> * virtio_device_ready - enable vq use in probe function
> - * @vdev: the device
> + * @dev: the device
Same here.
> *
> * Driver must call this to use vqs in the probe function.
> *
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
next prev parent reply other threads:[~2022-08-08 12:14 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-04 10:59 [PATCH v2 0/2] docs: driver-api: virtio: virtio on Linux Ricardo Cañuelo
2022-08-04 10:59 ` Ricardo Cañuelo
2022-08-04 10:59 ` [PATCH v2 1/2] virtio: kerneldocs fixes and enhancements Ricardo Cañuelo
2022-08-04 10:59 ` Ricardo Cañuelo
2022-08-08 12:14 ` Cornelia Huck [this message]
2022-08-08 12:14 ` Cornelia Huck
2022-08-08 12:52 ` Ricardo Cañuelo
2022-08-08 12:52 ` Ricardo Cañuelo
2022-08-04 10:59 ` [PATCH v2 2/2] docs: driver-api: virtio: virtio on Linux Ricardo Cañuelo
2022-08-04 10:59 ` Ricardo Cañuelo
2022-08-06 7:58 ` Bagas Sanjaya
2022-08-08 9:06 ` Ricardo Cañuelo
2022-08-08 9:06 ` Ricardo Cañuelo
2022-08-08 12:31 ` Bagas Sanjaya
2022-08-08 13:47 ` Cornelia Huck
2022-08-08 13:47 ` Cornelia Huck
2022-08-09 13:05 ` Ricardo Cañuelo
2022-08-09 13:05 ` Ricardo Cañuelo
2022-08-09 14:28 ` Cornelia Huck
2022-08-09 14:28 ` Cornelia Huck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87edxrdjao.fsf@redhat.com \
--to=cohuck@redhat.com \
--cc=bagasdotme@gmail.com \
--cc=jasowang@redhat.com \
--cc=kernel@collabora.com \
--cc=linux-doc@vger.kernel.org \
--cc=mst@redhat.com \
--cc=ricardo.canuelo@collabora.com \
--cc=virtualization@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.