Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

static unsigned int mxc_v4l2out_poll ( struct file *  file,
poll_table *  wait 
) [static]

V4L2 interface - poll function

Parameters:
file structure file *
wait structure poll_table *
Returns:
status POLLIN | POLLRDNORM

Definition at line 1272 of file mx27_v4l2_output.c.

{
      struct video_device *dev = file->private_data;
      vout_data *vout = video_get_drvdata(dev);

      wait_queue_head_t *queue = NULL;
      int res = POLLIN | POLLRDNORM;

      if (down_interruptible(&vout->busy_lock))
            return -EINTR;

      queue = &vout->v4l_bufq;
      poll_wait(file, queue, wait);

      up(&vout->busy_lock);
      return res;
}


Generated by  Doxygen 1.6.0   Back to index