nouveau_i2c_encoder_destroy(9)
π nouveau_i2c_encoder_destroy(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a lil function called nouveau_i2c_encoder_destroy, and yes it's exactly as niche and iconic as it sounds π
πΈ NAME πΈ
nouveau_i2c_encoder_destroy β unregister the I2C device backing an encoder π«Ά
like, it's the cleanup girlie. the one who shows up at the end of the party and turns the lights off π
β¨ SYNOPSIS β¨
void nouveau_i2c_encoder_destroy (struct drm_encoder *drm_encoder );
that's the whole vibe. one arg, returns nothing (void), does its thing and dips π
π¦ ARGUMENTS π¦
drm_encoderβ the encoder that's getting unregistered π like it's literally the thing you're tearing down, no cap
π DESCRIPTION π
so here's the tea, bestie: you call this from the destroy method of an I2C slave encoder driver π β specifically once I2C access is no longer needed. that's the whole condition fr fr. no I2C access needed anymore? that's your cue, that's your moment, call the destroy function πΈ
the way that this is literally just the goodbye function π it's giving "thanks for the I2C, we're done here" energy and honestly? obsessed π
lowkey important: the timing matters β this goes in the driver's destroy method, and it's only correct when I2C access isn't needed any more. don't be out here calling it early, bestie π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/nouveau/include/dispnv04/i2c/encoder_i2c.hπ struct nouveau_i2c_encoder_funcs(9)β the funcs struct β¨struct nouveau_i2c_encoder(9)β the encoder struct itself πstruct nouveau_i2c_encoder_driver(9)β the driver struct π¦nouveau_i2c_encoder_get_client(9)β the client getter πΈ
and that's the whole page, bestie πβ¨ this one came straight out of ./drivers/gpu/drm/nouveau/incl... and is dated October 2026 β so yeah, certified fresh π slay, go destroy some encoders responsibly π«Άπ
π¦ 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