Skip to content

Commit e5f1291

Browse files
committed
firewire: core: add fw_iso_context_create() variant with header storage size
This commit adds a new variant of fw_iso_context_create() that allows specifying the size of the isochronous context header storage at allocation time. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Sakamoto <[email protected]>
1 parent 9bf71ac commit e5f1291

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

include/linux/firewire.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,16 @@ static inline struct fw_iso_context *fw_iso_context_create(struct fw_card *card,
584584
callback_data);
585585
}
586586

587+
static inline struct fw_iso_context *fw_iso_context_create_with_header_storage_size(
588+
struct fw_card *card, int type, int channel, int speed, size_t header_size,
589+
size_t header_storage_size, fw_iso_callback_t callback, void *callback_data)
590+
{
591+
union fw_iso_callback cb = { .sc = callback };
592+
593+
return __fw_iso_context_create(card, type, channel, speed, header_size, header_storage_size,
594+
cb, callback_data);
595+
}
596+
587597
/**
588598
* fw_iso_context_schedule_flush_completions() - schedule work item to process isochronous context.
589599
* @ctx: the isochronous context

0 commit comments

Comments
 (0)