Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/facebook/time
/ functions
Functions
3,016 in github.com/facebook/time
⨍
Functions
3,016
◇
Types & classes
540
↓ 8 callers
Function
Encode1033
Encode1033 generates a complete RTCM 1033 frame (header + payload + CRC).
rtcm/encode.go:34
↓ 8 callers
Method
Expired
Expired checks if the subscription expired or not
ptp/ptp4u/server/subscription.go:141
↓ 8 callers
Method
Fd
Fd returns the underlying file descriptor
phc/device.go:41
↓ 8 callers
Method
Full
()
ptp/sptp/client/window.go:99
↓ 8 callers
Function
IfaceToPHCDevice
IfaceToPHCDevice returns path to PHC device associated with given network card iface
phc/phc.go:55
↓ 8 callers
Method
IncRXSignalingGrant
IncRXSignalingGrant atomically add 1 to the counter
ptp/ptp4u/stats/json.go:116
↓ 8 callers
Method
IncTX
IncTX atomically add 1 to the counter
ptp/ptp4u/stats/stats.go:52
↓ 8 callers
Function
NewBitWriter
NewBitWriter creates a BitWriter with the given initial capacity in bytes.
rtcm/bits.go:73
↓ 8 callers
Function
NewEphCollector
NewEphCollector creates an empty GPS ephemeris collector.
rtcm/ephemeris.go:33
↓ 8 callers
Function
NewMockUDPConn
NewMockUDPConn creates a new mock instance.
ptp/linearizability/udpconn_mock_test.go:43
↓ 8 callers
Function
NewMockUDPConnWithTS
NewMockUDPConnWithTS creates a new mock instance.
ptp/linearizability/udpconn_mock_test.go:111
↓ 8 callers
Function
NewNTPSourceNamePacket
NewNTPSourceNamePacket creates new packet to request 'source name' information for given peer IP
ntp/chrony/packet.go:1072
↓ 8 callers
Function
NewNTPStats
NewNTPStats constructs NTPStats from NTPCheckResult
cmd/ntpcheck/checker/stats.go:97
↓ 8 callers
Function
NewOSSFW
NewOSSFW returns initialized version of OSSFW
calnex/firmware/ossfirmware.go:35
↓ 8 callers
Function
ParseTORReader
ParseTORReader parses a Luciol OTDR .tor text file from a reader
caliper/tor.go:79
↓ 8 callers
Method
ReadSysoffExtended
ReadSysoffExtended reads the precise time from the PHC along with SYS time to measure the call delay. The nsamples parameter is set to ExtendedNumProb
phc/device.go:58
↓ 8 callers
Method
ReadSysoffPrecise
ReadSysoffPrecise reads the precise time from the PHC along with SYS time to measure the call delay.
phc/device.go:81
↓ 8 callers
Function
RunPTP4L
RunPTP4L will talk over conn and return PTPCheckResult
cmd/ptpcheck/checker/ptp4l.go:84
↓ 8 callers
Method
Sample
(offset int64, localTs uint64)
ptp/sptp/client/sptp.go:41
↓ 8 callers
Function
SealAuthenticator
SealAuthenticator encrypts plaintext under the given AEAD, authenticating ad as associated data, and returns the result as an NTS Authenticator extens
ntp/protocol/nts/authenticator.go:149
↓ 8 callers
Method
SetLastFreq
(float64)
ptp/sptp/client/sptp.go:43
↓ 8 callers
Method
Skip
Skip advances the position by n bits.
rtcm/bits.go:62
↓ 8 callers
Method
Step
(step time.Duration)
ptp/sptp/client/clock.go:33
↓ 8 callers
Method
Stop
Stop will stop announcement, delete IPs from interfaces
ntp/responder/server/server.go:140
↓ 8 callers
Function
SysoffFromPrecise
SysoffFromPrecise returns SysoffResult from *PTPSysOffsetPrecise . Code based on sysoff_precise from ptp4l sysoff.c
phc/offset.go:64
↓ 8 callers
Function
ToBuffer
ToBuffer converts an INI file to a bytes.Buffer
calnex/api/ini.go:26
↓ 8 callers
Method
ToNetIP
ToNetIP returns the underlying net.IP for resolved addresses. Returns nil for unresolved addresses (IPAddrID family) or unspecified addresses.
ntp/chrony/helpers.go:63
↓ 8 callers
Method
Type
Type returns the type of the last scanned message.
rtcm/mixed_scanner.go:174
↓ 8 callers
Function
calcCoeffPPB
calcCoeffPPB computes the PHC-vs-sysclock rate ratio in PPB between the prev and cur snapshots of a single anchor section.
fbclock/daemon/daemon.go:543
↓ 8 callers
Function
checkIP
checkIP checks if IP is assigned to the interface already
ntp/responder/server/ip.go:73
↓ 8 callers
Method
dec
dec decrements the counter for the given key
ptp/ptp4u/stats/stats.go:202
↓ 8 callers
Function
fbclock_apply_smear
fbclock/fbclock.c:632
↓ 8 callers
Method
findWorker
(clientID ptp.PortIdentity, offset uint64)
ptp/ptp4u/server/server.go:488
↓ 8 callers
Method
get
(path string)
calnex/api/api.go:939
↓ 8 callers
Function
getHostIfPrefix
getHostIfPrefix has ip as input and returns device interface without suffix
cmd/ziffy/node/print.go:64
↓ 8 callers
Function
getHostNoPrefix
getHostNoPrefix has ip as input and returns device hostname without interface prefix
cmd/ziffy/node/print.go:55
↓ 8 callers
Method
inventoryClients
()
ptp/ptp4u/server/worker.go:399
↓ 8 callers
Function
ioctlPtr
(fd int, req uint, arg unsafe.Pointer)
phc/unix/linux.go:208
↓ 8 callers
Function
newMeasurements
(server netip.Addr, cfg *MeasurementConfig)
ptp/sptp/client/measurements.go:247
↓ 8 callers
Function
newTestAEAD
newTestAEAD returns an AEAD backed by AES-SIV-CMAC-512 for authenticator tests. Delegates to aeadFor defined in aead_test.go to avoid duplicating test
ntp/protocol/nts/authenticator_test.go:34
↓ 8 callers
Function
newTestDaemon
(cfg *Config, stats stats.Server)
fbclock/daemon/daemon_test.go:44
↓ 8 callers
Function
newTestMac
newTestMac wraps a SerialReadWriter for tests without opening a real port.
sa53/protocol/protocol_test.go:118
↓ 8 callers
Function
newTestTester
()
ptp/linearizability/linearizability_ptp_test.go:81
↓ 8 callers
Method
runSingleTest
runSingleTest performs one Tester run and will exit on completion. The run consists of: * sending the Unicast DelayResponse subscription on the receiv
ptp/linearizability/linearizability_ptp.go:479
↓ 8 callers
Method
setPTPPerout
(req *PtpPeroutRequest)
phc/pps_source.go:83
↓ 8 callers
Function
stddev
(input []float64)
fbclock/daemon/math.go:108
↓ 7 callers
Function
BytesTo
BytesTo marshalls packets that support this optimized marshalling into []byte
ptp/protocol/protocol.go:508
↓ 7 callers
Method
Compare
Compare returns an integer comparing two port identities. The result will be 0 if p == q, -1 if p < q, and +1 if p > q. The definition of "less than"
ptp/protocol/types.go:258
↓ 7 callers
Function
DefaultPiServoFilterCfg
DefaultPiServoFilterCfg to create a default pi servo filter config
servo/pi.go:497
↓ 7 callers
Method
Followup
Followup returns ptp Follow Up packet
ptp/ptp4u/server/subscription.go:265
↓ 7 callers
Method
IncFramesReceived
IncFramesReceived increments the received frame counter.
cmd/ntripper/stats/json.go:86
↓ 7 callers
Method
IncReload
IncReload atomically add 1 to the counter
ptp/c4u/stats/json.go:80
↓ 7 callers
Method
Index
Index returns the index of the e if it's already in s. Otherwise -1
ptp/sptp/stats/stats.go:72
↓ 7 callers
Method
Log
(*LogSample)
fbclock/daemon/logging.go:93
↓ 7 callers
Function
LookupNetIP
LookupNetIP returns netip.Addr from addr string, which can be either IP or hostname
ptp/sptp/client/config.go:33
↓ 7 callers
Function
MarshalExtensionFields
MarshalExtensionFields encodes a slice of extension fields into the wire format defined by RFC 7822 §7.5. Each field is padded with zeros to a multipl
ntp/protocol/extension_fields.go:175
↓ 7 callers
Method
MaxFreqAdjPPB
()
phc/pps_source.go:99
↓ 7 callers
Function
NewClient
NewClient initializes sptp client
ptp/sptp/client/client.go:164
↓ 7 callers
Function
NewPiServo
NewPiServo returns a servo.PiServo object configure for synchronizing the given device. maxFreq 0 is equivalent to no maxFreq
phc/pps_source.go:190
↓ 7 callers
Function
NewPiServoFilter
NewPiServoFilter to create new filter instance
servo/pi.go:462
↓ 7 callers
Function
NewSourceStatsPacket
NewSourceStatsPacket creates a new packet to request 'sourcestats' information
ntp/chrony/packet.go:1033
↓ 7 callers
Function
PPSClockSync
PPSClockSync adjusts the frequency of the destination device based on the PPS from the ppsSource
phc/pps_source.go:231
↓ 7 callers
Function
Parse
Parse decodes a buffer of concatenated NTS-KE records (RFC 8915 §4). Bodies are copied out of b so the returned records stay valid if the caller reuse
ntp/ntske/records.go:135
↓ 7 callers
Function
ReadTXtimestamp
ReadTXtimestamp returns HW TX timestamp
timestamp/timestamp_linux.go:403
↓ 7 callers
Method
Remediate
(ctx context.Context)
calnex/verify/checks/check.go:25
↓ 7 callers
Method
Sample
(offset int64, localTs uint64)
phc/pps_source.go:70
↓ 7 callers
Method
SetReadTimeout
(time.Duration)
sa53/protocol/protocol.go:66
↓ 7 callers
Method
SetTickDuration
(tickDuration time.Duration)
ptp/sptp/client/stats.go:35
↓ 7 callers
Function
SockaddrToAddr
SockaddrToAddr converts socket address to a netip.Addr Somewhat copy from https://github.com/golang/go/blob/658b5e66ecbc41a49e6fb5aa63c5d9c804cf305f/s
timestamp/timestamp.go:221
↓ 7 callers
Function
SockaddrToIP
SockaddrToIP converts socket address to an IP Somewhat copy from https://github.com/golang/go/blob/658b5e66ecbc41a49e6fb5aa63c5d9c804cf305f/src/net/ud
timestamp/timestamp.go:209
↓ 7 callers
Method
Stop
Stop stops the subscription
ptp/ptp4u/server/subscription.go:148
↓ 7 callers
Method
String
String returns the IANA-registered name for known NTP extension field types and "Unknown(0xXXXX)" otherwise. See RFC 8915 §5 and the IANA "NTP Extensi
ntp/protocol/extension_fields.go:137
↓ 7 callers
Method
UnmarshalBinary
UnmarshalBinary parses []byte and populates struct fields
ptp/protocol/tlvs.go:439
↓ 7 callers
Method
UnmarshalBinary
UnmarshalBinary parses []byte and populates struct fields
ptp/protocol/management.go:86
↓ 7 callers
Method
UpdateCounterBy
(key string, count int64)
fbclock/stats/stats.go:31
↓ 7 callers
Method
Word
Word encodes PeerStatusWord as uint16 word
ntp/control/packet.go:256
↓ 7 callers
Method
Write
Write implements io.Writer interface
sa53/protocol/protocol.go:352
↓ 7 callers
Method
Write
(b []byte)
sa53/xmodem/xmodem_test.go:30
↓ 7 callers
Method
WriteTo
(b []byte, addr net.Addr)
ptp/linearizability/linearizability_ptp.go:42
↓ 7 callers
Function
bmca
(results map[netip.Addr]*RunResult, prios map[ptp.ClockIdentity]int, cfg *Config)
ptp/sptp/client/bmca.go:27
↓ 7 callers
Method
chSet
chSet modifies a config on several channels
calnex/config/config.go:60
↓ 7 callers
Function
checkErrorOSSFW
(t *testing.T, expectedFilePath string)
calnex/firmware/ossfirmware_test.go:39
↓ 7 callers
Function
checkTLVBufferSize
checkTLVBufferSize checks if the buffer is large enough to marshal a TLV of the given type
ptp/protocol/tlvs.go:54
↓ 7 callers
Function
checkTLVLength
(p *TLVHead, l, want int, strict bool)
ptp/protocol/tlvs.go:79
↓ 7 callers
Function
classifyVendor
classifyVendor determines the vendor from the board.id string.
sa53/detect/detect.go:145
↓ 7 callers
Function
decodeMSM7
decodeMSM7 fully decodes an MSM7 frame by reading every field sequentially in spec order (no hardcoded bit offsets), validating framing and CRC along
rtcm/msm_encode_test.go:43
↓ 7 callers
Function
fbclock_calculate_time_v2
fbclock/fbclock.c:391
↓ 7 callers
Function
getLookUpName
(ip string)
cmd/ziffy/node/lookup.go:23
↓ 7 callers
Function
hopCount
(sw []SwitchPrintInfo, hop int)
cmd/ziffy/node/print.go:221
↓ 7 callers
Function
isHardFailure
returns true if the error is a hard failure
calnex/export/export.go:33
↓ 7 callers
Function
lgamma
lgamma returns log|Gamma(x)| (the sign is always + for the positive arguments used here).
fbclock/daemon/gradualwindow.go:84
↓ 7 callers
Method
logReceive
(t ptp.MessageType, msg string, v ...any)
ptp/simpleclient/client.go:461
↓ 7 callers
Function
newBackoff
(cfg BackoffConfig)
ptp/sptp/client/backoff.go:78
↓ 7 callers
Function
prepareTestClient
(t *testing.T, packets ...ptp.Packet)
cmd/ptpcheck/checker/ptp4l_test.go:375
↓ 7 callers
Method
pushLinearizabilityTestResult
(data linearizability.TestResult)
fbclock/daemon/state.go:140
↓ 7 callers
Function
scanForBanner
scanForBanner reads stdout and stderr concurrently line-by-line, returning as soon as either stream emits a line that matches bannerRegex. kill is inv
gnss/ubx/ubx.go:167
↓ 7 callers
Function
sysoffFromExtendedTS
based on sysoff_estimate from ptp4l sysoff.c
phc/offset.go:48
↓ 7 callers
Function
tlvHeadMarshalBinaryTo
(t *TLVHead, b []byte)
ptp/protocol/tlvs.go:65
↓ 7 callers
Function
unmarshalTLVHeader
(p *TLVHead, b []byte)
ptp/protocol/tlvs.go:70
↓ 6 callers
Method
All
All returns the latest cached RTCM 1019 frame for every satellite with a complete ephemeris, for sending on (re)connect and periodically.
rtcm/ephemeris.go:44
← previous
next →
201–300 of 3,016, ranked by callers