文件名称:block
介绍说明--下载内容均来自于网络,请自行研究使用
linux中断驱动程序的实现,我搞了很长时间爱你才搞出来-struct my_pipe
{
wait_queue_head_t inq,outq /* read and write queues*/
char*buffer,*end /* begin of buf,end of buf*/
int buffersize /* used in pointer arithmetic*/
char*rp,*wp /* where to read,where to write*/
int nreaders,nwriters /* number of openings for r/w*/
struct semaphore sem /* mutual exclusion semaphore*/
struct cdev cdev /* Char device structure*/
}
{
wait_queue_head_t inq,outq /* read and write queues*/
char*buffer,*end /* begin of buf,end of buf*/
int buffersize /* used in pointer arithmetic*/
char*rp,*wp /* where to read,where to write*/
int nreaders,nwriters /* number of openings for r/w*/
struct semaphore sem /* mutual exclusion semaphore*/
struct cdev cdev /* Char device structure*/
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
block.c