Contents

ifnet_ioctl_func

Declaration

typedef errno_t (*ifnet_ioctl_func)(ifnet_t interface, unsigned long cmd, void *data);

Parameters

  • interface:

    The interface the ioctl is being sent to.

  • proto_family:

    The protocol family to handle the ioctl, may be zero for no protocol_family.

  • cmd:

    The ioctl command.

  • data:

    A pointer to any data related to the ioctl.

Discussion

ifnet_ioctl_func is used to communicate ioctls from the stack to the driver.

All undefined ioctls are reserved for future use by Apple. If you need to communicate with your kext using an ioctl, please use SIOCSIFKPI and SIOCGIFKPI.

See Also

ifnet