aio_read() in character driver is not getting calls when making aio_read system call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
Hi,
 
I am adding aio_read and aio_write hooks to my character driver.
 
When I make aio_read() system call, for some reason instead of dbg_aio_read(), kernel is calling the syncronous dbg_read() function.
 
Here is the application level code for opening the file:
 
fd = open("/dev/debug_driver", O_RDONLY );
 
Below is the file_operations structure:
static struct file_operations debug_fops = {
.owner = THIS_MODULE,
.aio_read = dbg_aio_read,
.read = dbg_read,
.ioctl = dbg_ioctl,
.open = dbg_open,
.release = dbg_release,
};
 
What additional thing I need to do so that my char driver aio_read is called when application calls aio_read() system call?
Interestingly same code is working if i open a normal text file.
 
Regards,
Parav Pandit


Want to start your own business? Learn how on Yahoo! Small Business.

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux