From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 03 May 2007 21:12:28 +0000 Subject: Re: udevd on very large systems: again Message-Id: <1178226748.4379.32.camel@lov.localdomain> List-Id: References: <4637D051.7060103@sgi.com> In-Reply-To: <4637D051.7060103@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, 2007-05-03 at 15:49 -0400, George Beshers wrote: > Yes your right --- I am guilty of not reading the source > in sufficient detail. > > The patch you proposed works fine, may it appear soon :-). Oh, great. Thanks for testing, I'll apply it now. Kay > Kay Sievers wrote: > > On Wed, 2007-05-02 at 17:26 -0400, George Beshers wrote: > > > > > > > > Looking at the seq_file code, calling lseek() causes the buffer to be > > repopulated: > > seq_lseek() -> traverse() -> m->op->show() > > while show() is the method of the "stat" file that fills the buffer. > > > > A simple read() should not do that, and just copy the content (up to > > 128kB) of the kernel seq_file file buffer to the user-process: > > seq_read() -> copy_to_user(buf, m->buf + m->from, n) ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel