ethtool_sprintf(9)
π ethtool_sprintf(9) β the Kernel API Manual, but make it cute π
Ok so bestie, buckle up β this is the ethtool_sprintf page from the Kernel API Manual, and it's honestly kind of a tiny little icon. It's got one job and it does it flawlessly. π
β¨ NAME β¨
ethtool_sprintf β write a formatted string into ethtool string data π«Ά
πΈ SYNOPSIS πΈ
void ethtool_sprintf (u8 **data , const char *fmt , ... );
π¦ ARGUMENTS π¦
dataβ a pointer to a pointer to the start of the string you're updating. Yes, double pointer. It's giving main character energy, we love her πfmtβ the format of the string you want to write...β the variable arguments, aka the little besties that get formatted in
π DESCRIPTION π
So what it actually does: it writes the formatted string to *data, and then it updates *data so it points at the start of the next string. Lowkey clean. Highkey iconic. β¨
That's the whole vibe β you write, it moves the pointer forward for you, no cap. π§
π SEE ALSO π
Ok this list is long, but every single one of these is literally family, so here we go β from the Kernel file ./include/linux/ethtool.h:
enum ethtool_phys_id_state(9)struct kernel_ethtool_ringparam(9)enum ethtool_supported_ring_param(9)ethtool_rxfh_indir_default(9)struct ethtool_rxfh_context(9)ethtool_link_ksettings_zero_link_mode(9)ethtool_link_ksettings_add_link_mode(9)ethtool_link_ksettings_del_link_mode(9)ethtool_link_ksettings_test_link_mode(9)ethtool_intersect_link_masks(9)struct ethtool_phy_stats(9)struct ethtool_pause_stats(9)struct ethtool_fec_hist_range(9)struct ethtool_fec_stats(9)struct ethtool_rmon_hist_range(9)struct ethtool_rmon_stats(9)struct ethtool_ts_stats(9)struct ethtool_module_eeprom(9)struct ethtool_module_power_mode_params(9)struct ethtool_mm_state(9)struct ethtool_mm_cfg(9)struct ethtool_mm_stats(9)struct ethtool_mmsv_ops(9)struct ethtool_mmsv(9)struct ethtool_rxfh_param(9)struct ethtool_rxfh_fields(9)struct kernel_ethtool_ts_info(9)struct ethtool_ops(9)struct ethtool_netdev_state(9)struct ethtool_phy_ops(9)ethtool_set_ethtool_phy_ops(9)ethtool_params_from_link_mode(9)ethtool_get_phc_vclocks(9)ethtool_mm_frag_size_add_to_min(9)ethtool_mm_frag_size_min_to_add(9)ethtool_get_ts_info_by_layer(9)ethtool_puts(9)ethtool_cpy(9)
Like, the whole friend group showed up to the party. ππ₯
Ngl bestie, that's the entire page β no warnings, no bugs section, no tricky caveats. Just a sweet lil formatter doing her thing. π
And that's a wrap! This one lives in ./include/linux, dated October 2026, and it's all brought to you by the Kernel API Manual. Mwah, slay, 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