ChinaUnix.net
相关文章推荐:

android ioctl hdmi

咱们是不是应该开个android :mrgreen: :mrgreen: :mrgreen: 看着太好玩了。 [ 本帖最后由 小把戏 于 2008-9-29 21:55 编辑 ]

by 小把戏 - 站务交流 - 2008-12-29 20:31:52 阅读(2612) 回复(5)

相关讨论

在solaris下编译的时候ioctl(sock, SIOCGIFFLAGS, &ifr) 报`SIOCGIFFLAGS' undeclared错误,怎么不认识呢,

by yyjjss - C/C++ - 2006-10-13 16:33:02 阅读(1455) 回复(4)

已经有一个摄像头驱动,为了增加功能,准备用ioctl实现。 驱动里,fcap_ioctl函数用switch 根据cmd 来调用相应的功能实现函数。在应用软件里,用ioctl(fd,cmd,...)来调用。 在头文件 linux/videodev.h里,增加cmd的定义,用的是#define cmd ('v',30,struct ...) cmd是自己定义的命令表示 但是编译的时候就是报在应用软件程序里,cmd未定义。。。。。。。 刚接触Linux驱动,请各位大侠指教

by dida_327 - 内核/嵌入技术 - 2006-07-03 14:08:57 阅读(859) 回复(1)

ioctl在root用户下运行正常,但在其他的一般用户下运行则出错. 有什么办法解决?

by zhyustar - C/C++ - 2006-06-27 21:53:52 阅读(868) 回复(2)

Sorry that I can not input Chinese at this machine!! I wanna get the pid name by calling ioctl function using PIOCPSINFO Sign!But this symbol cannot find it! I search my /usr/include directory by greping "PIOCPSINFO" but I cannot find this kind of define! my machine is Redhat 9.0 and my kernel is 2.4.20-8 Is that because redhat9 delete this defination? Any helps are very appreciated! :P

by jupiters - Linux论坛 - 2004-05-28 09:59:24 阅读(596) 回复(1)

请问 ioctl() 的 request 参数究竟支持哪些选项?那位大哥若知道请给一个具体的列表,一个链接也可以,谢了

by redice - C/C++ - 2003-05-31 17:13:52 阅读(1215) 回复(6)

[背景] 使用ifconfig可以得到网络接口eth0的ip,广播地址,掩码地址,MTU,RX packets,TX packets,RX bytes,TX bytes。 我用octl函数可以取得接口eth0的ip,广播地址,掩码地址,MTU。 [问题] 现在我想用iotcl函数取得RX packets,TX packets,RX bytes,TX bytes这四个选项的值,请问要如何操作,要使用什么命令(cmd),请各位达人指点。

by 沙花 - C/C++ - 2009-09-01 21:02:12 阅读(1552) 回复(6)

我看到一段代码 ret=ioctl(sd, SIOCINQ, &len); 中的SIOCINQ代表什么意思啊? 我在头文件中找到SIOCINQ宏的定义为0x541B,这0x541B又代表什么呢

by wcandwaste - C/C++ - 2009-05-13 14:55:02 阅读(1466) 回复(0)

想设置网卡为混杂模式,代码如下: struct strioctl siotcl; siotcl.ic_cmd = MACIOC(11); siotcl.ic_timout = 0; siotcl.ic_len = 0; siotcl.ic_dp = NULL; // siotcl.ic_cmd = mibufed; fd = open("/dev/mdi/e3A0",O_RDWR); res = ioctl(fd,I_STR,&siotcl); if(res == -1) { perror("ioctl failed"); } else { printf("ioctl success\n"); } 但是运行后总出现错误,错误如下: ioctl failed...

by sufei7099 - 其他UNIX - 2008-06-18 11:38:02 阅读(2263) 回复(5)

想在ARM下读写给定的IO, IO地址和要写的数据通过结构体 struct IO_Data { unsigned int Offset; unsigned int Data; }; 给出。 下面是一段程序 if((descriptor=open("/dev/ARM_bus",O_RDWR))<0) { perror("ERROR open: "); exit(EXIT_FAILURE); } //printf("%#x\n", Address_receive); ioval.Offset = Address_receive; ioval.Data = Data_receive; ioctl(descriptor,ioctl_WRITE,&iova...

by gaowei0525 - C/C++ - 2008-05-21 02:39:05 阅读(1216) 回复(3)

#include #include #include #include #include #include #include #include #include #include #include ioctl.h> #include void die(char *why, int n) { perror(why); exit(n); } int main(void) { struct sockaddr_in *addr; int sockfd; struct if...

by xiangyu1986 - BSD - 2008-05-05 17:03:29 阅读(3986) 回复(14)