sfp_bus_add_upstream(9)
π NAME π
okay so bestie, welcome to sfp_bus_add_upstream(9) from the Kernel API Manual β this one is literally parse and register the neighbouring device. no cap. π
β¨ SYNOPSIS β¨
int sfp_bus_add_upstream (struct sfp_bus *bus , void *upstream , const
struct sfp_upstream_ops *ops );
π ARGUMENTS π
busβ thestruct sfp_busfound viasfp_bus_find_fwnode. that's your main-character bus. πupstreamβ the upstream private data. yes, the private-data vibes.opsβ the upstream'sstruct sfp_upstream_ops. the operations bestie.
π¦ DESCRIPTION π¦
Add upstream driver for the SFP bus, and if the bus is complete, register the SFP bus using sfp_register_upstream. This takes a reference on the bus, so it is safe to put the bus after this call. π«Ά
lowkey important: because this takes a reference on the bus, putting the bus after this call is safe. keep that in your notes, bestie. β¨ slay β¨
The failure-side details are down in RETURN, and they are giving specifics. π
πΈ RETURN πΈ
- on success, a pointer to the
sfp_busstructure, π NULLif no SFP is specified,- on failure, an error pointer value:
- corresponding to the errors detailed for
fwnode_property_get_reference_args. -ENOMEMif we failed to allocate the bus.- an error from the upstream's
connect_phymethod.
- corresponding to the errors detailed for
π SEE ALSO π
Kernel file ./drivers/net/phy/sfp-bus.c, plus these icons:
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_stop(9)sfp_upstream_set_signal_rate(9)sfp_bus_find_fwnode(9)sfp_bus_del_upstream(9)sfp_get_name(9)
kiss kiss, this page came from the source path ./drivers/net/phy, dated October 2026, and it's the sfp_bus_add_upstream(9) manual page. bye bestie! πππ¦
π¦ 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