debugfs-cec-error-inj 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. What: /sys/kernel/debug/cec/*/error-inj
  2. Date: March 2018
  3. Contact: Hans Verkuil <hverkuil-cisco@xs4all.nl>
  4. Description:
  5. The CEC Framework allows for CEC error injection commands through
  6. debugfs. Drivers that support this will create an error-inj file
  7. through which the error injection commands can be given.
  8. The basic syntax is as follows:
  9. Leading spaces/tabs are ignored. If the next character is a '#' or the
  10. end of the line was reached, then the whole line is ignored. Otherwise
  11. a command is expected.
  12. It is up to the driver to decide what commands to implement. The only
  13. exception is that the command 'clear' without any arguments must be
  14. implemented and that it will remove all current error injection
  15. commands.
  16. This ensures that you can always do 'echo clear >error-inj' to clear any
  17. error injections without having to know the details of the driver-specific
  18. commands.
  19. Note that the output of 'error-inj' shall be valid as input to 'error-inj'.
  20. So this must work::
  21. $ cat error-inj >einj.txt
  22. $ cat einj.txt >error-inj
  23. Other than these basic rules described above this ABI is not considered
  24. stable and may change in the future.
  25. Drivers that implement this functionality must document the commands as
  26. part of the CEC documentation and must keep that documentation up to date
  27. when changes are made.
  28. The following CEC error injection implementations exist:
  29. - Documentation/userspace-api/media/cec/cec-pin-error-inj.rst