STRUCT MII_TIMESTAMPING_CTRL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ struct mii_timestamping_ctrl πŸ‘‘

okay so bestie, welcome to the Kernel API Manual β€” we're talking about struct mii_timestamping_ctrl today, and it's literally the MII time stamping controller interface. no cap, that's the whole vibe of this page. πŸ’…


✨ NAME ✨

struct mii_timestamping_ctrl β€” MII time stamping controller interface.


πŸŽ€ SYNOPSIS πŸŽ€

struct mii_timestamping_ctrl {
    struct mii_timestamper *(*probe_channel)(struct device *device,
unsigned int port);
    void (*release_channel)(struct device *device, struct
mii_timestamper *mii_ts);
 };

πŸ’… Members πŸ’…

  • probe_channel β€” this is the callback into the controller driver, and its whole job is announcing that the 'port' channel exists. 🫢 the 'device' field? yeah, that one had already been passed to register_mii_tstamp_controller β€” so it's not new info, it's a hand-me-down. now listen up: the driver must return either a pointer to a valid MII timestamper instance or PTR_ERR. that's not optional, bestie. periodt. πŸ”₯
  • release_channel β€” the cleanup bestie ✨ it releases an instance that you got via .probe_channel. you know the drill: what gets probed, gets released. πŸŽ€

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/linux/mii_timestamper.h
  • struct mii_timestamper(9)

and that's the whole page, iconically. this little cutie lives in ./include/linux, it's dated October 2026, and it's serving full Kernel API Manual energy from the footer to the top. slay, go timestamp something. πŸŒˆπŸ’–πŸ¦‹

πŸ“¦ where this page comes from