nouveau_i2c_encoder_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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