I have an ioctl question. My user app wants to write to a memory location nad ahve the kernel driver for this. I need to pass the memory location which is 4 bytes. #define MEM_WRITE _IOW(DRIVER,2,unsigned char *) unsigned char cal[3] = {0x00,0x00,0x00,0xea}; I used ioctl(fd,MEM_WRITE,val); Inside my driver ioctl code I'm getting the size of val as 2 instead of 4. Am I doing soemthing wrong? Thanks in advance __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/