devc-ser8250 like resource manager


I would like to write a device manager similiar to devc-ser8250.
(utilities like cat, hd, … should work with it). I started with
simple example from help, I did my io_read function,
but those mentioned utilities did’t work as expected.

hd was returning error message (sth like: can’t skip past
end of combined message).

Probably I am not setting attr.nbytes or ocb->offset values right.

Does anybody have any pointers, source code, … that he could share?

Thank you very much.

Pavol Kycina