kernels/linux-2.4.0/drivers/media/video/videodev.c
/*
 *	Last close of a video for Linux device
 */
Last close of a video for Linux device
Last close of a video for Linux device
static int video_release(struct inode *inode, struct file *file)
{
	struct video_device *vfl;
	lock_kernel();
	vfl=video_device[MINOR(inode->i_rdev)];
	if(vfl->close)
		vfl->close(vfl);
	vfl->busy=0;
	unlock_kernel();
	return 0;
}
static int video_release ( struct inode * inode , struct file * file ) { struct video_device * vfl ; lock_kernel ( ) ; vfl = video_device [ MINOR ( inode -> i_rdev ) ] ; if ( vfl -> close ) vfl -> close ( vfl ) ; vfl -> busy = 0 ; unlock_kernel ( ) ; return 0 ; }
Last close of a video for Linux device
Last close of a video for Linux device