BUS_GENERIC_DETACH(9)

πŸ’– BUS_GENERIC_DETACH πŸ’–

okay so bestie, welcome to the BUS_GENERIC_DETACH(9) page β€” it's part of the Kernel Developer's Manual, and it's genuinely one of the most chill pages in the whole kernel, iykyk ✨


🌸 NAME 🌸

bus_generic_detach β€” the generic implementation of DEVICE_DETACH for buses πŸšŒπŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <sys/param.h>
#include <sys/bus.h>

int
bus_generic_detach(device_t dev);

like. it's giving short and sweet. no cap. 🫢


✨ DESCRIPTION ✨

okay so here's the tea β˜• β€” this function hands you an implementation of the DEVICE_DETACH(9) method that most bus code can just... use. it's the plug-and-play bestie of detach methods fr fr.

and what does it do? it simply calls the DEVICE_DETACH(9) method of each child device attached to the bus. that's it. that's the whole vibe. one method call per child, no extra drama, no side quests. πŸ’€

think of it like a group chat where the bus @everyones all its kids and tells them to detach. one by one. in order. iconic behaviour honestly. πŸ‘‘

🌈 RETURN VALUES 🌈

  • Zero is returned on success πŸ’–
  • otherwise, an appropriate error is returned 😭

that's it. that's the return value section. slay. ✨


πŸ‘‘ SEE ALSO πŸ‘‘

go read those next bestie, they're lowkey essential πŸ¦‹


πŸ“ AUTHORS πŸ“

This manual page was written by Doug Rabson. ty for your service king πŸ«‘πŸ’œ


and that's the whole page!! periodt πŸ’… this came to you from the Debian crew, dated January 15, 2017 β€” so yeah, it's been serving these facts for a minute and it still ate 🌸🧚⭐

πŸ“¦ where this page comes from