ptp_ioctl()
Process SIOCGDRVSPEC
and SIOCSDRVSPEC
I/O-control commands to service ptp_()* commands
Synopsis:
#include <qnx/ptp/ptp_mod.h>
int ptp_ioctl(struct ptp_ctx *ctx,
struct ifdrv *ifd)
Arguments:
- ctx
- The driver's PTP context.
- ifd
- The
ifdrv
command structure forSIOCGDRVSPEC
orSIOCSDRVSPEC
.
Library:
ptpDescription:
Handles the copy to or from the ifdrv
command. Calls to PTP_READ_TIME() and PTP_WRITE_TIME() are locked with a mutex; calls to PTP_WRITE_COMP() and PTP_READ_COMP() are not.
Returns:
EOK on success; otherwise, one of the following:
- EINVAL - For PTP_SET_TIME(), the members of the
ptp_time
structure are not within the bounds: nsec value >= 1E9 or sec < 0. - EOPNOTSUPP - Unknown command received.
Page updated: