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

#include <media-device.h>

Data Fields

struct devicedev
 
struct media_devnode devnode
 
char model [32]
 
char serial [40]
 
char bus_info [32]
 
u32 hw_revision
 
u32 driver_version
 
u32 entity_id
 
struct list_head entities
 
spinlock_t lock
 
struct mutex graph_mutex
 
int(* link_notify )(struct media_pad *source, struct media_pad *sink, u32 flags)
 

Detailed Description

struct media_device - Media device : Parent device : Media device node : Device model name : Device serial number (optional) : Unique and stable device location identifier : Hardware device revision : Device driver version : ID of the next entity to be registered : List of registered entities : Entities list lock : Entities graph operation lock

This structure represents an abstract high-level media device. It allows easy access to entities and provides basic media device-level support. The structure can be allocated directly or embedded in a larger structure.

The parent is a physical device. It must be set before registering the media device.

is a descriptive model name exported through sysfs. It doesn't have to be unique.

Definition at line 59 of file media-device.h.

Field Documentation

Definition at line 66 of file media-device.h.

struct device* dev

Definition at line 61 of file media-device.h.

Definition at line 62 of file media-device.h.

u32 driver_version

Definition at line 68 of file media-device.h.

struct list_head entities

Definition at line 71 of file media-device.h.

u32 entity_id

Definition at line 70 of file media-device.h.

struct mutex graph_mutex

Definition at line 76 of file media-device.h.

u32 hw_revision

Definition at line 67 of file media-device.h.

Definition at line 78 of file media-device.h.

spinlock_t lock

Definition at line 74 of file media-device.h.

char model[32]

Definition at line 64 of file media-device.h.

char serial[40]

Definition at line 65 of file media-device.h.


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