igb_ptp_hwtstamp_get(9)
π igb_ptp_hwtstamp_get(9) β like, the Kernel API Manual page, bestie π
okay so real talk, this is a page from the Kernel API Manual, and the star of the show is igb_ptp_hwtstamp_get β the function that gets you your hardware time stamping config. no cap, it's a whole vibe. let's get into it. β¨
πΈ NAME πΈ
igb_ptp_hwtstamp_get β get hardware time stamping config π
π¦ SYNOPSIS π¦
int igb_ptp_hwtstamp_get (struct net_device *netdev , struct
kernel_hwtstamp_config *config );
like, yes, it returns an int, and yes it takes those two things. iconic signature honestly. π
π ARGUMENTS π
netdevβ thenetdevstruct π«Άconfigβ the timestamping configuration structure β
β¨ DESCRIPTION β¨
okay so what this does: it gets the hwtstamp_config settings and hands them back to the user. and here's the slay part β instead of trying to deconstruct the settings from the registers (which is giving chaos, giving "not me reading raw hardware"), it just returns a shadow copy of the last known settings. much simpler, much cuter, lowkey genius. π
π§ SEE ALSO π§
- Kernel file
./drivers/net/ethernet/intel/igb/igb_ptp.cπ
and the whole friend group, fr fr:
igb_ptp_systim_to_hwtstamp(9)igb_ptp_tx_work(9)igb_ptp_rx_hang(9)igb_ptp_tx_hang(9)igb_ptp_tx_hwtstamp(9)igb_ptp_rx_pktstamp(9)igb_ptp_rx_rgtstamp(9)igb_ptp_set_timestamp_mode(9)igb_ptp_hwtstamp_set(9)igb_ptp_init(9)igb_ptp_sdp_init(9)igb_ptp_suspend(9)igb_ptp_stop(9)igb_ptp_reset(9)
π«Ά that's the whole page bestie β no hidden extras, no secret lore, just the timestamping config fetch. go off. π₯
mwah π this one came from ./drivers/net/ethernet/intel/igb, dated October 2026, and it's the igb_ptp_hwtstamp_get(9) page β 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