ks8851_wrreg16(9)
β¨ ks8851_wrreg16 β 16-bit register write moment π
okay so this is a page from the Kernel API Manual, bestie β yep, the actual kernel docs, and this one's about a tiny-but-iconic little function called ks8851_wrreg16. she's not flashy, she's not huge, she's just out here writing 16-bit register values to a chip and honestly? we respect her for it π«Ά
β¨ NAME β¨
ks8851_wrreg16 β literally just: write a 16-bit register value to the chip π
πΈ SYNOPSIS πΈ
void ks8851_wrreg16 (struct ks8851_net *ks , unsigned int reg , unsigned
int val );
that's the whole vibe. no return value, no drama, just vibes and a write π
π¦ ARGUMENTS π¦
ksβ the chip state, aka where all the chip's little secrets live. this is the main character of the argument list ngl πregβ the register address, i.e. which little slot in the chip we're talking to πvalβ the value you want to write, i.e. the actual message you're sending π
π DESCRIPTION π
so basically: you issue a write, and val gets put into the register specified by reg. that's it. that's the function. she eats and leaves no crumbs π₯
like, no cap, it really is that simple β reg points at the register, val is the 16-bit value going in, and the chip is updated accordingly. periodt β¨
π SEE ALSO π
- the kernel file this lives in:
./drivers/net/ethernet/micrel/ks8851_common.cβ go read her, she's iconic π§ ks8851_lock(9),ks8851_unlock(9),ks8851_rdreg16(9),ks8851_soft_reset(9),ks8851_set_powermode(9),ks8851_write_mac_addr(9),ks8851_read_mac_addr(9),ks8851_init_mac(9),ks8851_rx_pkts(9),ks8851_irq(9),ks8851_flush_tx_work(9),ks8851_net_open(9),ks8851_net_stop(9),ks8851_start_xmit(9),ks8851_rxctrl_work(9),ks8851_eeprom_claim(9),ks8851_eeprom_release(9),ks8851_phy_reg(9),ks8851_phy_read(9),ks8851_read_selftest(9)
the whole friend group fr fr β every single one of them is in the ks8851 lore ππ
ok and one last thing bestie β this page comes to you courtesy of ./drivers/net/ethernet/micrel and it's dated October 2026, so go forth and write those 16-bit registers, mwah πβ
π¦ 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