Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | media_file_operations |
struct | media_devnode |
Macros | |
#define | MEDIA_FLAG_REGISTERED 0 |
#define | to_media_devnode(cd) container_of(cd, struct media_devnode, dev) |
Functions | |
int __must_check | media_devnode_register (struct media_devnode *mdev) |
void | media_devnode_unregister (struct media_devnode *mdev) |
#define MEDIA_FLAG_REGISTERED 0 |
Definition at line 41 of file media-devnode.h.
#define to_media_devnode | ( | cd | ) | container_of(cd, struct media_devnode, dev) |
Definition at line 82 of file media-devnode.h.
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.