[vbox-dev] Modifications for kernel 2.6.36
Larry Finger
Larry.Finger at lwfinger.net
Sun Aug 15 10:00:42 PDT 2010
In kernel 2.6.36, the BKL (big kernel lock) is removed for file ioctl
operations. This change affects vboxnetadp. To fix it, the following patch,
which is issued under the GPL V2, is needed:
Signed-off-by: Larry Finger <Larry.Finger at lwfinger.net>
Index: src/vboxnetadp/linux/VBoxNetAdp-linux.c
===================================================================
--- src.orig/vboxnetadp/linux/VBoxNetAdp-linux.c
+++ src/vboxnetadp/linux/VBoxNetAdp-linux.c
@@ -83,7 +83,9 @@ static struct file_operations gFileOpsVB
owner: THIS_MODULE,
open: VBoxNetAdpLinuxOpen,
release: VBoxNetAdpLinuxClose,
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
ioctl: VBoxNetAdpLinuxIOCtl,
+#endif
};
/** The miscdevice structure. */
@@ -246,6 +248,7 @@ static int VBoxNetAdpLinuxClose(struct i
* @param uCmd The function specified to ioctl().
* @param ulArg The argument specified to ioctl().
*/
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
static int VBoxNetAdpLinuxIOCtl(struct inode *pInode, struct file *pFilp,
unsigned int uCmd, unsigned long ulArg)
{
VBOXNETADPREQ Req;
@@ -315,6 +318,7 @@ static int VBoxNetAdpLinuxIOCtl(struct i
return 0;
}
+#endif
int vboxNetAdpOsInit(PVBOXNETADP pThis)
{
---
More information about the vbox-dev
mailing list