Re: How to do DIRECT IO on kernel buffer

2010-10-19 Thread Rajat Sharma
Hi Greg, Then if userspace opens a file with O_DIRECT but the file is on a filesytem that can't support full O_DIRECT functionality for the reasons you give, the kernel could automatically fall back to O_DIRECT_NO_CACHE. The solution you are proposing is definitely a good idea, but its not

Re: the speed of file read write on USB

2010-10-19 Thread loody
hi: 2010/10/12 Greg Freemyer greg.freem...@gmail.com: On Tue, Oct 12, 2010 at 10:48 AM, loody milo...@gmail.com wrote: hi: thanks for your kind reply :) 2010/10/12 Greg Freemyer greg.freem...@gmail.com: On Sun, Oct 10, 2010 at 2:08 PM, loody milo...@gmail.com wrote:  Dear all: I am so

changing the fle operations

2010-10-19 Thread mohit verma
hi all, every file have the filesystem specific functions attached with it f_ops. Is it possible that:: for our module having opened a file say A has a customized set of operations (initialized in my module) for the time the file remains in RAM (dcache) and in the fdtable of my module and when

Re: Learning hardware ...

2010-10-19 Thread Abu Rasheda
Subject: Re: Learning hardware ... To: rcpilot2...@gmail.com Cc: Linux Kernel List kernelnewbies@nl.linux.org Date: Sunday, October 17, 2010, 11:59 PM Thanks to all those who replied to my question. To answer some of the queries in the replies. I am a software guy, who feel quite confident in

Re: Learning hardware ...

2010-10-19 Thread Victor Rodriguez
On Tue, Oct 19, 2010 at 11:35 AM, Abu Rasheda rcpilot2...@gmail.com wrote: Subject: Re: Learning hardware ... To: rcpilot2...@gmail.com Cc: Linux Kernel List kernelnewbies@nl.linux.org Date: Sunday, October 17, 2010, 11:59 PM Thanks to all those who replied to my question. To answer some

Re: Learning hardware ...

2010-10-19 Thread StephanT
... read some text book etc before this to have correct context ? This is a learning challenge -sorry, I cannot provide a magic recipe. Here is how I tackle such situations: - Start by writing down a list of your H/W knowledge holes and begin working it one item at a time. - Get some

cond_resched

2010-10-19 Thread moussa ba
I see a lot of drivers and filesystems using cond_resched. I understand that this is for voluntary preemption and that this helps interactive performance. Can someone shed a bit of light on why that is the case and more importantly, how and where do you decide to call cond_resched (or

Re: Learning hardware ...

2010-10-19 Thread Abu Rasheda
Get some related documentation and start reading I am ready to spend time and money. Any suggestions what can I read ? At this point I am looking for something which will lay foundation in general for a software guy, who needs to understand hardware in order to write efficient code, etc. You

Re: Learning hardware ...

2010-10-19 Thread StephanT
Any suggestions what can I read ? Is your list ready ?:o) 1. User Guide - Data Sheet 2. Application Notes 3. Code examples 4. Use Wikipedia to get quick answers and directions. I assume you have the basics (from what I already know about you). So, unless you have a very good

Re: Learning hardware ...

2010-10-19 Thread Victor Rodriguez
On Tue, Oct 19, 2010 at 1:14 PM, Abu Rasheda rcpilot2...@gmail.com wrote: Get some related documentation and start reading I am ready to spend time and money. Any suggestions what can I read ? At this point I am looking for something which will lay foundation in general for a software guy,

Re: cond_resched

2010-10-19 Thread Mulyadi Santosa
Hi On Wed, Oct 20, 2010 at 01:30, moussa ba mus...@gmail.com wrote: I see a lot of drivers and filesystems using cond_resched. I understand that this is for voluntary preemption and that this helps interactive performance.  Can someone shed a bit of light on why that is the case and more

Re: Learning hardware ...

2010-10-19 Thread Abu Rasheda
Any suggestions what can I read ? Is your list ready ?        :o) 1. User Guide - Data Sheet 2. Application Notes 3. Code examples 4. Use Wikipedia to get quick answers and directions. Thanks for your suggestions. This is something I can start with. Victor, I am going to checkout

Re: Learning hardware ...

2010-10-19 Thread Greg Freemyer
On Tue, Oct 19, 2010 at 3:16 PM, StephanT stman937-linew...@yahoo.com wrote: Any suggestions what can I read ? Is your list ready ?        :o) 1. User Guide - Data Sheet 2. Application Notes 3. Code examples 4. Use Wikipedia to get quick answers and directions. I assume you have the