device_online(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ device_online(9) πŸŽ€

okay bestie come closer β€” this is a page from the Kernel API Manual, and it's device_online(9), which is genuinely the "you can come back in, the party's still going" function of the device world. no cap. πŸ’…


✨ NAME ✨

device_online β€” puts the device back online after device_offline() actually succeeded. that's it. that's the whole vibe. 🫢


🌸 SYNOPSIS 🌸

int device_online (struct device *dev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device you're putting back online. literally her. the main character of this call. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

okay so picture this: device_offline has already been successfully executed for dev, and the device has not been removed since then. if that's the sitch, then device_online runs its bus type's .online callback, which is basically the kernel's way of announcing "yeah she's usable again, we're so back." ✨

🚨 and bestie, listen β€” call it under device_hotplug_lock. that's not a suggestion, that's the assignment. lock first, then vibe. πŸ”

🌈 SEE ALSO 🌈

this list is iconic and also lowkey a whole crowd, so buckle up. the kernel file ./drivers/base/core.c plus everyone in the group chat:

the fwnode link girlies 🧚

the device link crew πŸ”—

the device lifecycle squad πŸ›

the "walk the children" gang πŸšΆβ€β™€οΈ

the sibling page (her other half) πŸ’«

the root device crew 🌱

the create / destroy / rename committee πŸŽ€

the of_node & fwnode setters πŸ“


okay that's the whole page, you ate that ngl πŸ’… go forth and bring your devices back online responsibly. and remember: this gem is filed under ./drivers/base, dated October 2026 β€” screenshot it, cite it, slay. πŸŒˆβ­πŸ‘‘

πŸ“¦ where this page comes from