devices_kset_move_before(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devices_kset_move_before(9) β€” from the Kernel API Manual, bestie

okay so listen. this is a tiny little kernel function from the Kernel API Manual and honestly it's giving "small but mighty" πŸ’– it lives in the devices kset β€” the list that holds all your struct device buddies β€” and it just… moves one of them. that's it. that's the whole vibe. ✨


πŸŽ€ NAME πŸŽ€

devices_kset_move_before β€” move a device in the devices_kset's list. literally just a reorder, no cap πŸ¦‹


✨ SYNOPSIS ✨

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

it returns void, so don't go looking for a return value, she's not giving you one πŸ™ˆ


🌸 ARGUMENTS 🌸

  • deva β€” the device you're moving. the main character of this operation πŸ‘‘
  • devb β€” the device that deva should come before. so like, deva slots in right ahead of devb. ordering is the whole point, iykyk

πŸ’œ SEE ALSO πŸ’œ

okay this is the part where the manpage dumps literally everyone in the group chat, and we're not skipping a single one. no crumbs left behind πŸ“ these all hang out in the kernel file ./drivers/base/core.c:

like… that's the whole roster. and every single one of them is a real function, fr fr πŸ’€


heads up bestie: this page comes from the ./drivers/base section, dated October 2026, and it's filed under devices_kset_move_before(9). that's your source and your version, so if you gotta cite her, cite her correctly 🫢

and that's the whole page, periodt. go move some devices around πŸ’…πŸŒˆβ­

πŸ“¦ where this page comes from