Subject: Re: sending a struct of size more than 0x1fff to ioctl()
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 12/11/1998 14:22:37
In article <3670F30A.3A05F46A@sharada.ncore.soft.net> esha@sharada.ncore.soft.net (Eshanye) writes:
>Hi,
>
>I'm using syscall ioctl() to download parameters to EPLD. So as a ' in'
>parameter i'm sending a structure which contains the EPLD file along
>with some other information. The size of the structure is 65560
>(0x10018). But  the cmd of  ioctl() has only at most 13 bits to encode
>the size of the parameter. So i'm not able to send the structure without
>which my card wont work at all. How do you solve this problem ?
>

Either use more than one ioctl calls to pass in the data (ugly), or write
a device driver that you open read/write close to write the data to the
card (more work).

christos