Category: linux driver

Asynchronous IO + asynchronous notification 0

Asynchronous IO + asynchronous notification

Hits: 0Linux Kernel Notes (4) Advanced I/O Operations (2) Analyze the first code: Line 50 of the code struct aiocb aiow, aior; defines two asynchronous I/O control blocks for reading and writing, respectively Lines...

Advanced IO Operations – Positioning Operations 0

Advanced IO Operations – Positioning Operations

Hits: 0positioning operation Driver code: /* vfb.c */ #include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/fs.h> #include <linux/mm.h> #include <linux/cdev.h> #include <linux/uaccess.h> #define VFB_MAJOR 256 #define VFB_MINOR 1 #define VFB_DEV_CNT 1 #define VFB_DEV_NAME "vfbdev"...