device_link_del(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, buckle up, because this is the page for device_link_del, from the Kernel API Manual. yes, the whole manual. it's giving "small function, big responsibilities" energy and honestly? iconic. πŸŽ€


🌸 NAME 🌸

device_link_del β€” Delete a stateless link between two devices.

like, the breakup function for device links. no cap. πŸ’”


✨ SYNOPSIS ✨

void device_link_del (struct device_link *link );

that's it. that's the whole signature. returns nothing, because it's a void girlie and it has nothing to prove. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • link β€” Device link to delete. the one you're breaking up with. that's it, that's the whole argument. πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea, and please actually read this part because it's not just vibes:

The caller must ensure proper synchronization of this function with runtime PM. like, you, the caller, are responsible for that sync. it's not coming from this function, it's coming from you. main character responsibility energy, ngl. 😭

If the link was added multiple times, it needs to be deleted as often. so if you stacked it up, you unwind it the same number of times. one-for-one. no shortcuts. πŸ”₯

Care is required for hotplugged devices: Their links are purged on removal and calling device_link_del is then no longer allowed.

🚨 bestie please read that again. for hotplugged devices, the links get purged when the device is removed β€” and after that, calling device_link_del is no longer allowed. not "discouraged", not "kinda rude", not allowed. don't do it. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/base/core.c β€” and here's the whole friend group, literally everyone this page hangs out with:

yeah that's a lot of links. it's giving group chat with 78 members and every single one of them is relevant. πŸ’€βœ¨


🧚 sign-off 🧚

this little icon lives in ./drivers/base, brought to you by the Kernel API Manual, dated October 2026, with the kernel file being ./drivers/base/core.c. go forth and delete your links responsibly, bestie. slay. πŸ’–πŸŒˆβ­

πŸ“¦ where this page comes from