lkml.org 
[lkml]   [2008]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Kernel BUG at fs/sysfs/file.c:552
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> With the nvidia driver, you're not going to get much help on this list
> :(

Well I don't like the driver either but the problem is really totally
unrealted I think..

> Hm, did you create two files with the same name?

No I only wanted to create one file on the first try, just to test the
sysfs interface. It should only give an attribute under /sys/devices,
called "writer_pid", which prints 0 or an actual PID of a process
writing to my virtual device.

I've just tried some other stuff just this minute and now it seems to
work, I get a directory under /sys/devices! Unfortunately I can't say
what the real problem was and why this kernel bug occured...

But I've another question: This directory doesn't only contain the
attribute ("writer_pid") which I've created in the code, but also a
subdirectory "power" and another attribute "uevent".. Could you explain
to me what's this all about? Are these just standard attributes which
are added to every device which registers there? (Sounds obviousely
because other directories under my /sys/devices tree contain them too..).

> Care to post your code?

I've uploaded it to http://www.nuuz.at/temp/vdd.c. I didn't want to post
the whole code here, I hope that's ok!

thanks for replying,
regards
Marcus Nutzinger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIANFMeEFjZ1Jaui4RAlbfAJ9XzbidhogUUMexqhuc/YPMzIaAjgCdGEtA
0NtTj7FkOfpaYdXQZklTlf0=
=FmIo
-----END PGP SIGNATURE-----


\
 
 \ /
  Last update: 2008-04-12 17:15    [W:0.048 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site