mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:35:06 -05:00
refclock_phc: support ethernet ifname as specifier
This commit allows the user to select a PHC refclock associated with an Ethernet interface by specifying the interface name. This allows the user to handle situations where multiple NICs are exposing PHC devices (or non-NIC PHC device files exist in the system) in a more streamline manner.
This commit is contained in:
committed by
Miroslav Lichvar
parent
81362fa201
commit
6e541afbe9
@@ -39,7 +39,7 @@ extern void SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext conte
|
||||
|
||||
extern int SYS_Linux_CheckKernelVersion(int req_major, int req_minor);
|
||||
|
||||
extern int SYS_Linux_OpenPHC(const char *path, int phc_index);
|
||||
extern int SYS_Linux_OpenPHC(const char *device);
|
||||
|
||||
extern int SYS_Linux_GetPHCReadings(int fd, int nocrossts, int *reading_mode, int max_readings,
|
||||
struct timespec tss[][3]);
|
||||
|
||||
Reference in New Issue
Block a user