PTP_SET_TIME
Set the current PTP time
Synopsis
#include <io-sock/ptp.h> #define PTP_SET_TIME 0x103
Arguments to ioctl():
| Argument | Value |
|---|---|
| fd | File descriptor obtained by opening the device |
| request | SIOCSDRVSPEC |
| Additional argument | A pointer to an ifdrv |
Description
This command sets the current time as calculated by the PTP module.
Input
A filled-in ifdrv, defined in net/if.h.
struct ifdrv {
char ifd_name[IFNAMSIZ];
unsigned long ifd_cmd;
size_t ifd_len;
void *ifd_data;
};Fill in each member using the following information:
ifd_name: The interface name; e.g.,en0ifd_cmd:PTP_SET_TIMEifd_len: The size of aptp_timestructureifd_data: A pointer to aptp_timestructure that contains the time to set
Output
None.
Page updated:
