media_devnode_register — register a media device node
int media_devnode_register ( | struct media_device * mdev, |
struct media_devnode * devnode, | |
struct module * owner) ; |
mdev
struct media_device we want to register a device node
devnode
media device node structure we want to register
owner
should be filled with THIS_MODULE
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.