clock_create函数 clock_create函数负责创建时钟实例,并配置其属性和端口。 c struct clock *clock_create(enum clock_type type, struct config *config, const char *phc_device) { // ... 配置时钟参数 ... // 检查网络接口是否支持所需的时间戳类型 STAILQ_FOREACH(iface, &config->interfaces,...
ptp4l [ -A | -E | -P ] [ -2 | -4 | -6 ] [ -H | -S | -L ] [ -f config ] [ -p phc-device ] [ -s ] [ -l print-level ] [ -q ] [ -v ] [ -i interface ] ...选项 -A ⾃动选择延迟机制,初始为E2E,当收到对端的delay request的时候切换到P2P.-E 选择延迟...
ptp4l[35843.709]: config item (null).clock_type is 32768ptp4l[35843.709]: config item (null).clock_servo is 0ptp4l[35843.709]: config item (null).clockClass is 248ptp4l[35843.709]: config item (null).clockAccuracy is 254ptp4l[35843.709]: config item (null).off...
.B clock_type Specifies the kind of PTP clock. Valid values are "OC" for ordinary clock, "BC" for boundary clock, "P2P_TC" for peer to peer transparent clock, and "E2E_TC" for end to end transparent clock. An multi-port ordinary clock will automatically be configured as a boun...
ptp4l[23102.807]: config item (null).clock_type is 32768 ptp4l[23102.807]: config item (null).clock_servo is 0 ptp4l[23102.807]: config item (null).clockClass is 248 ptp4l[23102.807]: config item (null).clockAccuracy is 254
port_dispatch(p, EV_MASTER_CLOCK_SELECTED, 0); break; case SERVO_LOCKED_STABLE: if (last_state == SERVO_LOCKED) { p->logPdelayReqInterval = p->operLogPdelayReqInterval; p->logSyncInterval = p->operLogSyncInterval; port_tx_interval_request(p, SIGNAL_NO_CHANGE, p->logSyncInterval, ...
当config_type为string类型时,成员val保存值。 flags是参数标志。比如是全局有效,还是只针对指定端口。 2.5 config.opts opts是struct option数组。他用于调用getopt_long()函数,从命令行选项获取参数。 参数解析getopt_long() 3 clock clock定义时钟节点。
switch(type){ caseCLOCK_TYPE_ORDINARY: if(cfg->n_interfaces>1){ type=CLOCK_TYPE_BOUNDARY; } break; caseCLOCK_TYPE_BOUNDARY: if(cfg->n_interfaces<2){ fprintf(stderr,"BC needs at least two interfaces\n"); gotoout; } break; caseCLOCK_TYPE_P2P: ...
("Unsupported fault interval type %d", i.type); return -1; } static void clock_freq_est_reset(struct clock *c) { c->fest.origin1 = tmv_zero(); c->fest.ingress1 = tmv_zero(); c->fest.count = 0; } static void clock_management_send_error(struct port *p, struct ptp_message *...
PTP IEEE 1588 stack for Linux. Contribute to nxp-archive/openil_linuxptp development by creating an account on GitHub.