ioctl MEDIA_IOC_DEVICE_INFO
&manvol;
MEDIA_IOC_DEVICE_INFO
Query device information
int ioctl
int fd
int request
struct media_device_info *argp
Arguments
fd
&fd;
request
MEDIA_IOC_DEVICE_INFO
argp
Description
All media devices must support the MEDIA_IOC_DEVICE_INFO
ioctl. To query device information, applications call the ioctl with a
pointer to a &media-device-info;. The driver fills the structure and returns
the information to the application.
The ioctl never fails.
The serial and bus_info
fields can be used to distinguish between multiple instances of otherwise
identical hardware. The serial number takes precedence when provided and can
be assumed to be unique. If the serial number is an empty string, the
bus_info field can be used instead. The
bus_info field is guaranteed to be unique, but
can vary across reboots or device unplug/replug.
Return value
This function doesn't return specific error codes.