]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
firewire: core: fulfill documentation of fw_iso_context_flush_completions()
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 8 Sep 2024 04:05:49 +0000 (13:05 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 8 Sep 2024 04:05:49 +0000 (13:05 +0900)
The fw_iso_context_flush_completions() is the counterpart of
fw_iso_context_schedule_work() to process isochronous context in current
process context.

This commit fulfills its documentation.

Link: https://lore.kernel.org/r/20240908040549.75304-3-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/core-iso.c

index a249974a0f874a4f285fa750cdf43f117cc185bd..f2394f3ed194cd52089bf5a94e3cd48ce675b369 100644 (file)
@@ -209,6 +209,17 @@ void fw_iso_context_queue_flush(struct fw_iso_context *ctx)
 }
 EXPORT_SYMBOL(fw_iso_context_queue_flush);
 
+/**
+ * fw_iso_context_flush_completions() - process isochronous context in current process context.
+ * @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.
+ *
+ * Context: Process context. May sleep due to disable_work_sync().
+ */
 int fw_iso_context_flush_completions(struct fw_iso_context *ctx)
 {
        int err;