On 31/07/07, Ravid Baruch Naali <[EMAIL PROTECTED]> wrote: > > I agree with that method I only suggested (and I think that's what Gilad > has recomended) that you hide it using a user space library which will grub > the ioctl function. > In other word you will call ioctl(fakedfd, data_struct) > when the fakefd is the one not open for that special device and the > structure will contain the exact operation parameters. > Your user space library will then convert the ioctl parameters > accordingly and will now call the ioctl with the device file descriptor > which it already opened (and maybe even loaded), and in the extra parameters > the fakefd will be passed. > > Just an idea but if you need more details don't hesitate to ask. >
Thanks for the idea. I don't see the point of hiding things behind a new ioctl libc interface - I'll just invent a new library call which will be implemented using ioctl for now and if/when my code gets into the kernel as a new system call then this library call will get implemented using that. Cheers, --Amos