BUS_DELAYED_ATTACH_CHILDREN(9freebsd)

πŸ’– BUS_DELAYED_ATTACH_CHILDREN β€” the bus_delayed_attach_children(9) girlies know ✨

okay so bestie, welcome to the bus_delayed_attach_children(9) kernel developer's manual page πŸŽ€ this one is short and sweet and honestly iconic for it.


🌸 NAME 🌸

bus_delayed_attach_children β€” no cap, this is the "hey can u pls attach my children when interrupts are on" request πŸ’…


✨ SYNOPSIS ✨

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

int
bus_delayed_attach_children(device_t dev);

look at that signature. chef's kiss. two includes, one function, zero drama πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

so bus_delayed_attach_children() is literally asking for the children of this device to get attached while interrupts are running, fr fr.

here's the tea tho, and it depends on timing:

  • if interrupts are currently running, it happens immediately ⚑
  • if interrupts aren't running yet, it happens after interrupts are enabled, but before the system mounts root 🌱

that's the whole vibe. not me being obsessed with a two-branch conditional 😭


πŸ‘‘ RETURN VALUES πŸ‘‘

a zero return value means success. that's it, that's the return value section, periodt ✨


🌈 SEE ALSO 🌈

go read those too bestie, iykyk 🫢


πŸ’– AUTHORS πŸ’–

this manual page was written by Warner Losh <imp@FreeBSD.org> β€” ty for the lore king πŸ‘‘


and that's the whole page!! πŸ’€ written for the Debian project, dated August 29, 2019, filed under BUS_DELAYED_ATTACH_CHILDREN(9) πŸŽ€ slay, read it, love it, go attach those children πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from