viortc_ptp_register(9)
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β thevirtio_rtcdevice data, aka the main character data blob π«Άparent_devβ the parent device for the PTP clock.vio_clk_idβ id of thevirtio_rtcclock 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 π
struct viortc_ptp_clock(9)struct viortc_ptp_cross_ctx(9)viortc_ptp_get_time_fn(9)viortc_ptp_do_xtstamp(9)viortc_ptp_getcrosststamp(9)viortc_ptp_unregister(9)viortc_ptp_get_cross_cap(9)
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
- 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