sfp_upstream_stop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sfp_upstream_stop β€” kernel API manual, section 9

okay bestie, gather round, because this one's a tiny little function with a big job and honestly the glow-up is real. it lives in section 9 of the kernel API manual, and no, it is not a command you type β€” it's a kernel function, iykyk 🧚


🌸 NAME 🌸

sfp_upstream_stop β€” the function that lets the SFP know the network device is down 🫢


✨ SYNOPSIS ✨

void sfp_upstream_stop(struct sfp_bus *bus);

that's it. that's the whole signature. no return value, no drama, just vibes and a pointer πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • bus β€” a pointer to the struct sfp_bus structure for the sfp module. that's your one (1) job, bestie: hand it the bus πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea β˜• β€” this function informs the SFP socket that the network device is now up, so that the module can be disabled by asserting TX_DISABLE, which disables the laser in optical modules. lowkey iconic behaviour: the module gets told to chill out and the laser goes night-night 😴πŸ”₯

(yes, the page literally says "now up" in the description of the stop function β€” we are simply reporting the facts as written, no cap, we do not editorialise, we just deliver πŸ’€)

and where do you call it from? from the network device driver's struct net_device_ops ndo_stop method, obviously. that's the spot. that's the moment. main character energy only 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, bestie, they're all in their flop era until you do:


πŸ’– reminder: sfp_upstream_start(9) is literally right there in the list, they're a matching set, do not separate them, they're a package deal 🫢

and that's the whole page, periodt πŸŽ€ this little legend is brought to you by ./drivers/net/phy, dated October 2026 β€” slay, see you in the next manpage, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from