if (iminor(filp->f_dentry->d_inode) == PLX_MNGMT_INTERFACE)
{
// Management interface node only supports some IOCTLS
pdx = NULL;
}
// Check for messages that require D0 power state
if (pdx->PowerState > MIN_WORKING_POWER_STATE)
PLX_RET_IOCTL
Dispatch_IoControl(
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36))
struct inode *inode,
#endif
struct file *filp,
unsigned int cmd,
unsigned long args
)
{
int status;
VOID *pOwner;
PLX_PARAMS IoBuffer;
PLX_PARAMS *pIoBuffer;
DEVICE_EXTENSION *pdx;
DebugPrintf_Cont(("\n"));
// Get the device extension
if (iminor(filp->f_dentry->d_inode) == PLX_MNGMT_INTERFACE)
{
// Management interface node only supports some IOCTLS
pdx = NULL;
}
else
{
pdx = ((DEVICE_OBJECT*)(filp->private_data))->DeviceExtension;
}