Re: Problem reading file with O_DIRECT

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

 



Hi Manisha...

> I am having problem reading file if  the file is opened with O_DIERCT
> flag.The error given by read system call is 'Bad Address'.

Not an expert in I/O, but perhaps you need to use vmalloc() instead of 
kmalloc()/alloc_pages()? it's only my guess that there is a chance what 
you need is a block of memory that is physically contigous, not 
virtually contigous.

regards,

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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