Hi,
Since user applications can use ioctl to control driver, I am wondering if I
can use ioctl to get status of driver? I want to check status of mii, pci or
ethernet driver, so, I want to use something like:
char tempBuf[1000];
......
fd = fopen("/dev/myDriver",O_RDWR);
ioctl(fd, GET_MII_STATUS,tempBuf);
printf(tempBuf);
.......
But doesn't work. Nothing printed. Where is the problem? Must I use kstate
instead?
Wendy
This message posted from opensolaris.org
_______________________________________________
networking-discuss mailing list
[email protected]