diff options
| author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2026-10-13 20:15:09 +0900 |
|---|---|---|
| committer | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2026-10-13 20:15:09 +0900 |
| commit | 82d59eb7f5431771cfc6fb074b74f466cd4e3353 (patch) | |
| tree | 16e471f919996ae5fcb9e464d37ebb307fe13a8d /include | |
| parent | 460613c05a118009518bd5fc210b24a010290c3b (diff) | |
| download | linux-next-82d59eb7f5431771cfc6fb074b74f466cd4e3353.tar.gz linux-next-82d59eb7f5431771cfc6fb074b74f466cd4e3353.zip | |
firewire: core: add kerneldoc for inbound transaction-related symbols
The core provides helper functions and structures for handling
transaction requests to local address regions.
Add kerneldoc comments for these symbols.
Link: https://lore.kernel.org/r/20261013111509.612518-3-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/firewire.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/include/linux/firewire.h b/include/linux/firewire.h index f1cb7569eaa0..9c563fbdbbf0 100644 --- a/include/linux/firewire.h +++ b/include/linux/firewire.h @@ -348,7 +348,7 @@ union fw_transaction_callback { }; /** - * typedef fw_address_callback_t - Function to handle the request of the asynchronous transaction. + * typedef fw_address_callback_t - Function to handle the request of the incoming transaction. * @card: the card instance which receives the request * @request: the request instance. * @tcode: the transaction code @@ -362,8 +362,9 @@ union fw_transaction_callback { * * This callback handles an inbound request subaction. * - * The callback is responsible that fw_send_response() is called on the @request, except for FCP - * registers for which the core takes care of that. + * The contents of @request are opaque to the callback. The callback is responsible for calling + * fw_send_response() for @request, except for FCP registers, for which the core handles the + * response. * * Context: Process context. */ @@ -434,18 +435,37 @@ struct fw_transaction { u32 response_timestamp; }; +/** + * struct fw_address_handler - A handler for incoming transaction requests to a registered address + * region. + * @offset: The registered offset, available after successful registration. + * @length: The length of the address region in bytes, a multiple of a quadlet. + * @address_callback: Callback invoked when a transaction request is received for the registered + * address region. + * @callback_data: Data passed to @address_callback. + * + * This structure represents a handler registered to receive incoming asynchronous requests to a + * specific region of the address space on the local node. + */ struct fw_address_handler { u64 offset; u64 length; fw_address_callback_t address_callback; void *callback_data; - // Only for core functions. + /* private: */ struct list_head link; struct kref kref; struct completion done; }; +/** + * struct fw_address_region - An address range. + * @start: The starting offset in bytes, a multiple of a quadlet. + * @end: The ending offset in bytes, a multiple of a quadlet. + * + * Represents a range of addresses in the local node's address space. + */ struct fw_address_region { u64 start; u64 end; |
