]> Git Repo - linux.git/commitdiff
firewire: core: update documentation of kernel APIs for flushing completions
authorTakashi Sakamoto <[email protected]>
Thu, 12 Sep 2024 13:30:37 +0000 (22:30 +0900)
committerTakashi Sakamoto <[email protected]>
Thu, 12 Sep 2024 13:30:37 +0000 (22:30 +0900)
There is a slight difference between fw_iso_context_flush_completions() and
fw_iso_context_schedule_flush_completions().

This commit updates the documentations for them.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Sakamoto <[email protected]>
drivers/firewire/core-iso.c
include/linux/firewire.h

index f2394f3ed194cd52089bf5a94e3cd48ce675b369..a67493862c856455e24dace87a0abf8b9a90ff28 100644 (file)
@@ -214,9 +214,12 @@ EXPORT_SYMBOL(fw_iso_context_queue_flush);
  * @ctx: the isochronous context
  *
  * Process the isochronous context in the current process context. The registered callback function
- * is called if some packets have been already transferred since the last time. If it is required
- * to process the context asynchronously, fw_iso_context_schedule_flush_completions() is available
- * instead.
+ * is called when a queued packet buffer with the interrupt flag is completed, either after
+ * transmission in the IT context or after being filled in the IR context. Additionally, the
+ * callback function is also called for the packet buffer completed at last. Furthermore, the
+ * callback function is called as well when the header buffer in the context becomes full. If it is
+ * required to process the context asynchronously, fw_iso_context_schedule_flush_completions() is
+ * available instead.
  *
  * Context: Process context. May sleep due to disable_work_sync().
  */
index f815d12deda0315ff045f1bc58d6ef24f3bad587..b632eec3ab5263c6da62dfe63d0f0bc263a94893 100644 (file)
@@ -537,9 +537,11 @@ int fw_iso_context_flush_completions(struct fw_iso_context *ctx);
  * @ctx: the isochronous context
  *
  * Schedule a work item on workqueue to process the isochronous context. The registered callback
- * function is called in the worker if some packets have been already transferred since the last
- * time. If it is required to process the context in the current context,
- * fw_iso_context_flush_completions() is available instead.
+ * function is called by the worker when a queued packet buffer with the interrupt flag is
+ * completed, either after transmission in the IT context or after being filled in the IR context.
+ * The callback function is also called when the header buffer in the context becomes full, If it
+ * is required to process the context in the current context, fw_iso_context_flush_completions() is
+ * available instead.
  *
  * Context: Any context.
  */
This page took 0.066253 seconds and 4 git commands to generate.