stmmac_hwtstamp_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… stmmac_hwtstamp_set β€” kernel API manual, but make it cute πŸŽ€

okay so real talk, bestie: this is stmmac_hwtstamp_set(9) from the Kernel API Manual, and it's literally the function that controls hardware timestamping ✨ like, that's the whole vibe. no cap.


🌸 NAME 🌸

stmmac_hwtstamp_set β€” control hardware timestamping. that's it. that's the girl. πŸ‘‘


✨ SYNOPSIS ✨

int stmmac_hwtstamp_set (struct net_device *dev , struct
       kernel_hwtstamp_config *config , struct netlink_ext_ack *extack );

three args, one int coming back at you. it's giving "small function, big responsibilities" energy fr fr 🫢


πŸ’– ARGUMENTS πŸ’–

  • dev β€” the device pointer. like, the actual net device we're messing with. main character energy right here πŸ’…
  • config β€” the timestamping configuration. this is the user's wishlist, the whole dream, the settings πŸŽ€
  • extack β€” the netlink extended ack structure, used for error reporting. so when something goes wrong it can tell you why instead of just ghosting you 😭

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it actually do?? it configures the MAC to enable/disable both outgoing (TX) and incoming (RX) packets' time stamping, based on user input. yes bestie, both directions, we don't do half measures here πŸ”₯

return value: 0 on success and an appropriate -ve integer on failure. ngl a negative number coming back is never good news πŸ’€


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/net/ethernet/stmicro/stmmac/stmmac_main.c β€” go read it, iykyk πŸ“–

and now the friend group, because this function literally knows everyone πŸ‘―β€β™€οΈ:

like, that's a whole contact list bestie πŸ˜­πŸ’€


🫢 also, the source path in the footer got squished to ./drivers/net/ethernet/stmicro... and the date on the original was October 2026 β€” so yeah, this page is from the future apparently, no cap ⭐

that's the whole manual page, bestie! go forth and timestamp responsibly πŸ’œπŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from