kopia lustrzana https://gitlab.com/sane-project/website
69 wiersze
3.5 KiB
HTML
69 wiersze
3.5 KiB
HTML
<!-- received="Wed Jan 20 23:01:38 1999 PST" -->
|
||
<!-- sent="Wed, 20 Jan 1999 23:02:29 -0800 (PST)" -->
|
||
<!-- name="Gerald Turner" -->
|
||
<!-- email="gturner@retina.net" -->
|
||
<!-- subject="SG_BIG_BUFF woes on Linux" -->
|
||
<!-- id="" -->
|
||
<!-- inreplyto="" -->
|
||
<title>sane-devel: SG_BIG_BUFF woes on Linux</title>
|
||
<h1>SG_BIG_BUFF woes on Linux</h1>
|
||
<b>Gerald Turner</b> (<a href="mailto:gturner@retina.net"><i>gturner@retina.net</i></a>)<br>
|
||
<i>Wed, 20 Jan 1999 23:02:29 -0800 (PST)</i>
|
||
<p>
|
||
<ul>
|
||
<li> <b>Messages sorted by:</b> <a href="date.html#177">[ date ]</a><a href="index.html#177">[ thread ]</a><a href="subject.html#177">[ subject ]</a><a href="author.html#177">[ author ]</a>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0178.html">Mentore #cat# Siesto: "Re: OS/2 and Sane"</a>
|
||
<li> <b>Previous message:</b> <a href="0176.html">Bill Thorson: "UMAX Astra 1200s scanning problems. (FIXED!!!)"</a>
|
||
<!-- nextthread="start" -->
|
||
<li> <b>Next in thread:</b> <a href="0185.html">Petter Reinholdtsen: "Re: SG_BIG_BUFF woes on Linux"</a>
|
||
<li> <b>Reply:</b> <a href="0185.html">Petter Reinholdtsen: "Re: SG_BIG_BUFF woes on Linux"</a>
|
||
<li> <b>Reply:</b> <a href="0215.html">Petter Reinholdtsen: "Re: SG_BIG_BUFF woes on Linux"</a>
|
||
<li> <b>Reply:</b> <a href="0225.html">Petter Reinholdtsen: "Re: SG_BIG_BUFF woes on Linux"</a>
|
||
<!-- reply="end" -->
|
||
</ul>
|
||
<!-- body="start" -->
|
||
I really love sane, thank you developers for such a wonderful program. I<br>
|
||
have one gripe with it though, with Linux, sanei_scsi.c is dependent on<br>
|
||
the kernel headers scsi/sg.h #define SG_BIG_BUFF. This works but a better<br>
|
||
implementation would be to use sysctl() to get the value of sg-big-buff at<br>
|
||
runtime, better yet fread() /proc/sys/kernel/sg-big-buff. The reason for<br>
|
||
this is it would make it much easier to distribute binaries (Debian, Red<br>
|
||
Hat, etc.), anyone who has modified the kernels default SG_BIG_BUFF will<br>
|
||
have to compile sane themselves instead of using the binary - with some<br>
|
||
trouble too - Debian (and Red Hat too, I beleive) includes kernel headers<br>
|
||
in their libc package, so /usr/include/scsi/sg.h is not the same as the<br>
|
||
local modified kernel headers (got that?).<br>
|
||
<p>
|
||
I tried to modify sanei_scsi.c myself to use /proc/sys/kernel/sg-big-buff<br>
|
||
rather than SG_BIG_BUFF, in hopes to make a patch. But, it is used to<br>
|
||
make a static array (u_int8_t data[SG_BIG_BUFF]), and cannot be easily<br>
|
||
made into a dynamic array (at least for me it is not easy).<br>
|
||
<p>
|
||
Anyone have any thoughts on this?<br>
|
||
<p>
|
||
Thank you,<br>
|
||
Gerald Turner<br>
|
||
<a href="http://www.retina.net/~gturner/">http://www.retina.net/~gturner/</a><br>
|
||
<p>
|
||
<p>
|
||
<p>
|
||
<pre>
|
||
--
|
||
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
|
||
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
|
||
</pre>
|
||
<!-- body="end" -->
|
||
<p>
|
||
<ul>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0178.html">Mentore #cat# Siesto: "Re: OS/2 and Sane"</a>
|
||
<li> <b>Previous message:</b> <a href="0176.html">Bill Thorson: "UMAX Astra 1200s scanning problems. (FIXED!!!)"</a>
|
||
<!-- nextthread="start" -->
|
||
<li> <b>Next in thread:</b> <a href="0185.html">Petter Reinholdtsen: "Re: SG_BIG_BUFF woes on Linux"</a>
|
||
<li> <b>Reply:</b> <a href="0185.html">Petter Reinholdtsen: "Re: SG_BIG_BUFF woes on Linux"</a>
|
||
<li> <b>Reply:</b> <a href="0215.html">Petter Reinholdtsen: "Re: SG_BIG_BUFF woes on Linux"</a>
|
||
<li> <b>Reply:</b> <a href="0225.html">Petter Reinholdtsen: "Re: SG_BIG_BUFF woes on Linux"</a>
|
||
<!-- reply="end" -->
|
||
</ul>
|