of_dp_aux_ep_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… of_dp_aux_ep_destroy(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil function named of_dp_aux_ep_destroy, and honestly? it's giving cleanup crew energy. let's get into it 🧹✨


✨ NAME ✨

of_dp_aux_ep_destroy β€” Destroy an DP AUX endpoint device πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int of_dp_aux_ep_destroy (struct device *dev , void *data );

🌸 ARGUMENTS 🌸

  • dev β€” The device to destroy. that's the main character right there, we're sending it off πŸ’…
  • data β€” Not used. literally just vibing in the parameter list, doing absolutely nothing, respect 🫢

⭐ DESCRIPTION ⭐

okay so here's the tea: this function is just used as a callback by of_dp_aux_depopulate_bus, and it gets called for _all_ of the child devices of the device that's providing the AUX bus. all of them. every single one. no cap 😭

but we're picky (in a slay way) β€” we'll only act on those that are of type "dp_aux_bus_type". everyone else? not our problem, we don't see it πŸ’€

this function is effectively an inverse of what's in of_dp_aux_populate_bus. like, populate's mirror image, its opposite twin, its "you go girl" counterpart πŸ”₯

NOTE: since we only populate one child then it's expected that only one device will match all the "if" tests in this function and get to the device_unregister. so like… one winner, one ticket to the unregister party πŸŽŸοΈπŸ‘‘

πŸ’– RETURN πŸ’–

0 if no error or negative error code. simple! clean! iconic! ✨


🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/display/drm_dp_aux_bus.c

the whole squad, fr fr πŸ«ΆπŸ’œ


aaaand that's the page!! one last vibe check before you go: this lil gem lives in ./drivers/gpu/drm/display, dated October 2026, and it goes by of_dp_aux_ep_destroy(9) β€” go forth and destroy (devices, responsibly) bestie πŸ’…πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from