sis900_read_mode(9)
π sis900_read_mode β Kernel API Manual, but make it make sense
okay bestie, so this is sis900_read_mode(9) from the Kernel API Manual, and it's basically the little function that reads the media mode for the sis900 internal phy π¦ she's small, she's specific, she's iconic.
β¨ NAME β¨
sis900_read_mode β reads the media mode for the sis900 internal phy π
πΈ SYNOPSIS πΈ
void sis900_read_mode (struct net_device *net_dev , int *speed , int
*duplex );
π ARGUMENTS π
net_devβ the net device you're reading the mode for, like the main character of this whole operation πspeedβ the transmit speed that's gonna get determined β¨duplexβ the duplex mode that's gonna get determined π«Ά
π₯ DESCRIPTION π₯
okay so here's the vibe: the capability of the remote end gets put into the mii register autorec after auto-negotiation. that's just what happens, no cap π
then you use the AND operation to get the upper bound of speed and duplex between the two ends. that's it, that's the whole function β she ANDs and she slays π
π SEE ALSO π
Kernel file ./drivers/net/ethernet/sis/sis900.c and honestly the whole sis900 friend group, they all get a shoutout fr fr:
sis900_get_mac_addr(9), sis630e_get_mac_addr(9), sis635_get_mac_addr(9), sis96x_get_mac_addr(9), sis900_probe(9), sis900_mii_probe(9), sis900_default_phy(9), sis900_set_capability(9), read_eeprom(9), mdio_read(9), mdio_write(9), sis900_reset_phy(9), sis900_open(9), sis900_init_rxfilter(9), sis900_init_tx_ring(9), sis900_init_rx_ring(9), sis630_set_eq(9), sis900_timer(9), sis900_check_mode(9), sis900_set_mode(9), sis900_auto_negotiate(9), sis900_tx_timeout(9), sis900_start_xmit(9), sis900_interrupt(9), sis900_rx(9), sis900_finish_xmit(9), sis900_close(9), sis900_get_drvinfo(9), sis900_set_wol(9), mii_ioctl(9), sis900_set_config(9), sis900_mcast_bitnr(9), set_rx_mode(9), sis900_reset(9), sis900_remove(9) π like, the entire friend group showed up to the party.
ngl if you're here for the sis900 lore you have a whole reading list now. hydrate before you start ππ
mwah, that's a wrap! π this absolute gem lives in ./drivers/net/ethernet/sis, dated October 2026, and yes she's still sis900_read_mode(9) β go off, queen π§β
π¦ 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