viortc_ptp_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to viortc_ptp_register(9) from the Kernel API Manual ✨ this one is literally about prepare and register PTP clock, and no cap it’s giving β€œsmall but important kernel helper” energy πŸ’…

🌸 NAME 🌸

viortc_ptp_register β€” prepare and register PTP clock πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

struct viortc_ptp_clock * viortc_ptp_register (struct viortc_dev *viortc
, struct device *parent_dev , u16 vio_clk_id , const char
*ptp_clock_name );

πŸ’– ARGUMENTS πŸ’–

  • viortc β€” the virtio_rtc device data, aka the main character data blob 🫢
  • parent_dev β€” the parent device for the PTP clock.
  • vio_clk_id β€” id of the virtio_rtc clock which backs the PTP clock.
  • ptp_clock_name β€” the PTP clock name.

✨ CONTEXT ✨

Process context. bestie, that’s the whole vibe check here πŸ’…

πŸ”₯ RETURN πŸ”₯

Pointer on success, ERR_PTR otherwise; NULL if PTP clock support not available. So like: success = pointer, not-success = ERR_PTR, no PTP clock support = NULL, periodt πŸ’€βœ¨

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/virtio/virtio_rtc_ptp.c β€” go peek, it’s iconic πŸ‘€


mwah πŸ’‹ that’s the page, bestie β€” source/version ./drivers/virtio, date October 2026, manual viortc_ptp_register(9) β€” bye and slay 🫢🌈

πŸ“¦ where this page comes from