public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* lseek() on debugfs entries in 2.6.37
@ 2011-03-15 12:54 Alexey Mikhailov
  2011-03-15 14:01 ` Arnd Bergmann
  2011-03-15 19:36 ` Steven Rostedt
  0 siblings, 2 replies; 5+ messages in thread
From: Alexey Mikhailov @ 2011-03-15 12:54 UTC (permalink / raw)
  To: linux-kernel

Hello!

I use simple debugfs entries for user-space <-> kernel-space
interaction. Basically I read unsigned integers from debugfs
files like this:

   ...
   char buf[64];
   lseek(timesync_fd, 0, SEEK_SET);
   read(timesync_fd, buf, sizeof(buf));
   ...

It works perfectly with 2.6.32 kernel. But with 2.6.37 kernel,
lseek() fails with errno=29(Illegal seek). So second read()
call just fails or returns garbage. Can someone please shed
some light on it?

Thank you,
-- Alexey.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-16 11:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-15 12:54 lseek() on debugfs entries in 2.6.37 Alexey Mikhailov
2011-03-15 14:01 ` Arnd Bergmann
2011-03-16 10:49   ` Alexey Mikhailov
2011-03-16 11:41     ` Arnd Bergmann
2011-03-15 19:36 ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox