Probably it's better to create a different struct:struct udata_s { unsigned int size; void __user *buf;};regards,dan carpenter