STRUCT LIRC_FH(9)
π struct lirc_fh(9) π
okay so this is a page straight out of the Kernel API Manual, and bestie, we're about to get into it β this is the whole vibe of struct lirc_fh, no skips, no cap π«Ά
β¨ NAME β¨
struct lirc_fh β literally represents an open lirc file π
πΈ SYNOPSIS πΈ
struct lirc_fh {
struct list_head list;
struct rc_dev *rc;
unsigned int *rawir;
struct lirc_scancode *scancodes;
wait_queue_head_t wait_poll;
u32 carrier_low;
u8 send_mode;
u8 rec_mode;
};
that's her. that's the struct. copy it exactly, don't be weird about it β¨
π Members π
listβ the list of open file handles. it's giving "everybody's here" energy πrcβ the rcdev for this lirc chardev, like her personal main character device πrawirβ the queue for incoming raw IR π (yes, raw, unfiltered, unfiltered truth)scancodesβ the queue for incoming decoded scancodes, the glow-up version of the raw stuff βwait_pollβ the poll struct for the lirc device. she waits. she polls. she slays πcarrier_lowβ when setting the carrier range, first the low end must be set with an ioctl and then the high end with another ioctl. two ioctls, in that order, no shortcuts, periodt πsend_modeβ lirc mode for sending, eitherLIRC_MODE_SCANCODEorLIRC_MODE_PULSEπ€rec_modeβ lirc mode for receiving, eitherLIRC_MODE_SCANCODEorLIRC_MODE_MODE2π₯
ngl the carrier_low one is a lil sneaky: low end first with one ioctl, high end second with another ioctl. if you flip the order you're on your own π
π¦ SEE ALSO π¦
all the friends in the group chat, lowkey iconic the whole way down:
- Kernel file
./include/media/rc-core.henum rc_driver_type(9) struct rc_scancode_filter(9)enum rc_filter_type(9)struct rc_dev(9)rc_allocate_device(9)devm_rc_allocate_device(9)rc_free_device(9)rc_register_device(9)devm_rc_register_device(9)rc_unregister_device(9)
aaaand that's the page, bestie π tysm for reading, mwah π this one lives in ./include/media and it's dated October 2026 β so like, put it in your calendar, it's giving future icon π§ββοΈβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms