2008-07-31 14:26:17     Character driver doubts

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

2008-07-31 14:26:17     Character driver doubts

Appalayagari Sreedhar (INDIA)

Message: 59705   

 

Hi,

 

In the charater driver, if we pass more than one or two bytes for read or write, does this cause any problems,

what problems we could face?.

 

do we need to call  from the user space byte or 2 bytes for processing the entire data.

 

Can someone clear me the disadvantages of processing more number of bytes in character driver( read or write)

 

Best Regards,Sreedhar.

 

 

QuoteReplyEditDelete

 

 

2008-07-31 22:42:19     Re: Character driver doubts

Mike Frysinger (UNITED STATES)

Message: 59711   

 

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

 

clearly passing the entire buffer to process at once is going to incur less overhead than passing everything 1 byte at a time

Attachments

    Outcomes