Dong Zhu
2012-09-28 07:22:06 UTC
Hi,
clock_ppb_read()
struct timex tx;
memset(&tx, 0, sizeof(tx));
if (clock_adjtime(clkid, &tx) < 0)
pr_err("failed to read out the clock frequency adjustment: %m");
According to ptp_clock_adjtime() which is implemented in kernel,if we do not assign the
tx.modes = (ADJ_FREQUENCY or ADJ_SETOFFSET) the clock_adjtime will return
-EOPNOTSUPP. means not support by kernel now ? If so what is the role of this function(clock_ppb_read) ?
Thanks a lot ~
clock_ppb_read()
struct timex tx;
memset(&tx, 0, sizeof(tx));
if (clock_adjtime(clkid, &tx) < 0)
pr_err("failed to read out the clock frequency adjustment: %m");
According to ptp_clock_adjtime() which is implemented in kernel,if we do not assign the
tx.modes = (ADJ_FREQUENCY or ADJ_SETOFFSET) the clock_adjtime will return
-EOPNOTSUPP. means not support by kernel now ? If so what is the role of this function(clock_ppb_read) ?
Thanks a lot ~
--
Best Regards,
Dong Zhu
----------------------------
WebSite: http://bluezd.info
----------------------------
Best Regards,
Dong Zhu
----------------------------
WebSite: http://bluezd.info
----------------------------