data transfer limit using ioctl()?
Hi,
How much maximum data transfer should be done using ioctl() to driver?
I can also use the Netlink sockets to transfer data from user to kernel.
Is there any limit that we should consider for choosing ioctl() to driver or using netlink sockets?
Regards,
Parav Pandit
---------------------------------
Need a quick answer? Get one in minutes from people who know. Ask your question on Yahoo! Answers.
Quoted 1 line · Parav Pandit
=A0 How much maximum data transfer should be done using
ioctl()to driver?
No, there is no technical limit. Usually, it's considered good style to transfer only a basic data type with fixed length though, like uint32_t or loff_t, not a long buffer. You should also make sure you have a fixed length buffer, and that it's the same size on 32 and 64 bit kernels.
=46or long non-structured transfers, use read/write operations if possible.
Quoted 1 line
=A0 I can also use the Netlink sockets to transfer data from user to kern=
el.
Quoted 1 line
=A0 Is there any limit that we should consider for choosing
ioctl()to dr=
iver or using netlink sockets?
Quoted 1 line
=A0 =A0
No, that decision does not depend on the data size mostly, but more on what you want to do.
Arnd <><