devices_kset_move_after(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devices_kset_move_after(9) β€” the "put my device right after that one" glow-up

okay so this one lives in the Kernel API Manual (yes, the actual kernel manual, we're fancy now πŸŽ€) and honestly? iconic. it does exactly one (1) thing and it does it slayfully.


✨ NAME ✨

devices_kset_move_after β€” move a device in the devices_kset's list. that's it. that's the whole vibe. πŸ’–


🌸 SYNOPSIS 🌸

void devices_kset_move_after (struct device *deva , struct device *devb );

no cap, that's the whole signature. returns nothing (void), takes two device pointers, and just… rearranges the roster. lowkey powerful.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • deva β€” the device you're moving. the main character of this operation, fr fr. πŸ‘‘
  • devb β€” the device that deva should come after. so deva slides in right behind devb in the list. think of devb as the friend you're following into the club πŸ’…
🫢 quick vibe check: it's deva after devb. not before. not sideways. after. don't get it twisted bestie.

🌈 SEE ALSO 🌈

okay this is the part where the kernel flexes its entire friend group. like, every one of these is invited to the group chat. i kept every single one, no cuts, no skips, no "we'll do it later" πŸ’€


🧚 tiny note bestie: this page's home base is the ./drivers/base tree, and the doc itself is stamped October 2026 β€” the source/version situation is literally just that. so when you're citing it, that's the receipt. πŸ“

and that's the whole page!! short, sweet, one job, zero drama. devices_kset_move_after(9) ate and left no crumbs. periodt. ⭐ πŸ’œ

πŸ“¦ where this page comes from