ksz879x_set_loopback(9)
π ksz879x_set_loopback(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's from the kernel API manual, and it's literally all about ksz879x_set_loopback β a KSZ879x specific function to set loopback mode for a specific port π
πΈ NAME πΈ
ksz879x_set_loopback β a KSZ879x specific function to set loopback mode for a specific port π¦
β¨ SYNOPSIS β¨
int ksz879x_set_loopback (struct ksz_device *dev , u16 port , u16 val );
π ARGUMENTS π
devβ Pointer to the device structure. yes queen, hand over the whole device πportβ Port number to modify. like, which port are we doing a lil makeover on πvalβ Value indicating whether to enable or disable loopback mode. it's giving on/off energy π₯
π¦ DESCRIPTION π¦
okay so here's the vibe: this function translates loopback bit of the BMCR register into the corresponding hardware register bit value and writes it to the SMI interface β¨ no cap, that's literally the whole job. it's a translator. a little bilingual icon between register worlds π
β RETURN β
0on success π- error code on failure π
π SEE ALSO π
- Kernel file
./drivers/net/dsa/microchip/ksz8.c ksz8_ind_write8(9)ksz8_ind_read8(9)ksz879x_get_loopback(9)ksz8_r_phy_ctrl(9)ksz8_r_phy_bmcr(9)ksz8_w_phy_ctrl(9)ksz8_w_phy_bmcr(9)ksz88x3_tc_ets_add(9)ksz88x3_tc_ets_del(9)ksz8_phy_port_link_up(9)ksz8_cpu_port_link_up(9)ksz88x3_drive_strength_write(9)ksz8_parse_drive_strength(9)
like, go read all of those too, bestie, they're all in ./drivers/net/dsa/microchip π«Ά
real talk: this page lives in./drivers/net/dsa/microchip, dated October 2026, and it's part of the sameksz879x_set_loopback(9)situation you just read about π
anyway that's the whole page, mwah π periodt π§
π¦ 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