gen-errors.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <title>Generic Error Codes</title>
  2. <table frame="none" pgwide="1" id="gen-errors">
  3. <title>Generic error codes</title>
  4. <tgroup cols="2">
  5. &cs-str;
  6. <tbody valign="top">
  7. <!-- Keep it ordered alphabetically -->
  8. <row>
  9. <entry>EBADF</entry>
  10. <entry><parameter>fd</parameter> is not a valid open file descriptor.</entry>
  11. </row>
  12. <row>
  13. <entry>EBUSY</entry>
  14. <entry>The ioctl can't be handled because the device is busy. This is
  15. typically return while device is streaming, and an ioctl tried to
  16. change something that would affect the stream, or would require the
  17. usage of a hardware resource that was already allocated. The ioctl
  18. must not be retried without performing another action to fix the
  19. problem first (typically: stop the stream before retrying).</entry>
  20. </row>
  21. <row>
  22. <entry>EFAULT</entry>
  23. <entry><parameter>fd</parameter> is not a valid open file descriptor.</entry>
  24. </row>
  25. <row>
  26. <entry>EINVAL</entry>
  27. <entry>One or more of the ioctl parameters are invalid. This is a widely
  28. used error code. See the individual ioctl requests for actual causes.</entry>
  29. </row>
  30. <row>
  31. <entry>EINVAL or ENOTTY</entry>
  32. <entry>The ioctl is not supported by the driver, actually meaning that
  33. the required functionality is not available.</entry>
  34. </row>
  35. <row>
  36. <entry>ENOMEM</entry>
  37. <entry>There's not enough memory to handle the desired operation.</entry>
  38. </row>
  39. <row>
  40. <entry>ENOSPC</entry>
  41. <entry>On USB devices, the stream ioctl's can return this error, meaning
  42. that this request would overcommit the usb bandwidth reserved
  43. for periodic transfers (up to 80% of the USB bandwidth).</entry>
  44. </row>
  45. </tbody>
  46. </tgroup>
  47. </table>