ksz_drive_strength_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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 the ksz_drive_strength_write(9) page β€” go forth and configure responsibly πŸŽ€βœ¨πŸ¦‹
πŸ“¦ where this page comes from