FreeBSD/sys/dev/drm/drm_dma.c
/* Call into the driver-specific DMA handler */
Call into the driver-specific DMA handler
Call into the driver - specific DMA handler
int drm_dma(struct drm_device *dev, void *data, struct drm_file *file_priv)
{
	if (dev->driver->dma_ioctl) {
		return -dev->driver->dma_ioctl(dev, data, file_priv);
	} else {
		DRM_DEBUG("DMA ioctl on driver with no dma handler\n");
		return EINVAL;
	}
}
int drm_dma ( struct drm_device * dev , void * data , struct drm_file * file_priv ) { if ( dev -> driver -> dma_ioctl ) { return - dev -> driver -> dma_ioctl ( dev , data , file_priv ) ; } else { DRM_DEBUG ( " \n " ) ; return EINVAL ; } }
Call into the driver-specific DMA handler
Call into the driver - specific DMA handler
/* shared code returns -errno */