/* pmcraid_open -char node "open" entry, allowed only users with admin access  */
static int pmcraid_chr_open(struct inode *inode, struct file *filep)
/* pmcraid_open -char node "open" entry, allowed only users with admin access  */
static int pmcraid_chr_open(struct inode *inode, struct file *filep)
{
	struct pmcraid_instance *pinstance;
	if (!capable(CAP_SYS_ADMIN))
		return -EACCES;
	pinstance = container_of(inode->i_cdev, struct pmcraid_instance, cdev);
	filep->private_data = pinstance;
	return 0;
}