/* Poll : called when someone do a select on /dev/irnet  */
static unsigned int dev_irnet_poll(struct file *file, poll_table *wait)
/* Poll : called when someone do a select on /dev/irnet  */
static unsigned int dev_irnet_poll(struct file *file, poll_table *wait)
{
  irnet_socket *	ap = (struct irnet_socket *) file->private_data;
  unsigned int		mask;
  DENTER(FS_TRACE, "(file=0x%p, ap=0x%p)\n",
	 file, ap);
  mask = POLLOUT | POLLWRNORM;
  DABORT(ap == NULL, mask, FS_ERROR, "ap is NULL !!!\n");
  if(!ap->ppp_open)
    mask |= irnet_ctrl_poll(ap, file, wait);
  DEXIT(FS_TRACE, " - mask=0x%X\n", mask);
  return(mask);
}