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

#include <firewire-cdev.h>

Data Fields

struct fw_cdev_event_common common
 
struct fw_cdev_event_bus_reset bus_reset
 
struct fw_cdev_event_response response
 
struct fw_cdev_event_request request
 
struct fw_cdev_event_request2 request2
 
struct fw_cdev_event_iso_interrupt iso_interrupt
 
struct
fw_cdev_event_iso_interrupt_mc 
iso_interrupt_mc
 
struct fw_cdev_event_iso_resource iso_resource
 
struct fw_cdev_event_phy_packet phy_packet
 

Detailed Description

union fw_cdev_event - Convenience union of fw_cdev_event_ types : Valid for all types : Valid if .type == FW_CDEV_EVENT_BUS_RESET : Valid if .type == FW_CDEV_EVENT_RESPONSE : Valid if .type == FW_CDEV_EVENT_REQUEST : Valid if .type == FW_CDEV_EVENT_REQUEST2 : Valid if .type == FW_CDEV_EVENT_ISO_INTERRUPT : Valid if .type == FW_CDEV_EVENT_ISO_INTERRUPT_MULTICHANNEL : Valid if .type == FW_CDEV_EVENT_ISO_RESOURCE_ALLOCATED or FW_CDEV_EVENT_ISO_RESOURCE_DEALLOCATED : Valid if .type == FW_CDEV_EVENT_PHY_PACKET_SENT or FW_CDEV_EVENT_PHY_PACKET_RECEIVED

Convenience union for userspace use. Events could be read(2) into an appropriately aligned char buffer and then cast to this union for further processing. Note that for a request, response or iso_interrupt event, the data[] or header[] may make the size of the full event larger than sizeof(union fw_cdev_event). Also note that if you attempt to read(2) an event into a buffer that is not large enough for it, the data that does not fit will be discarded so that the next read(2) will return a new event.

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

Field Documentation

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

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

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

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

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

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

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

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

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


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