ksz_drive_strength_write(9)
π ksz_drive_strength_write(9) β like, the whole Kernel API Manual moment
okay so bestie, welcome to the group chat for ksz_drive_strength_write β it lives in the Kernel API Manual and it's lowkey one of those functions that just does its job and does it slayingly. Let's get into it π
β¨ NAME β¨
ksz_drive_strength_write β sets the drive strength for specific KSZ9477 chips and the KSZ87xx chip variants. no cap, that's literally the whole thing π
π¦ SYNOPSIS π¦
int ksz_drive_strength_write (struct ksz_device *dev , struct
ksz_driver_strength_prop *props , int num_props );
(it's giving "three arguments, one job, zero drama" β¨)
π ARGUMENTS π
devβ the ksz device. your main character struct π«Άpropsβ array of drive strength properties to be applied. it's the whole lineup, bestie πΈnum_propsβ how many properties are actually chillin' in that array π’
π₯ DESCRIPTION π₯
So what does it do? It configures the drive strength for various KSZ9477 chip variants based on the properties you hand it. That's the vibe check β
It also handles all the chip-specific nuances β because every chip variant has its own little personality, iykyk β and it makes sure that only valid drive strengths get written to the respective chip. no invalid values sneaking in on its watch, periodt πβ¨
π RETURN π
0β successful configuration, we ate π- a negative error code β failure, and it will let you know π
π SEE ALSO π
Kernel file ./drivers/net/dsa/microchip/ksz_common.c β that's where the magic lives, go say hi π§
and the whole friend group of related functions:
ksz_phylink_mac_disable_tx_lpi(9)ksz_phylink_mac_enable_tx_lpi(9)ksz_update_port_member(9)ksz_parent_mdio_read(9)ksz_parent_mdio_write(9)ksz_phy_addr_to_port(9)ksz_irq_phy_setup(9)ksz_irq_phy_free(9)ksz_parse_dt_phy_config(9)ksz_mdio_register(9)ksz_handle_wake_reason(9)ksz_is_port_mac_global_usable(9)ksz_get_wol(9)ksz_set_wol(9)ksz_wol_pre_shutdown(9)ksz_switch_macaddr_get(9)ksz_switch_shutdown(9)ksz_drive_strength_to_reg(9)ksz_drive_strength_error(9)
okay that's the whole page, bestie, you're officially educated π
cute sign-off time: this iconic little doc comes from./drivers/net/dsa/microchip, dated October 2026, and it's theksz_drive_strength_write(9)page β go forth and configure responsibly πβ¨π¦
π¦ 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