cec_pin_allocate_adapter(9)
β¨ 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 inadap->privand the adapter ops can use it. to grab theprivpointer back, hit upcec_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 withCEC_CAP_MONITOR_ALLandCEC_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 π
- Kernel file
./include/media/cec-pin.hβstruct cec_pin_ops(9) cec_pin_changed(9)
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
- 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