Probably it's better to create a different struct: struct udata_s { unsigned int size; void __user *buf; }; regards, dan carpenter _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel