⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 read_simple_device.c

📁 fsmlabs的real time linux的内核
💻 C
字号:
#include <stdio.h>#include <fcntl.h>#include "device_common.h"main(){	int fd,n;	char data[16];	if((fd=open(SIMPLE_DEV, O_RDWR|O_SYNC))<0)	{		perror("open");		exit(-1);	}	/* just read to trigger the read-fops */	n = read(fd, &data, sizeof(data));	return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -