lbs_mac_event_disconnected(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lbs_mac_event_disconnected β€” NAME

okay so bestie, this is lbs_mac_event_disconnected β€” the function that handles the disconnect event 🫢. Literally what it says on the tin: it reports the disconnect up to the upper layer, cleans up tx/rx packets, resets the link state, etc. etc. ✨ (yes the "etc" is doing heavy lifting, that's from the source, we do not elaborate, we respect the mystery).

this page lives in the Kernel API Manual, section 9. iykyk πŸ‘‘

🌸 SYNOPSIS

void lbs_mac_event_disconnected (struct lbs_private *priv , bool
locally_generated );

that's it. two args, one void, zero notes. it's giving "small function, big responsibilities" energy πŸ’€βœ¨


πŸŽ€ ARGUMENTS

  • priv β€” a pointer to struct lbs_private. your whole private context, your main character struct, the one with all the state πŸ‘‘
  • locally_generated β€” a bool that says whether the disconnect was requested locally (usually by userspace). so like, did we do this to ourselves or did the network do it to us 😭

🌈 RETURN

n/a β€” nothing. it returns void, it returns vibes, it returns nothing. periodt πŸ’…


πŸ¦‹ SEE ALSO

  • the kernel file ./drivers/net/wireless/marvell/libertas/cmdresp.c β€” go read it, that's where the actual lore lives πŸ“–βœ¨

πŸŒΈπŸ’– ok that's the whole page bestie, go forth and disconnect responsibly πŸ’–πŸŒΈ

source/version note: this cutie shipped from ./drivers/net/wireless/marvell/libertas/cmdresp.c and is dated October 2026. archive it, cite it, love it 🫢✨
πŸ“¦ where this page comes from