- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 IMX6ULL平台采集usb摄像头显示
#include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <fcntl.h> #include <stdlib.h> #include <unistd.h> #include <linux/videodev2.h> #include <string.h>
2022-05-15 10:17:34 521
原创 container_of的用法
container_of(ptr,type,member) 已知结构体type的成员member的地址ptr,求解结构体type的起始地址。 int main(int argc, char *argv[]) { struct test{ int num; char ch; }t1={100,'c'}; char *pch=&t1.ch; struct test *ptt=container_of(pch,struct test,ch...
2022-05-15 09:44:45 111 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人