Linux Kernel
3.7.1
|
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/kmod.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/uaccess.h>
#include <media/media-devnode.h>
Go to the source code of this file.
Macros | |
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
#define | MEDIA_NUM_DEVICES 256 |
#define | MEDIA_NAME "media" |
Functions | |
int __must_check | media_devnode_register (struct media_devnode *mdev) |
void | media_devnode_unregister (struct media_devnode *mdev) |
subsys_initcall (media_devnode_init) | |
#define MEDIA_NAME "media" |
Definition at line 49 of file media-devnode.c.
#define MEDIA_NUM_DEVICES 256 |
Definition at line 48 of file media-devnode.c.
Definition at line 33 of file media-devnode.c.
int __must_check media_devnode_register | ( | struct media_devnode * | mdev | ) |
media_devnode_register - register a media device node : media device node structure we want to register
The registration code assigns minor numbers and registers the new device node with the kernel. An error is returned if no free minor number can be found, or if the registration of the device node fails.
Zero is returned on success.
Note that if the media_devnode_register call fails, the release() callback of the media_devnode structure is not called, so the caller is responsible for freeing any data.
Definition at line 210 of file media-devnode.c.
void media_devnode_unregister | ( | struct media_devnode * | mdev | ) |
media_devnode_unregister - unregister a media device node : the device node to unregister
This unregisters the passed device. Future open calls will be met with errors.
This function can safely be called if the device node has never been registered or has already been unregistered.
Definition at line 273 of file media-devnode.c.
subsys_initcall | ( | media_devnode_init | ) |