Trap block level read and write request for disk
I have found this driver on sourceforge.org
static int __init init_module( void )
dev = (dev_t)open_by_devnum (MKDEV(HOST_DISK_MAJOR_NUM,HOST_DISK_MINOR_NUM), FMODE_READ|FMODE_WRITE); // It is trying to open the Host disk
blk_queue_make_request (Queue, make_request);
//register the function for I/O request handling
But when i perform I/O's on the disk it doesnt show me read and write request funtion being called.
Is there any way to access the I/O request queue for hard disk.
Please verify my understanding or provide some pointer to sample code doing the same.
thanks in advance