ENDRUN(4)
π ENDRUN(4) π
okay so bestie, welcome to the ENDRUN(4) page from the Kernel Interfaces Manual β it's all about the EndRun Technologies native time-of-day message timedelta sensor, and we're gonna make it make sense. β¨
πΈ NAME πΈ
endrun β the EndRun Technologies native time-of-day message timedelta sensor. literally the whole main-character job of this thing.
π¦ SYNOPSIS π¦
pseudo-device endrun [count]
π DESCRIPTION π
so this line discipline? it's the social butterfly that interfaces serial EndRun Technologies devices. no cap. π«Ά
the line discipline is enabled by this exact sequence:
#include <sys/ioctl.h>
int ldisc = ENDRUNDISC, fildes; ...
ioctl(fildes, TIOCSETD, &ldisc);
the byte stream is unaltered by the line discipline β she does not touch the data, she just minds her business and maintains a timedelta sensor using the EndRun data. the timedelta sensor will appear as endrun* in the list of sensors, and the delta (in nanoseconds) between the received time information and the local time can be accessed through the sysctl(8) interface. iykyk. π
β SENSOR STATES β
the quality of the timedelta is reported as the sensor status, and here's the vibe check:
- OK β the time information is valid. the timedelta is safe to use for applications like
ntpd(8). slay. β - WARN β the attached receiver has been indicating a warning condition for at least the last ten minutes. the timedelta should be used with care. lowkey be careful bestie. β οΈ
- CRITICAL β
ttytimestamping has been turned on but there is no PPS signal present, or the receiver indicated a warning condition for at least the last twenty minutes. check your hardware. like fr fr check it. π¨
and there's a second sensor whose status is used to report the status of the device itself using the Time Figure Of Merit (TFOM) character:
- OK β the clock is synchronized. TFOM is 6-8. iconic. π
- WARN β the clock is synchronized and the time error is greater than 10ms, or the clock is in the unsynchronized state. TFOM is 9. π¬
- CRITICAL β the TFOM is invalid. π
π SEE ALSO π
π HISTORY π
the endrun interface first appeared in OpenBSD 4.6. periodt. π
xoxo, this page is from Debian, dated January 15, 2015, and it's ENDRUN(4) β bye bestie! π
β¨
π¦ where this page comes from
- nixpkgs unstable: cvs-export
- Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
- Copyright (c) 2009 Kevin Steves <stevesk@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms