ksz879x_get_loopback(9)
π ksz879x_get_loopback(9) π
hii bestie, welcome to the ksz879x_get_loopback(9) page from the Kernel API Manual β¨ this one is short, sweet, and lowkey iconic.
π NAME π
ksz879x_get_loopback β the KSZ879x specific function to get loopback configuration status for a specific port π
β¨ SYNOPSIS β¨
okay so here's the signature, exactly as it appears, no cap:
int ksz879x_get_loopback (struct ksz_device *dev , u16 port , u16 *val
);
π ARGUMENTS π
devβ pointer to the device structure, like the main character struct π«Άportβ port number to query, the one we're checking on πvalβ pointer to store the result, put the result right here πΎ
π¦ DESCRIPTION π¦
okay so the tea is: this function reads the SMI registers to determine whether loopback mode is enabled for a specific port. that's the whole vibe, fr fr β¨
πΈ RETURN πΈ
0 on success, and an error code on failure. when it's 0, slay π
; when it's an error code, π but at least you know.
π SEE ALSO π
The kernel file is ./drivers/net/dsa/microchip/ksz8.c, and the whole squad is:
ksz8_ind_write8(9)ksz8_ind_read8(9)ksz879x_set_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)
source/version: ./drivers/net/dsa/microchip Β· date: October 2026 β mwah, 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