This is about current file source/include/media/lirc.h. This file really describes a public interface. Specifically, when coding lirc user-space drivers the definitions here are necessary to code/encode the data to/from the kernel. Mostly, this applies to the /dev/lircX devices. Thus this file ought to be moved to the kernel-headers package (sorry, I'm a kernel rookie, no details...)
Yes - some of this does appear to belong in include/uapi
Hm... I guess since lirc is the only user of this interface right now we need to do something to get this rolling (?). Attaching a patch. This moves the complete lirc.h to uapi.
Created attachment 160631 [details] Move lirc.h to uapi/ Please be gentle, I'm a kernel rookie.
Created attachment 160641 [details] device manpage sketch, shows header symbol usage.
Created attachment 160651 [details] ioctl manpage sketch, shows symbol usage.
Created attachment 160661 [details] Move internal lirc.h to public uapi/ (second try).
There is also some kernel docs referring to these symbols at https://www.kernel.org/doc/htmldocs/media_api/lirc_dev.htm
Patch is tracked in https://patchwork.linuxtv.org/patch/31865/
Merged in kernel since long: https://github.com/torvalds/linux/commit/b7be755733dc44c72956c91876e5d86c56052a54 Closing.