sane-project-website/old-archive/1999-01/0187.html

67 wiersze
3.2 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Thu Jan 21 09:49:41 1999 PST" -->
<!-- sent="Thu, 21 Jan 1999 09:50:25 -0800 (PST)" -->
<!-- name="Gerald Turner" -->
<!-- email="gturner@retina.net" -->
<!-- subject="Re: SG_BIG_BUFF woes on Linux" -->
<!-- id="" -->
<!-- inreplyto="199901211426.PAA15032@zero.cc.uit.no" -->
<title>sane-devel: Re: SG_BIG_BUFF woes on Linux</title>
<h1>Re: 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>Thu, 21 Jan 1999 09:50:25 -0800 (PST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#187">[ date ]</a><a href="index.html#187">[ thread ]</a><a href="subject.html#187">[ subject ]</a><a href="author.html#187">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0188.html">Dirk: "Re: Mustek TwainScan 600 III EP Plus"</a>
<li> <b>Previous message:</b> <a href="0186.html">Oliver Rauch: "Re: UMAX Astra 1200s scanning problems."</a>
<li> <b>In reply to:</b> <a href="0185.html">Petter Reinholdtsen: "Re: SG_BIG_BUFF woes on Linux"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0215.html">Petter Reinholdtsen: "Re: SG_BIG_BUFF woes on Linux"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
On Thu, 21 Jan 1999, Petter Reinholdtsen wrote:<br>
<p>
<i>&gt; [Gerald Turner]</i><br>
<i>&gt; &gt; This works but a better implementation would be to use sysctl() to</i><br>
<i>&gt; &gt; get the value of sg-big-buff at runtime, better yet fread()</i><br>
<i>&gt; &gt; /proc/sys/kernel/sg-big-buff.</i><br>
<i>&gt; </i><br>
<i>&gt; Why do you think that reading this value from /proc is a better</i><br>
<i>&gt; implementation then using sysctl(). The POSIX way would probably be</i><br>
<i>&gt; to use sysconf(), but is there a name for SG_BIG_BUFF defined?</i><br>
<p>
Hmm, I thought I read somewhere in the kernel source that reading /proc<br>
would be better, maybe having something to do with sysctl interface/values<br>
changing. However, I went looking for this and can't seem to find it.<br>
<p>
Excuse me, the suggestion was by mistake. Use sysctl(). I just had a<br>
look through &lt;confname.h&gt;, sysconf() doesn't support anything beyond the<br>
POSIX definitions, no SG_BIG_BUFF.<br>
<p>
Anyway is this doable? I can't be the only one using a distribution and<br>
modifying SG_BIG_BUFF (I do it to also improve cdda audio ripping<br>
performance)...<br>
<p>
Gerald Turner<br>
<a href="http://www.retina.net/~gturner/">http://www.retina.net/~gturner/</a><br>
<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="0188.html">Dirk: "Re: Mustek TwainScan 600 III EP Plus"</a>
<li> <b>Previous message:</b> <a href="0186.html">Oliver Rauch: "Re: UMAX Astra 1200s scanning problems."</a>
<li> <b>In reply to:</b> <a href="0185.html">Petter Reinholdtsen: "Re: SG_BIG_BUFF woes on Linux"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0215.html">Petter Reinholdtsen: "Re: SG_BIG_BUFF woes on Linux"</a>
<!-- reply="end" -->
</ul>