Name

struct media_devnode — Media device node

Synopsis

struct media_devnode {
  struct media_device * media_dev;
  const struct media_file_operations * fops;
  struct device dev;
  struct cdev cdev;
  struct device * parent;
  int minor;
  unsigned long flags;
  void (* release) (struct media_devnode *devnode);
};  

Members

media_dev

pointer to struct media_device

fops

pointer to struct media_file_operations with media device ops

dev

pointer to struct device containing the media controller device

cdev

struct cdev pointer character device

parent

parent device

minor

device node minor number

flags

flags, combination of the MEDIA_FLAG_* constants

release

release callback called at the end of media_devnode_release

Description

This structure represents a media-related device node.

The parent is a physical device. It must be set by core or device drivers before registering the node.