PTP_SET_COMPENSATION

Set the current PTP compensation value

Synopsis

#include <io-sock/ptp.h>

#define PTP_SET_COMPENSATION	0x104

Arguments to ioctl():

ArgumentValue
fdFile descriptor obtained by opening the device
requestSIOCSDRVSPEC
Additional argumentA 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., en0
  • ifd_cmd: PTP_SET_COMPENSATION
  • ifd_len: The size of a ptp_comp
  • ifd_data: A pointer to a ptp_comp structure that contains the compensation value to set

Output

None.

Page updated: