All of lore.kernel.org
 help / color / mirror / Atom feed
* data transfer limit using ioctl()?
@ 2006-12-13  9:24 Parav Pandit
  2006-12-13 17:09 ` Arnd Bergmann
  0 siblings, 1 reply; 2+ messages in thread
From: Parav Pandit @ 2006-12-13  9:24 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 439 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 712 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: data transfer limit using ioctl()?
  2006-12-13  9:24 data transfer limit using ioctl()? Parav Pandit
@ 2006-12-13 17:09 ` Arnd Bergmann
  0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2006-12-13 17:09 UTC (permalink / raw)
  To: linuxppc-embedded

On Wednesday 13 December 2006 10:24, Parav Pandit wrote:
> =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.

> =A0 I can also use the Netlink sockets to transfer data from user to kern=
el.
> =A0 Is there any limit that we should consider for choosing ioctl() to dr=
iver or using netlink sockets?
> =A0 =A0
No, that decision does not depend on the data size mostly, but more on
what you want to do.

	Arnd <><

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-13 17:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-13  9:24 data transfer limit using ioctl()? Parav Pandit
2006-12-13 17:09 ` Arnd Bergmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.