David, I've been thinking about this. There is a possibility.
1) (Implemented for my standalone tamarack scan-driver). A -buf option
that allows the user to select the buffer size to be used at runtime.
(I've got a "decent" kernel right now, but the last half year I've been
running a kernel without the increased buffer size, and had to pass the
-buf 32000 every time... ;-)
2) (not implemented yet) Simply try with a large buffer, and if you
get "ENOMEM", reduce the buffer size automatically.
Roger.
P.S. "large buffer" in my kernel means 1Mb.
-- If it's there and you can see it, it's REAL |___R.E.Wolff@BitWizard.nl | If it's there and you can't see it, it's TRANSPARENT | Tel: +31-15-2137555 | If it's not there and you can see it, it's VIRTUAL |__FAX:_+31-15-2138217 | If it's not there and you can't see it, it's GONE! -- Roy Wilks, 1983 |_____|
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com