/* This function adds the calling process to a driver global queue. When an event occurs, SIGIO will be sent to all processes in this queue.  */
static int pmcraid_chr_fasync(int fd, struct file *filep, int mode)
/* This function adds the calling process to a driver global queue. When an event occurs, SIGIO will be sent to all processes in this queue.  */
static int pmcraid_chr_fasync(int fd, struct file *filep, int mode)
{
	struct pmcraid_instance *pinstance;
	int rc;
	pinstance = (struct pmcraid_instance *)filep->private_data;
	mutex_lock(&pinstance->aen_queue_lock);
	rc = fasync_helper(fd, filep, mode, &pinstance->aen_queue);
	mutex_unlock(&pinstance->aen_queue_lock);
	return rc;
}