write on a char device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux