cec_pin_allocate_adapter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cec_pin_allocate_adapter(9) ✨

okay bestie, welcome to the Kernel API Manual πŸŽ€ this one's all about cec_pin_allocate_adapter β€” aka the glow-up moment where a plain old pin-based CEC adapter gets allocated and becomes a whole main character. πŸ’…


🌸 NAME 🌸

cec_pin_allocate_adapter β€” allocate a pin-based cec adapter πŸ¦‹


⭐ SYNOPSIS ⭐

struct cec_adapter * cec_pin_allocate_adapter (const struct cec_pin_ops
*pin_ops , void *priv , const char *name , u32 caps );

πŸ’– ARGUMENTS πŸ’–

  • pin_ops β€” the low-level pin operations, like the behind-the-scenes crew that actually makes the pins do stuff 🫢
  • priv β€” this one gets stored in adap->priv and the adapter ops can use it. to grab the priv pointer back, hit up cec_get_drvdata(adap) ✨
  • name β€” the name of the CEC adapter. heads up bestie: this name will be copied πŸ‘‘
  • caps β€” the capabilities of the CEC adapter. this will be ORed with CEC_CAP_MONITOR_ALL and CEC_CAP_MONITOR_PIN πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

allocate a cec adapter using the cec pin framework. that's it, that's the vibe β€” iconic behavior honestly 🧚


🌈 RETURN 🌈

a pointer to the cec adapter, or an error pointer 😭 (so like… check it, fr fr)


πŸ’œ SEE ALSO πŸ’œ


and that's the whole page, bestie! source is ./include/media, the manual is the Kernel API Manual, and it's dated October 2026 πŸ“ mwah, go forth and allocate πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from