Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 335456 | Differences between
and this patch

Collapse All | Expand All

(-)vmmon-only/linux/driver.c.orig (-8 lines)
Lines 168-177 Link Here
168
168
169
static int LinuxDriver_Ioctl(struct inode *inode, struct file *filp,
169
static int LinuxDriver_Ioctl(struct inode *inode, struct file *filp,
170
                           u_int iocmd, unsigned long ioarg);
170
                           u_int iocmd, unsigned long ioarg);
171
#if defined(HAVE_UNLOCKED_IOCTL) || defined(HAVE_COMPAT_IOCTL)
172
static long LinuxDriver_UnlockedIoctl(struct file *filp,
171
static long LinuxDriver_UnlockedIoctl(struct file *filp,
173
                           u_int iocmd, unsigned long ioarg);
172
                           u_int iocmd, unsigned long ioarg);
174
#endif
175
173
176
static int LinuxDriver_Close(struct inode *inode, struct file *filp);
174
static int LinuxDriver_Close(struct inode *inode, struct file *filp);
177
static unsigned int LinuxDriverPoll(struct file *file, poll_table *wait);
175
static unsigned int LinuxDriverPoll(struct file *file, poll_table *wait);
Lines 420-430 Link Here
420
   memset(&vmuser_fops, 0, sizeof vmuser_fops);
418
   memset(&vmuser_fops, 0, sizeof vmuser_fops);
421
   compat_fop_set_owner(&vmuser_fops);
419
   compat_fop_set_owner(&vmuser_fops);
422
   vmuser_fops.poll = LinuxDriverPoll;
420
   vmuser_fops.poll = LinuxDriverPoll;
423
#ifdef VMW_HAVE_UNLOCKED_IOCTL
424
   vmuser_fops.unlocked_ioctl = LinuxDriver_UnlockedIoctl;
421
   vmuser_fops.unlocked_ioctl = LinuxDriver_UnlockedIoctl;
425
#else
426
   vmuser_fops.ioctl = LinuxDriver_Ioctl;
427
#endif
428
#ifdef HAVE_COMPAT_IOCTL
422
#ifdef HAVE_COMPAT_IOCTL
429
   vmuser_fops.compat_ioctl = LinuxDriver_UnlockedIoctl;
423
   vmuser_fops.compat_ioctl = LinuxDriver_UnlockedIoctl;
430
#endif
424
#endif
Lines 2410-2416 Link Here
2410
}
2404
}
2411
2405
2412
2406
2413
#if defined(HAVE_UNLOCKED_IOCTL) || defined(HAVE_COMPAT_IOCTL)
2414
/*
2407
/*
2415
 *-----------------------------------------------------------------------------
2408
 *-----------------------------------------------------------------------------
2416
 *
2409
 *
Lines 2443-2449 Link Here
2443
   unlock_kernel();
2436
   unlock_kernel();
2444
   return err;
2437
   return err;
2445
}
2438
}
2446
#endif
2447
2439
2448
2440
2449
/*
2441
/*
(-)vmmon-only/linux/hostif.c.orig (-10 lines)
Lines 3407-3425 Link Here
3407
              u_int iocmd,
3407
              u_int iocmd,
3408
              unsigned long ioarg)
3408
              unsigned long ioarg)
3409
{
3409
{
3410
#ifdef HAVE_UNLOCKED_IOCTL
3411
   if (filp->f_op->unlocked_ioctl) {
3410
   if (filp->f_op->unlocked_ioctl) {
3412
      return filp->f_op->unlocked_ioctl(filp, iocmd, ioarg);
3411
      return filp->f_op->unlocked_ioctl(filp, iocmd, ioarg);
3413
   }
3412
   }
3414
#endif
3415
   if (filp->f_op->ioctl) {
3416
      long err;
3417
3418
      lock_kernel();
3419
      err = filp->f_op->ioctl(filp->f_dentry->d_inode, filp, iocmd, ioarg);
3420
      unlock_kernel();
3421
      return err;
3422
   }
3423
   return -ENOIOCTLCMD;
3413
   return -ENOIOCTLCMD;
3424
}
3414
}
3425
3415

Return to bug 335456