On Saturday 21 July 2007 05:36, Diego Woitasen wrote: > What 's the difference between ioctl, compat_ioctl and unlocked_ioctl in > struct block_device_operations? I think that te main diff between ioctl > and the others is that ioctl uses lock_kernel(), but what's the diff > between compat_ioctl and unlocked_ioctl? > Hi Diego, compat_ioctl is used when the userspace is running in 32bit mode and the kernel is running in 64bit mode. In that case, you need to convert the data passed from userspace before it can be used in kernel (and viceversa). More on this in this thread: http://mail.nl.linux.org/kernelnewbies/2007-05/msg00108.html Regards, tavi -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ