PTP_GET_COMPENSATION

Get the current PTP compensation value

Synopsis

#include <io-sock/ptp.h>

#define PTP_GET_COMPENSATION	0x105

Arguments to ioctl():

ArgumentValue
fdFile descriptor obtained by opening the device
requestSIOCGDRVSPEC
Additional argumentA 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., en0
  • ifd_cmd: PTP_GET_COMPENSATION
  • ifd_len: The size of a ptp_comp structure
  • ifd_data: A pointer to a ptp_comp structure

Output

The ptp_comp structure pointed to by ifd_data is filled in with the current compensation value.

Page updated: