PTP_SET_COMPENSATION
Set the current PTP compensation value
Synopsis
#include <io-sock/ptp.h> #define PTP_SET_COMPENSATION 0x104
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 compensation value (from a
ptp_comp) for the PTP module.
Input
A filled-in ifdrv structure, 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_COMPENSATIONifd_len: The size of aptp_compifd_data: A pointer to aptp_compstructure that contains the compensation value to set
Output
None.
Page updated:
