[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4CA32677.2020203@parallels.com>
Date: Wed, 29 Sep 2010 15:43:51 +0400
From: Pavel Emelyanov <xemul@...allels.com>
To: Jerome Marchand <jmarchan@...hat.com>
CC: Matthew Wilcox <matthew@....cx>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] procfs: fix numbering in /proc/locks
> Good point. My implementation is definitely wrong. But I'm afraid that
> moving the increment in locks_next() won't help either. It will fail when
> a program do something more than just read the file sequentially (use
> of lseek() for instance). We need a better way to keep track of the
> current position in the list.
The seq files core implementation knows about the lseek and
calls the seq_ops callbacks properly.
> Thanks,
> Jerome
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists