of_dp_aux_ep_destroy(9)
π 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 thedevice_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
dp_aux_ep_match(9)dp_aux_ep_probe(9)dp_aux_ep_remove(9)dp_aux_ep_shutdown(9)dp_aux_ep_dev_release(9)of_dp_aux_depopulate_bus(9)of_dp_aux_populate_bus(9)devm_of_dp_aux_populate_bus(9)
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
- 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