Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
media-device.c File Reference
#include <linux/types.h>
#include <linux/ioctl.h>
#include <linux/media.h>
#include <linux/export.h>
#include <media/media-device.h>
#include <media/media-devnode.h>
#include <media/media-entity.h>

Go to the source code of this file.

Functions

int __must_check media_device_register (struct media_device *mdev)
 
 EXPORT_SYMBOL_GPL (media_device_register)
 
void media_device_unregister (struct media_device *mdev)
 
 EXPORT_SYMBOL_GPL (media_device_unregister)
 
int __must_check media_device_register_entity (struct media_device *mdev, struct media_entity *entity)
 
 EXPORT_SYMBOL_GPL (media_device_register_entity)
 
void media_device_unregister_entity (struct media_entity *entity)
 
 EXPORT_SYMBOL_GPL (media_device_unregister_entity)
 

Function Documentation

EXPORT_SYMBOL_GPL ( media_device_register  )
EXPORT_SYMBOL_GPL ( media_device_unregister  )
EXPORT_SYMBOL_GPL ( media_device_register_entity  )
EXPORT_SYMBOL_GPL ( media_device_unregister_entity  )
int __must_check media_device_register ( struct media_device mdev)

media_device_register - register a media device : The media device

The caller is responsible for initializing the media device before registration. The following fields must be set:

  • dev must point to the parent device
  • model must be filled with the device model name

Definition at line 293 of file media-device.c.

int __must_check media_device_register_entity ( struct media_device mdev,
struct media_entity entity 
)

media_device_register_entity - Register an entity with a media device : The media device : The entity

Definition at line 346 of file media-device.c.

void media_device_unregister ( struct media_device mdev)

media_device_unregister - unregister a media device : The media device

Definition at line 328 of file media-device.c.

void media_device_unregister_entity ( struct media_entity entity)

media_device_unregister_entity - Unregister an entity : The entity

If the entity has never been registered this function will return immediately.

Definition at line 372 of file media-device.c.