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

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

Post Filter driver poll function. This function implements the Linux file_operations.poll() API function.

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

Definition at line 904 of file mxc_pf.c.

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

      if (down_interruptible(&pf_data.busy_lock))
            return -EINTR;

      queue = &pf_data.pf_wait;
      poll_wait(file, queue, wait);

      up(&pf_data.busy_lock);

      return res;
}


Generated by  Doxygen 1.6.0   Back to index