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 |
/* |