Hi, The write system call can return a number of error codes to the application that calls it. EBADF, EINVAL, EFAULT, EFBIG ..etc as stated in man write. Does a driver write method for a char device, have to return all these return codes, or the kernel manages some of them itself, like EBADF--"fd is not a valid file descriptor or is not open for writing". The drivers I see generally return only a small subset of these error codes. thanks Amit -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/