2008-07-31 14:16:44     How to remove blcoking function in kernel

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-07-31 14:16:44     How to remove blcoking function in kernel

Appalayagari Sreedhar (INDIA)

Message: 59704   

 

Hi,

 

I am writing a flash driver, in that i am having  a blocking function to check the status bits whether the erase or write functions are success or not.

 

It is a bad idea to block in the kernel,  I want to resolve this problem by inserting some delay, I could see it is not functioning properly.

 

If i try sleep in the kernel will that helps, i need to insert sleep for some micro seconds. if sleep helps, where i can find the usleep function.

 

what else i can do for solving this problem.

 

Best Regards,Sreedhar

QuoteReplyEditDelete

 

 

2008-07-31 22:41:29     Re: How to remove blcoking function in kernel

Mike Frysinger (UNITED STATES)

Message: 59710   

 

please obtain and read the Linux Device Drivers book.  it covers topics like this and a lot more, and it is free.

 

http://docs.blackfin.uclinux.org/doku.php?id=references_and_pointers

Attachments

    Outcomes