Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
fw_cdev_event_iso_interrupt_mc Struct Reference

#include <firewire-cdev.h>

Data Fields

__u64 closure
 
__u32 type
 
__u32 completed
 

Detailed Description

struct fw_cdev_event_iso_interrupt_mc - An iso buffer chunk was completed : See set by FW_CDEV_CREATE_ISO_CONTEXT ioctl : FW_CDEV_EVENT_ISO_INTERRUPT_MULTICHANNEL : Offset into the receive buffer; data before this offset is valid

This event is sent in multichannel contexts (context type FW_CDEV_ISO_CONTEXT_RECEIVE_MULTICHANNEL) for &fw_cdev_iso_packet buffer chunks that have been completely filled and that have the FW_CDEV_ISO_INTERRUPT bit set, or when explicitly requested with FW_CDEV_IOC_FLUSH_ISO.

The buffer is continuously filled with the following data, per packet:

Hence the per-packet size is data_length (rounded up to a multiple of 4) + 8. When processing the data, stop before a packet that would cross the offset.

A packet near the end of a buffer chunk will typically spill over into the next queued buffer chunk. It is the responsibility of the client to check for this condition, assemble a broken-up packet from its parts, and not to re-queue any buffer chunks in which as yet unread packet parts reside.

Definition at line 296 of file firewire-cdev.h.

Field Documentation

__u64 closure

Definition at line 297 of file firewire-cdev.h.

__u32 completed

Definition at line 299 of file firewire-cdev.h.

Definition at line 298 of file firewire-cdev.h.


The documentation for this struct was generated from the following file: