PTP_GET_COMPENSATION
Get the current PTP compensation value
Synopsis
#include <io-sock/ptp.h> #define PTP_GET_COMPENSATION 0x105
Arguments to ioctl():
| Argument | Value |
|---|---|
| fd | File descriptor obtained by opening the device |
| request | SIOCGDRVSPEC |
| Additional argument | A pointer to an ifdrv |
Description
This command gets 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_GET_COMPENSATIONifd_len: The size of aptp_compstructureifd_data: A pointer to aptp_compstructure
Output
The ptp_comp structure pointed to by ifd_data is filled in with the current compensation value.
Page updated:
