This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

non blocking serial read returns EAGAIN


Hi everyone,

Would like to have your idea on the following:

	. cyg_io_read on a serial port, previously set to non
blocking returns EAGAIN if less than buffer's len has
been read.

	. This  breaks the following situation:
	1. set to non blocking the serial port
	2. call select on the port, wait for data.
	3. on return of select, call read to take the data
out.
	4. let's say there's less data than buffer's len, the
dev_fo_read returns error even before setting read len
to the uio, and read returns -1, always, even when
data has been read...

My question is:
	. why would cyg_io_read return error in this case?

Thanks for your idea.

Phungte

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]