kernels/linux-2.4.0/drivers/media/video/videodev.c
/*
 *	Read will do some smarts later on. Buffer pin etc.
 */
Read will do some smarts later on. Buffer pin etc.
Read will do some smarts later on . Buffer pin etc .
static ssize_t video_read(struct file *file,
	char *buf, size_t count, loff_t *ppos)
{
	struct video_device *vfl=video_device[MINOR(file->f_dentry->d_inode->i_rdev)];
	if(vfl->read)
		return vfl->read(vfl, buf, count, file->f_flags&O_NONBLOCK);
	else
		return -EINVAL;
}
static ssize_t video_read ( struct file * file , char * buf , size_t count , loff_t * ppos ) { struct video_device * vfl = video_device [ MINOR ( file -> f_dentry -> d_inode -> i_rdev ) ] ; if ( vfl -> read ) return vfl -> read ( vfl , buf , count , file -> f_flags & O_NONBLOCK ) ; else return - EINVAL ; }
Read will do some smarts later on.
Read will do some smarts later on .