sfp_upstream_stop(9)
π 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 thestruct sfp_busstructure 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:
- Kernel file
./drivers/net/phy/sfp-bus.c struct sfp_bus(9)sfp_select_interface(9)sfp_bus_put(9)sfp_get_module_info(9)sfp_get_module_eeprom(9)sfp_get_module_eeprom_by_page(9)sfp_upstream_start(9)sfp_upstream_set_signal_rate(9)sfp_bus_find_fwnode(9)sfp_bus_add_upstream(9)sfp_bus_del_upstream(9)sfp_get_name(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms