Mahesh wrote:
Hi all,
I have implemented a simple GLDV3 driver for our own NIC card and i have
provided a Driver private ioctl to flash the firmware. Now i would like to
write a utility which will parse the firmware image and issue an ioctl to
the driver to write it to the Card.Could you please let me know how
to issue the ioctl programatically to the GLDV3 driver.
You fill in a pointer to your ioctl handler in your mac_callbacks_t.
See uts/common/io/ixgbe/ixgbe_gld.c for an example of an ioctl
routine.
Be warned that in the recent (1 year?) past, ioctls started being
run from a different thread context, so copyin/copyout no longer
works from an ioctl context in a GLDv3 driver.
Drew
_______________________________________________
networking-discuss mailing list
[email protected]