Changeset 31697 in vbox for trunk/src/VBox/HostDrivers/VBoxNetAdp/linux
- Timestamp:
- Aug 16, 2010 2:56:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/VBoxNetAdp-linux.c
r31556 r31697 61 61 static int VBoxNetAdpLinuxOpen(struct inode *pInode, struct file *pFilp); 62 62 static int VBoxNetAdpLinuxClose(struct inode *pInode, struct file *pFilp); 63 static int VBoxNetAdpLinuxIOCtl(struct inode *pInode, struct file *pFilp, unsigned int uCmd, unsigned long ulArg); 63 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36) 64 static int VBoxNetAdpLinuxIOCtl(struct inode *pInode, struct file *pFilp, 65 unsigned int uCmd, unsigned long ulArg); 66 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36) */ 67 static long VBoxNetAdpLinuxIOCtlUnlocked(struct file *pFilp, unsigned int uCmd, 68 unsigned long ulArg); 69 #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36) */ 64 70 65 71 /******************************************************************************* … … 84 90 open: VBoxNetAdpLinuxOpen, 85 91 release: VBoxNetAdpLinuxClose, 92 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36) 86 93 ioctl: VBoxNetAdpLinuxIOCtl, 94 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36) */ 95 unlocked_ioctl: VBoxNetAdpLinuxIOCtlUnlocked, 96 #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36) */ 87 97 }; 88 98 … … 256 266 * @param ulArg The argument specified to ioctl(). 257 267 */ 258 static int VBoxNetAdpLinuxIOCtl(struct inode *pInode, struct file *pFilp, unsigned int uCmd, unsigned long ulArg) 268 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36) 269 static int VBoxNetAdpLinuxIOCtl(struct inode *pInode, struct file *pFilp, 270 unsigned int uCmd, unsigned long ulArg) 271 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36) */ 272 static long VBoxNetAdpLinuxIOCtlUnlocked(struct file *pFilp, unsigned int uCmd, 273 unsigned long ulArg) 274 #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36) */ 259 275 { 260 276 VBOXNETADPREQ Req;
Note:
See TracChangeset
for help on using the changeset viewer.