/* The following function is implemented, although very few audio discs give Universal Product Code information, which should just be the Medium Catalog Number on the box. Note, that the way the code is written on the CD is /not/ uniform across all discs!  */
static int cdrom_ioctl_get_mcn(struct cdrom_device_info *cdi, void __user *argp)
/* The following function is implemented, although very few audio discs give Universal Product Code information, which should just be the Medium Catalog Number on the box. Note, that the way the code is written on the CD is /not/ uniform across all discs!  */
static int cdrom_ioctl_get_mcn(struct cdrom_device_info *cdi, void __user *argp)
{
	struct cdrom_mcn mcn;
	int ret;
	cdinfo(CD_DO_IOCTL, "entering CDROM_GET_MCN\n");
	if (!(cdi->ops->capability & CDC_MCN))
		return -ENOSYS;
	ret = cdi->ops->get_mcn(cdi, &mcn);
	if (ret)
		return ret;
	if (copy_to_user(argp, &mcn, sizeof(mcn)))
		return -EFAULT;
	cdinfo(CD_DO_IOCTL, "CDROM_GET_MCN successful\n");
	return 0;
}